Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index 97333e3a3426e5ef794c31d26a87f21d41638c25..decfa74d1569ae674fa01ee8e7a5e8d6b2d1c32d 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -577,7 +577,11 @@ 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(r0)); |
+ __ Ret(); |
+ return; |
+ } |
int index = transition->instance_descriptors()->GetFieldIndex( |
transition->LastAdded()); |