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..ebc5cf181cbcbc12229267a129c8a4706d84477b 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -2441,10 +2441,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 +2795,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); |