| 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..7f69151501ca35d24822c891065727c490241f9c 100644
|
| --- a/src/full-codegen/mips64/full-codegen-mips64.cc
|
| +++ b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| @@ -1432,12 +1432,11 @@ void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy,
|
| // by eval-introduced variables.
|
| EmitDynamicLookupFastCase(proxy, typeof_mode, &slow, &done);
|
| __ bind(&slow);
|
| - __ li(a1, Operand(var->name()));
|
| - __ Push(cp, a1); // Context and name.
|
| + __ Push(var->name());
|
| Runtime::FunctionId function_id =
|
| typeof_mode == NOT_INSIDE_TYPEOF
|
| ? Runtime::kLoadLookupSlot
|
| - : Runtime::kLoadLookupSlotNoReferenceError;
|
| + : Runtime::kLoadLookupSlotInsideTypeof;
|
| __ CallRuntime(function_id);
|
| __ bind(&done);
|
| context()->Plug(v0);
|
| @@ -2447,15 +2446,11 @@ 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())
|
| + ? Runtime::kStoreLookupSlot_Strict
|
| + : Runtime::kStoreLookupSlot_Sloppy);
|
| } else {
|
| // Assignment to var or initializing assignment to let/const in harmony
|
| // mode.
|
| @@ -2804,10 +2799,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);
|
|
|
| @@ -3942,8 +3935,7 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) {
|
| // Non-global variable. Call the runtime to try to delete from the
|
| // context where the variable was introduced.
|
| DCHECK(!context_register().is(a2));
|
| - __ li(a2, Operand(var->name()));
|
| - __ Push(context_register(), a2);
|
| + __ Push(var->name());
|
| __ CallRuntime(Runtime::kDeleteLookupSlot);
|
| context()->Plug(v0);
|
| }
|
|
|