| 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 c4c358c0c0336be7935109b5471644509ee436ca..14ce98f4afff0f1b22e4f76097663abfe736ad6e 100644
|
| --- a/src/full-codegen/ppc/full-codegen-ppc.cc
|
| +++ b/src/full-codegen/ppc/full-codegen-ppc.cc
|
| @@ -3350,11 +3350,13 @@ void FullCodeGenerator::EmitCreateIterResultObject(CallRuntime* expr) {
|
|
|
|
|
| void FullCodeGenerator::EmitLoadJSRuntimeFunction(CallRuntime* expr) {
|
| + // Push function.
|
| + __ LoadNativeContextSlot(expr->context_index(), r3);
|
| + PushOperand(r3);
|
| +
|
| // Push undefined as the receiver.
|
| __ LoadRoot(r3, Heap::kUndefinedValueRootIndex);
|
| PushOperand(r3);
|
| -
|
| - __ LoadNativeContextSlot(expr->context_index(), r3);
|
| }
|
|
|
|
|
| @@ -3379,11 +3381,6 @@ void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) {
|
| Comment cmnt(masm_, "[ CallRuntime");
|
| EmitLoadJSRuntimeFunction(expr);
|
|
|
| - // Push the target function under the receiver.
|
| - __ LoadP(ip, MemOperand(sp, 0));
|
| - PushOperand(ip);
|
| - __ StoreP(r3, MemOperand(sp, kPointerSize));
|
| -
|
| // Push the arguments ("left-to-right").
|
| for (int i = 0; i < arg_count; i++) {
|
| VisitForStackValue(args->at(i));
|
|
|