Index: src/ppc/code-stubs-ppc.cc |
diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc |
index 8e7bb88722912027f21d6d6fa7a5a7fefd21ea41..6dd897b0314b6fae0d8a458c4b2b8f4b4afe1a13 100644 |
--- a/src/ppc/code-stubs-ppc.cc |
+++ b/src/ppc/code-stubs-ppc.cc |
@@ -1578,9 +1578,9 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { |
__ LoadP(r3, MemOperand(sp, kLastMatchInfoOffset)); |
__ JumpIfSmi(r3, &runtime); |
- __ CompareObjectType(r3, r5, r5, JS_ARRAY_TYPE); |
+ __ CompareObjectType(r3, r5, r5, JS_OBJECT_TYPE); |
__ bne(&runtime); |
- // Check that the JSArray is in fast case. |
+ // Check that the object has fast elements. |
__ LoadP(last_match_info_elements, |
FieldMemOperand(r3, JSArray::kElementsOffset)); |
__ LoadP(r3, |