Index: src/crankshaft/x64/lithium-codegen-x64.cc |
diff --git a/src/crankshaft/x64/lithium-codegen-x64.cc b/src/crankshaft/x64/lithium-codegen-x64.cc |
index 010fdbc86f9a8af00d5d55c5a25825f94519642d..f9e8bcc18bd313ff26955edd0fe95f2cbf7aaf71 100644 |
--- a/src/crankshaft/x64/lithium-codegen-x64.cc |
+++ b/src/crankshaft/x64/lithium-codegen-x64.cc |
@@ -3870,19 +3870,6 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) { |
} |
-void LCodeGen::DoCallNew(LCallNew* instr) { |
- DCHECK(ToRegister(instr->context()).is(rsi)); |
- DCHECK(ToRegister(instr->constructor()).is(rdi)); |
- DCHECK(ToRegister(instr->result()).is(rax)); |
- |
- __ Set(rax, instr->arity()); |
- // No cell in ebx for construct type feedback in optimized code |
- __ LoadRoot(rbx, Heap::kUndefinedValueRootIndex); |
- CallConstructStub stub(isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |
- CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); |
-} |
- |
- |
void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
DCHECK(ToRegister(instr->context()).is(rsi)); |
DCHECK(ToRegister(instr->constructor()).is(rdi)); |