MIPS: Fix constant function transition. Insert return instruction before returning.
Port r15180 (2f9dcce3) BUG= Review URL: https://codereview.chromium.org/17088008 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15185 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
f8fc5c443e
commit
c9624a44cd
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user