| Index: src/ia32/builtins-ia32.cc
|
| diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc
|
| index f15fd1cd8435b946b2df399db57b42cf6a2637a0..c7e552705d4eac5760cbceff73f669a2516b2919 100644
|
| --- a/src/ia32/builtins-ia32.cc
|
| +++ b/src/ia32/builtins-ia32.cc
|
| @@ -1248,11 +1248,9 @@ void Builtins::Generate_ArrayConstructCode(MacroAssembler* masm) {
|
| Label generic_constructor;
|
|
|
| if (FLAG_debug_code) {
|
| - // The array construct code is only set for the builtin Array function which
|
| - // does always have a map.
|
| - __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, ebx);
|
| - __ cmp(edi, Operand(ebx));
|
| - __ Assert(equal, "Unexpected Array function");
|
| + // 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.
|
|
|