Index: src/arm/builtins-arm.cc |
diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc |
index 169bc6bf8535a285a78e66d0a13f7541c28e6c22..961d3ce5b981e830d95bbc9c35e53e66d4edfde9 100644 |
--- a/src/arm/builtins-arm.cc |
+++ b/src/arm/builtins-arm.cc |
@@ -458,11 +458,8 @@ 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 |
- // 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)); |