Index: src/ia32/full-codegen-ia32.cc |
=================================================================== |
--- src/ia32/full-codegen-ia32.cc (revision 8174) |
+++ src/ia32/full-codegen-ia32.cc (working copy) |
@@ -3374,9 +3374,7 @@ |
__ j(not_equal, &bailout); |
// Check that the array has fast elements. |
- __ test_b(FieldOperand(scratch, Map::kBitField2Offset), |
- 1 << Map::kHasFastElements); |
- __ j(zero, &bailout); |
+ __ CheckFastElements(scratch, &bailout); |
// If the array has length zero, return the empty string. |
__ mov(array_length, FieldOperand(array, JSArray::kLengthOffset)); |