Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 479973815ab0ca40a76f624feeef1a57151ee819..d13edcfe9291794542ee5fc0eb310931b5b2990c 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -3374,9 +3374,7 @@ void FullCodeGenerator::EmitFastAsciiArrayJoin(ZoneList<Expression*>* args) { |
__ 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)); |