Index: src/ia32/ic-ia32.cc |
diff --git a/src/ia32/ic-ia32.cc b/src/ia32/ic-ia32.cc |
index a2678b20e71de46e4429293071f42d72e9ebbfa3..f5ff341f434b402581cd4ab4de8c5e0f519a34fc 100644 |
--- a/src/ia32/ic-ia32.cc |
+++ b/src/ia32/ic-ia32.cc |
@@ -484,11 +484,8 @@ void KeyedLoadIC::GenerateGeneric(MacroAssembler* masm) { |
GenerateKeyedLoadReceiverCheck( |
masm, edx, ecx, Map::kHasIndexedInterceptor, &slow); |
- // Check the "has fast elements" bit in the receiver's map which is |
- // now in ecx. |
- __ test_b(FieldOperand(ecx, Map::kBitField2Offset), |
- 1 << Map::kHasFastElements); |
- __ j(zero, &check_number_dictionary); |
+ // Check the receiver's map to see if it has fast elements. |
+ __ CheckFastElements(ecx, &check_number_dictionary); |
GenerateFastArrayLoad(masm, |
edx, |