| Index: src/x64/ic-x64.cc
|
| diff --git a/src/x64/ic-x64.cc b/src/x64/ic-x64.cc
|
| index 032a3f7e75bd2c92aa906014aa5556fe11a2862f..91f44f6f337207fe57d881c12e97bb9ae0b204b5 100644
|
| --- a/src/x64/ic-x64.cc
|
| +++ b/src/x64/ic-x64.cc
|
| @@ -508,11 +508,8 @@ void KeyedLoadIC::GenerateGeneric(MacroAssembler* masm) {
|
| GenerateKeyedLoadReceiverCheck(
|
| masm, rdx, rcx, Map::kHasIndexedInterceptor, &slow);
|
|
|
| - // Check the "has fast elements" bit in the receiver's map which is
|
| - // now in rcx.
|
| - __ testb(FieldOperand(rcx, Map::kBitField2Offset),
|
| - Immediate(1 << Map::kHasFastElements));
|
| - __ j(zero, &check_number_dictionary);
|
| + // Check the receiver's map to see if it has fast elements.
|
| + __ CheckFastElements(rcx, &check_number_dictionary);
|
|
|
| GenerateFastArrayLoad(masm,
|
| rdx,
|
|
|