Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index f0865ff333be0cfc299c46abeb564e04d52dc2b6..7f37f7c36a1d81c73e2aec010ab358a64e277b4a 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -1430,12 +1430,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); |
@@ -2441,10 +2440,11 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op, |
(var->mode() == CONST && op == Token::INIT)) { |
if (var->IsLookupSlot()) { |
// Assignment to var. |
- __ li(a1, Operand(var->name())); |
- __ li(a0, Operand(Smi::FromInt(language_mode()))); |
- __ Push(v0, cp, a1, a0); // Value, context, name, language mode. |
- __ 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. |
@@ -2794,10 +2794,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); |
@@ -3929,9 +3927,7 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
} else { |
// 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); |
} |