| 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 fc1fb9fdcf2feded8958e4b6d87d805249f77c28..1e2283e1b3985cffaf7da526b249fc9273bb0006 100644
|
| --- a/src/full-codegen/s390/full-codegen-s390.cc
|
| +++ b/src/full-codegen/s390/full-codegen-s390.cc
|
| @@ -3276,54 +3276,9 @@ void FullCodeGenerator::EmitCallJSRuntimeFunction(CallRuntime* expr) {
|
| __ Call(isolate()->builtins()->Call(ConvertReceiverMode::kNullOrUndefined),
|
| RelocInfo::CODE_TARGET);
|
| OperandStackDepthDecrement(arg_count + 1);
|
| -}
|
| -
|
| -void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) {
|
| - ZoneList<Expression*>* args = expr->arguments();
|
| - int arg_count = args->length();
|
| -
|
| - if (expr->is_jsruntime()) {
|
| - Comment cmnt(masm_, "[ CallRuntime");
|
| - EmitLoadJSRuntimeFunction(expr);
|
| -
|
| - // Push the arguments ("left-to-right").
|
| - for (int i = 0; i < arg_count; i++) {
|
| - VisitForStackValue(args->at(i));
|
| - }
|
| -
|
| - PrepareForBailoutForId(expr->CallId(), NO_REGISTERS);
|
| - EmitCallJSRuntimeFunction(expr);
|
| -
|
| - // Restore context register.
|
| - __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
|
| -
|
| - context()->DropAndPlug(1, r2);
|
|
|
| - } else {
|
| - const Runtime::Function* function = expr->function();
|
| - switch (function->function_id) {
|
| -#define CALL_INTRINSIC_GENERATOR(Name) \
|
| - case Runtime::kInline##Name: { \
|
| - Comment cmnt(masm_, "[ Inline" #Name); \
|
| - return Emit##Name(expr); \
|
| - }
|
| - FOR_EACH_FULL_CODE_INTRINSIC(CALL_INTRINSIC_GENERATOR)
|
| -#undef CALL_INTRINSIC_GENERATOR
|
| - default: {
|
| - Comment cmnt(masm_, "[ CallRuntime for unhandled intrinsic");
|
| - // Push the arguments ("left-to-right").
|
| - for (int i = 0; i < arg_count; i++) {
|
| - VisitForStackValue(args->at(i));
|
| - }
|
| -
|
| - // Call the C runtime function.
|
| - PrepareForBailoutForId(expr->CallId(), NO_REGISTERS);
|
| - __ CallRuntime(expr->function(), arg_count);
|
| - OperandStackDepthDecrement(arg_count);
|
| - context()->Plug(r2);
|
| - }
|
| - }
|
| - }
|
| + // Restore context register.
|
| + __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
|
| }
|
|
|
| void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) {
|
|
|