Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 0a618d1bbaae762b4f8579845ab5dfd4ac054809..6f2fb9790843eb2fa9a15eda01c4977836bb7d90 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -810,13 +810,13 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { |
__ add(edx, Immediate(2)); // edx was a smi. |
// edx: Number of capture registers |
- // Load last_match_info which is still known to be a fast case JSArray. |
- // Check that the fourth object is a JSArray object. |
+ // Load last_match_info which is still known to be a fast-elements JSObject. |
+ // Check that the fourth object is a JSObject. |
__ mov(eax, Operand(esp, kLastMatchInfoOffset)); |
__ JumpIfSmi(eax, &runtime); |
- __ CmpObjectType(eax, JS_ARRAY_TYPE, ebx); |
+ __ CmpObjectType(eax, JS_OBJECT_TYPE, ebx); |
__ j(not_equal, &runtime); |
- // Check that the JSArray is in fast case. |
+ // Check that the object has fast elements. |
__ mov(ebx, FieldOperand(eax, JSArray::kElementsOffset)); |
__ mov(eax, FieldOperand(ebx, HeapObject::kMapOffset)); |
__ cmp(eax, factory->fixed_array_map()); |