Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index 67c19f7b9b3adde06d3aa92ff602b34317b2b069..fb47d421f8a1dba8328481887523f986cd95cb9d 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -1564,40 +1564,6 @@ void Builtins::Generate_ArrayConstructCode(MacroAssembler* masm) { |
} |
-void Builtins::Generate_InternalArrayConstructCode(MacroAssembler* masm) { |
- // ----------- S t a t e ------------- |
- // -- rax : argc |
- // -- rdi : constructor |
- // -- rsp[0] : return address |
- // -- rsp[8] : last argument |
- // ----------------------------------- |
- if (FLAG_debug_code) { |
- // The array construct code is only set for the builtin and internal |
- // Array functions which always have a map. |
- |
- // Initial map for the builtin Array function should be a map. |
- __ movq(rcx, FieldOperand(rdi, JSFunction::kPrototypeOrInitialMapOffset)); |
- // Will both indicate a NULL and a Smi. |
- STATIC_ASSERT(kSmiTag == 0); |
- Condition not_smi = NegateCondition(masm->CheckSmi(rcx)); |
- __ Check(not_smi, "Unexpected initial map for Array function"); |
- __ CmpObjectType(rcx, MAP_TYPE, rcx); |
- __ Check(equal, "Unexpected initial map for Array function"); |
- } |
- |
- Label generic_constructor; |
- // Run the native code for the Array function called as constructor. |
- ArrayNativeCode(masm, &generic_constructor); |
- |
- // Jump to the generic construct code in case the specialized code cannot |
- // handle the construction. |
- __ bind(&generic_constructor); |
- Handle<Code> generic_construct_stub = |
- masm->isolate()->builtins()->JSConstructStubGeneric(); |
- __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); |
-} |
- |
- |
void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { |
// ----------- S t a t e ------------- |
// -- rax : number of arguments |