| Index: src/arm/builtins-arm.cc
|
| ===================================================================
|
| --- src/arm/builtins-arm.cc (revision 7051)
|
| +++ src/arm/builtins-arm.cc (working copy)
|
| @@ -428,7 +428,7 @@
|
| GenerateLoadArrayFunction(masm, r1);
|
|
|
| if (FLAG_debug_code) {
|
| - // Initial map for the builtin Array function shoud be a map.
|
| + // Initial map for the builtin Array functions should be maps.
|
| __ ldr(r2, FieldMemOperand(r1, JSFunction::kPrototypeOrInitialMapOffset));
|
| __ tst(r2, Operand(kSmiTagMask));
|
| __ Assert(ne, "Unexpected initial map for Array function");
|
| @@ -459,11 +459,8 @@
|
| Label generic_constructor;
|
|
|
| if (FLAG_debug_code) {
|
| - // The array construct code is only set for the builtin Array function which
|
| - // always have a map.
|
| - GenerateLoadArrayFunction(masm, r2);
|
| - __ cmp(r1, r2);
|
| - __ Assert(eq, "Unexpected Array function");
|
| + // 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.
|
| __ ldr(r2, FieldMemOperand(r1, JSFunction::kPrototypeOrInitialMapOffset));
|
| __ tst(r2, Operand(kSmiTagMask));
|
|
|