| Index: src/x64/lithium-codegen-x64.cc
|
| diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc
|
| index 4904360bb3dae41070e940a41523e868057204fc..967671d84b90f790d91dbc64078b9812d90e0c98 100644
|
| --- a/src/x64/lithium-codegen-x64.cc
|
| +++ b/src/x64/lithium-codegen-x64.cc
|
| @@ -3276,11 +3276,9 @@ Operand LCodeGen::BuildFastArrayOperand(
|
| return Operand(elements_pointer_reg,
|
| (constant_value << shift_size) + offset);
|
| } else {
|
| - // Take the tag bit into account while computing the shift size.
|
| - if (key_representation.IsSmi() && (shift_size >= 1)) {
|
| - DCHECK(SmiValuesAre31Bits());
|
| - shift_size -= kSmiTagSize;
|
| - }
|
| + // Guaranteed by ArrayInstructionInterface::KeyedAccessIndexRequirement().
|
| + DCHECK(key_representation.IsInteger32());
|
| +
|
| ScaleFactor scale_factor = static_cast<ScaleFactor>(shift_size);
|
| return Operand(elements_pointer_reg,
|
| ToRegister(key),
|
|
|