Index: src/full-codegen/x64/full-codegen-x64.cc |
diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
index d38121760acd4b9e538a56dadc90e0f7f5c9118c..285e3d7ff38b283c6367eac1de7c254d4e5279d9 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -3250,54 +3250,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. |
- __ movp(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); |
- context()->DropAndPlug(1, rax); |
- } 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. |
- PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); |
- __ CallRuntime(function, arg_count); |
- OperandStackDepthDecrement(arg_count); |
- context()->Plug(rax); |
- } |
- } |
- } |
+ // Restore context register. |
+ __ movp(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); |
} |