| Index: src/ia32/builtins-ia32.cc
|
| diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc
|
| index 7dacc24cc6914e5e14b486294ecce15bb4c184c2..306d06fa15235ede9feaabdaabb566d6610d2b9e 100644
|
| --- a/src/ia32/builtins-ia32.cc
|
| +++ b/src/ia32/builtins-ia32.cc
|
| @@ -1495,7 +1495,7 @@ void Builtins::Generate_ArrayConstructCode(MacroAssembler* masm) {
|
| // We should either have undefined in ebx or a valid jsglobalpropertycell
|
| Label okay_here;
|
| Handle<Object> undefined_sentinel(
|
| - masm->isolate()->heap()->undefined_value());
|
| + masm->isolate()->heap()->undefined_value(), masm->isolate());
|
| Handle<Map> global_property_cell_map(
|
| masm->isolate()->heap()->global_property_cell_map());
|
| __ cmp(ebx, Immediate(undefined_sentinel));
|
| @@ -1536,40 +1536,6 @@ void Builtins::Generate_ArrayConstructCode(MacroAssembler* masm) {
|
| }
|
|
|
|
|
| -void Builtins::Generate_InternalArrayConstructCode(MacroAssembler* masm) {
|
| - // ----------- S t a t e -------------
|
| - // -- eax : argc
|
| - // -- edi : constructor
|
| - // -- esp[0] : return address
|
| - // -- esp[4] : last argument
|
| - // -----------------------------------
|
| - Label generic_constructor;
|
| -
|
| - if (FLAG_debug_code) {
|
| - // The array construct code is only set for the global and natives
|
| - // builtin Array functions which always have maps.
|
| -
|
| - // Initial map for the builtin Array function should be a map.
|
| - __ mov(ebx, FieldOperand(edi, JSFunction::kPrototypeOrInitialMapOffset));
|
| - // Will both indicate a NULL and a Smi.
|
| - __ test(ebx, Immediate(kSmiTagMask));
|
| - __ Assert(not_zero, "Unexpected initial map for Array function");
|
| - __ CmpObjectType(ebx, MAP_TYPE, ecx);
|
| - __ Assert(equal, "Unexpected initial map for Array function");
|
| - }
|
| -
|
| - // Run the native code for the Array function called as constructor.
|
| - ArrayNativeCode(masm, true, &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();
|
| - __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET);
|
| -}
|
| -
|
| -
|
| void Builtins::Generate_StringConstructCode(MacroAssembler* masm) {
|
| // ----------- S t a t e -------------
|
| // -- eax : number of arguments
|
|
|