Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index d457ca55b9ea0c57e33256795295bc715787ae0a..434abf2f573d44e816da6e7781c04d6252de4f08 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -3436,9 +3436,7 @@ void FullCodeGenerator::EmitFastAsciiArrayJoin(ZoneList<Expression*>* args) { |
__ b(ne, &bailout); |
// Check that the array has fast elements. |
- __ ldrb(scratch2, FieldMemOperand(scratch1, Map::kBitField2Offset)); |
- __ tst(scratch2, Operand(1 << Map::kHasFastElements)); |
- __ b(eq, &bailout); |
+ __ CheckFastElements(scratch1, scratch2, &bailout); |
// If the array has length zero, return the empty string. |
__ ldr(array_length, FieldMemOperand(array, JSArray::kLengthOffset)); |