Revision: 15185
Author:   [email protected]
Date:     Mon Jun 17 09:37:15 2013
Log: MIPS: Fix constant function transition. Insert return instruction before returning.

Port r15180 (2f9dcce3)

BUG=

Review URL: https://codereview.chromium.org/17088008
http://code.google.com/p/v8/source/detail?r=15185

Modified:
 /branches/bleeding_edge/src/mips/stub-cache-mips.cc

=======================================
--- /branches/bleeding_edge/src/mips/stub-cache-mips.cc Fri Jun 14 10:00:24 2013 +++ /branches/bleeding_edge/src/mips/stub-cache-mips.cc Mon Jun 17 09:37:15 2013
@@ -566,7 +566,12 @@
                       OMIT_REMEMBERED_SET,
                       OMIT_SMI_CHECK);

-  if (details.type() == CONSTANT_FUNCTION) return;
+  if (details.type() == CONSTANT_FUNCTION) {
+    ASSERT(value_reg.is(a0));
+    __ Ret(USE_DELAY_SLOT);
+    __ mov(v0, a0);
+    return;
+  }

   int index = transition->instance_descriptors()->GetFieldIndex(
       transition->LastAdded());

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to