Index: src/full-codegen/ppc/full-codegen-ppc.cc |
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc |
index 69e1578d1b49dbc5d24a5476ec4402737fbde37c..0ce982204da664cc030e3a77a20d60462fb633fa 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -1393,12 +1393,11 @@ void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, |
// by eval-introduced variables. |
EmitDynamicLookupFastCase(proxy, typeof_mode, &slow, &done); |
__ bind(&slow); |
- __ mov(r4, Operand(var->name())); |
- __ Push(cp, r4); // 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(r3); |
@@ -2450,11 +2449,11 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op, |
(var->mode() == CONST && op == Token::INIT)) { |
if (var->IsLookupSlot()) { |
// Assignment to var. |
- __ push(r3); // Value. |
- __ mov(r4, Operand(var->name())); |
- __ mov(r3, Operand(Smi::FromInt(language_mode()))); |
- __ Push(cp, r4, r3); // Context, name, language mode. |
- __ CallRuntime(Runtime::kStoreLookupSlot); |
+ __ Push(var->name()); |
+ __ Push(r3); |
+ __ 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 +2793,8 @@ void FullCodeGenerator::PushCalleeAndWithBaseObject(Call* expr) { |
__ bind(&slow); |
// Call the runtime to find the function to call (returned in r3) and |
// the object holding it (returned in r4). |
- DCHECK(!context_register().is(r5)); |
- __ mov(r5, Operand(callee->name())); |
- __ Push(context_register(), r5); |
- __ CallRuntime(Runtime::kLoadLookupSlot); |
+ __ Push(callee->name()); |
+ __ CallRuntime(Runtime::kLoadLookupSlotForCall); |
__ Push(r3, r4); // Function, receiver. |
PrepareForBailoutForId(expr->LookupId(), NO_REGISTERS); |
@@ -3930,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(r5)); |
- __ mov(r5, Operand(var->name())); |
- __ Push(context_register(), r5); |
+ __ Push(var->name()); |
__ CallRuntime(Runtime::kDeleteLookupSlot); |
context()->Plug(r3); |
} |