Index: src/x64/full-codegen-x64.cc |
=================================================================== |
--- src/x64/full-codegen-x64.cc (revision 8174) |
+++ src/x64/full-codegen-x64.cc (working copy) |
@@ -3333,9 +3333,7 @@ |
__ j(not_equal, &bailout); |
// Check that the array has fast elements. |
- __ testb(FieldOperand(scratch, Map::kBitField2Offset), |
- Immediate(1 << Map::kHasFastElements)); |
- __ j(zero, &bailout); |
+ __ CheckFastElements(scratch, &bailout); |
// Array has fast elements, so its length must be a smi. |
// If the array has length zero, return the empty string. |