Index: src/mips/stub-cache-mips.cc |
diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc |
index 8c34f58d74ebce8f0b87f6e4ffeb50c3f56994b6..51df45224abdb33a3d2e1d7cf4d758cf06b6e2d9 100644 |
--- a/src/mips/stub-cache-mips.cc |
+++ b/src/mips/stub-cache-mips.cc |
@@ -566,7 +566,12 @@ void StubCompiler::GenerateStoreTransition(MacroAssembler* masm, |
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()); |