| Index: src/mips/code-stubs-mips.cc
|
| diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
|
| index d290342fe39a6039c7c21b50fa844b675d2876f7..2c1ddb1b6e5f0d6ee53959826fd40306cf14cbe8 100644
|
| --- a/src/mips/code-stubs-mips.cc
|
| +++ b/src/mips/code-stubs-mips.cc
|
| @@ -7491,14 +7491,10 @@ void ArrayConstructorStub::Generate(MacroAssembler* masm) {
|
| __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
|
| __ Branch(&no_info, eq, a3, Operand(at));
|
|
|
| - // We should have an allocation site object
|
| - if (FLAG_debug_code) {
|
| - __ push(a3);
|
| - __ sw(a3, FieldMemOperand(a3, 0));
|
| - __ LoadRoot(at, Heap::kAllocationSiteMapRootIndex);
|
| - __ Assert(eq, "Expected AllocationSite object in register a3",
|
| - a3, Operand(at));
|
| - }
|
| + // The type cell has either an AllocationSite or a JSFunction.
|
| + __ lw(t0, FieldMemOperand(a3, 0));
|
| + __ LoadRoot(at, Heap::kAllocationSiteMapRootIndex);
|
| + __ Branch(&no_info, ne, t0, Operand(at));
|
|
|
| __ lw(a3, FieldMemOperand(a3, AllocationSite::kPayloadOffset));
|
| __ SmiUntag(a3);
|
|
|