Commit of eval changes left out because they were stuck in another changelist.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1307 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ager@chromium.org 2009-02-19 07:22:53 +00:00
parent 1c0ebb7e1c
commit 195753ff7b
2 changed files with 4 additions and 4 deletions

View File

@ -418,10 +418,10 @@ MemOperand CodeGenerator::ContextSlotOperandCheckExtensions(Slot* slot,
}
}
// Check that last extension is NULL.
__ ldr(tmp2, ContextOperand(tmp, Context::EXTENSION_INDEX));
__ ldr(tmp2, ContextOperand(context, Context::EXTENSION_INDEX));
__ tst(tmp2, tmp2);
__ b(ne, slow);
__ ldr(tmp, ContextOperand(tmp, Context::FCONTEXT_INDEX));
__ ldr(tmp, ContextOperand(context, Context::FCONTEXT_INDEX));
return ContextOperand(tmp, index);
}

View File

@ -469,9 +469,9 @@ Operand CodeGenerator::ContextSlotOperandCheckExtensions(Slot* slot,
}
}
// Check that last extension is NULL.
__ cmp(ContextOperand(tmp, Context::EXTENSION_INDEX), Immediate(0));
__ cmp(ContextOperand(context, Context::EXTENSION_INDEX), Immediate(0));
__ j(not_equal, slow, not_taken);
__ mov(tmp, ContextOperand(tmp, Context::FCONTEXT_INDEX));
__ mov(tmp, ContextOperand(context, Context::FCONTEXT_INDEX));
return ContextOperand(tmp, index);
}