| Index: src/full-codegen/mips64/full-codegen-mips64.cc
|
| diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| index 90daaa4c86c659acc285546ba2b4625187400be7..d649882cf5e7f164e1371eb3ca34dababf8bca6a 100644
|
| --- a/src/full-codegen/mips64/full-codegen-mips64.cc
|
| +++ b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| @@ -2447,15 +2447,9 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op,
|
| } else if (!var->is_const_mode() ||
|
| (var->mode() == CONST && op == Token::INIT)) {
|
| if (var->IsLookupSlot()) {
|
| - // Assignment to var.
|
| - __ li(a4, Operand(var->name()));
|
| - __ li(a3, Operand(Smi::FromInt(language_mode())));
|
| - // jssp[0] : language mode.
|
| - // jssp[8] : name.
|
| - // jssp[16] : context.
|
| - // jssp[24] : value.
|
| - __ Push(v0, cp, a4, a3);
|
| - __ CallRuntime(Runtime::kStoreLookupSlot);
|
| + __ Push(var->name());
|
| + __ Push(v0);
|
| + __ CallRuntime(is_strict(language_mode())
|
| } else {
|
| // Assignment to var or initializing assignment to let/const in harmony
|
| // mode.
|
| @@ -2804,10 +2798,8 @@ void FullCodeGenerator::PushCalleeAndWithBaseObject(Call* expr) {
|
| __ bind(&slow);
|
| // Call the runtime to find the function to call (returned in v0)
|
| // and the object holding it (returned in v1).
|
| - DCHECK(!context_register().is(a2));
|
| - __ li(a2, Operand(callee->name()));
|
| - __ Push(context_register(), a2);
|
| - __ CallRuntime(Runtime::kLoadLookupSlot);
|
| + __ Push(callee->name());
|
| + __ CallRuntime(Runtime::kLoadLookupSlotForCall);
|
| __ Push(v0, v1); // Function, receiver.
|
| PrepareForBailoutForId(expr->LookupId(), NO_REGISTERS);
|
|
|
|
|