Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 0fde381f75374a368e655feff2db04eebdb058cb..264f24f8da5c7534e8b5a8a0a22a960a2390a7c0 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -1499,9 +1499,9 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { |
__ ldr(r0, MemOperand(sp, kLastMatchInfoOffset)); |
__ JumpIfSmi(r0, &runtime); |
- __ CompareObjectType(r0, r2, r2, JS_ARRAY_TYPE); |
+ __ CompareObjectType(r0, r2, r2, JS_OBJECT_TYPE); |
__ b(ne, &runtime); |
- // Check that the JSArray is in fast case. |
+ // Check that the object has fast elements. |
__ ldr(last_match_info_elements, |
FieldMemOperand(r0, JSArray::kElementsOffset)); |
__ ldr(r0, FieldMemOperand(last_match_info_elements, HeapObject::kMapOffset)); |