| Index: src/full-codegen/arm/full-codegen-arm.cc
|
| diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc
|
| index 5ca37f7e678c2a11bb5326f188c58ea5d3265161..98117f3f0ed97f8867f4517ab1f6576e21276598 100644
|
| --- a/src/full-codegen/arm/full-codegen-arm.cc
|
| +++ b/src/full-codegen/arm/full-codegen-arm.cc
|
| @@ -2454,11 +2454,11 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op,
|
| (var->mode() == CONST && op == Token::INIT)) {
|
| if (var->IsLookupSlot()) {
|
| // Assignment to var.
|
| - __ push(r0); // Value.
|
| - __ mov(r1, Operand(var->name()));
|
| - __ mov(r0, Operand(Smi::FromInt(language_mode())));
|
| - __ Push(cp, r1, r0); // Context, name, language mode.
|
| - __ CallRuntime(Runtime::kStoreLookupSlot);
|
| + __ Push(var->name());
|
| + __ Push(r0);
|
| + __ CallRuntime(is_strict(language_mode())
|
| + ? Runtime::kStoreLookupSlot_Strict
|
| + : Runtime::kStoreLookupSlot_Sloppy);
|
| } else {
|
| // Assignment to var or initializing assignment to let/const in harmony
|
| // mode.
|
| @@ -2807,10 +2807,8 @@ void FullCodeGenerator::PushCalleeAndWithBaseObject(Call* expr) {
|
| __ bind(&slow);
|
| // Call the runtime to find the function to call (returned in r0)
|
| // and the object holding it (returned in edx).
|
| - DCHECK(!context_register().is(r2));
|
| - __ mov(r2, Operand(callee->name()));
|
| - __ Push(context_register(), r2);
|
| - __ CallRuntime(Runtime::kLoadLookupSlot);
|
| + __ Push(callee->name());
|
| + __ CallRuntime(Runtime::kLoadLookupSlotForCall);
|
| __ Push(r0, r1); // Function, receiver.
|
| PrepareForBailoutForId(expr->LookupId(), NO_REGISTERS);
|
|
|
|
|