Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 0c039c54ee08b509034855d66bd6fd623c39b1be..55571beb1eb631d97c79478e7635ae872ddd622f 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -3754,13 +3754,8 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) { |
ASSERT(ToRegister(instr->result()).is(rax)); |
int arity = instr->arity(); |
- CallFunctionStub stub(arity, NO_CALL_FUNCTION_FLAGS); |
- if (instr->hydrogen()->IsTailCall()) { |
- if (NeedsEagerFrame()) __ leave(); |
- __ jmp(stub.GetCode(isolate()), RelocInfo::CODE_TARGET); |
- } else { |
- CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
- } |
+ CallFunctionStub stub(arity, instr->hydrogen()->function_flags()); |
+ CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
} |