| Index: src/ia32/code-stubs-ia32.cc
|
| diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc
|
| index 093794bdcc834c95250812103db57412ab08403e..293b929dde03f657d78569c0c5016e00c19b47bb 100644
|
| --- a/src/ia32/code-stubs-ia32.cc
|
| +++ b/src/ia32/code-stubs-ia32.cc
|
| @@ -7628,13 +7628,10 @@ void ArrayConstructorStub::Generate(MacroAssembler* masm) {
|
| __ cmp(edx, Immediate(undefined_sentinel));
|
| __ j(equal, &no_info);
|
|
|
| - // We should have an allocation site object
|
| - if (FLAG_debug_code) {
|
| - __ cmp(FieldOperand(edx, 0),
|
| - Immediate(Handle<Map>(
|
| - masm->isolate()->heap()->allocation_site_map())));
|
| - __ Assert(equal, "Expected AllocationSite object in register edx");
|
| - }
|
| + // The type cell has either an AllocationSite or a JSFunction
|
| + __ cmp(FieldOperand(edx, 0), Immediate(Handle<Map>(
|
| + masm->isolate()->heap()->allocation_site_map())));
|
| + __ j(not_equal, &no_info);
|
|
|
| __ mov(edx, FieldOperand(edx, AllocationSite::kPayloadOffset));
|
| __ SmiUntag(edx);
|
|
|