Index: src/full-codegen/s390/full-codegen-s390.cc |
diff --git a/src/full-codegen/s390/full-codegen-s390.cc b/src/full-codegen/s390/full-codegen-s390.cc |
index 98d2d7c2d02167c780ffa70607dc04c71dbbc2e9..fc1fb9fdcf2feded8958e4b6d87d805249f77c28 100644 |
--- a/src/full-codegen/s390/full-codegen-s390.cc |
+++ b/src/full-codegen/s390/full-codegen-s390.cc |
@@ -3257,11 +3257,13 @@ void FullCodeGenerator::EmitCreateIterResultObject(CallRuntime* expr) { |
} |
void FullCodeGenerator::EmitLoadJSRuntimeFunction(CallRuntime* expr) { |
+ // Push function. |
+ __ LoadNativeContextSlot(expr->context_index(), r2); |
+ PushOperand(r2); |
+ |
// Push undefined as the receiver. |
__ LoadRoot(r2, Heap::kUndefinedValueRootIndex); |
PushOperand(r2); |
- |
- __ LoadNativeContextSlot(expr->context_index(), r2); |
} |
void FullCodeGenerator::EmitCallJSRuntimeFunction(CallRuntime* expr) { |
@@ -3284,11 +3286,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(r2, MemOperand(sp, kPointerSize)); |
- |
// Push the arguments ("left-to-right"). |
for (int i = 0; i < arg_count; i++) { |
VisitForStackValue(args->at(i)); |