| Index: src/x64/builtins-x64.cc
|
| ===================================================================
|
| --- src/x64/builtins-x64.cc (revision 7051)
|
| +++ src/x64/builtins-x64.cc (working copy)
|
| @@ -1249,7 +1249,7 @@
|
| __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, rdi);
|
|
|
| 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.
|
| __ movq(rbx, FieldOperand(rdi, JSFunction::kPrototypeOrInitialMapOffset));
|
| // Will both indicate a NULL and a Smi.
|
| ASSERT(kSmiTag == 0);
|
| @@ -1282,11 +1282,8 @@
|
| 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, rbx);
|
| - __ cmpq(rdi, rbx);
|
| - __ Check(equal, "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.
|
| __ movq(rbx, FieldOperand(rdi, JSFunction::kPrototypeOrInitialMapOffset));
|
| // Will both indicate a NULL and a Smi.
|
|
|