| Index: src/ia32/lithium-codegen-ia32.cc
 | 
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
 | 
| index 26e7103466fb22adaac8f23279eb647884616259..3e237638d78e7481d43e14973bb251fd396a5a83 100644
 | 
| --- a/src/ia32/lithium-codegen-ia32.cc
 | 
| +++ b/src/ia32/lithium-codegen-ia32.cc
 | 
| @@ -3364,7 +3364,7 @@ Operand LCodeGen::BuildFastArrayOperand(
 | 
|                         + offset);
 | 
|    } else {
 | 
|      // Take the tag bit into account while computing the shift size.
 | 
| -    if (key_representation.IsTagged() && (shift_size >= 1)) {
 | 
| +    if (key_representation.IsSmi() && (shift_size >= 1)) {
 | 
|        shift_size -= kSmiTagSize;
 | 
|      }
 | 
|      ScaleFactor scale_factor = static_cast<ScaleFactor>(shift_size);
 | 
| @@ -4359,7 +4359,7 @@ void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) {
 | 
|    if (instr->index()->IsConstantOperand()) {
 | 
|      int constant_index =
 | 
|          ToInteger32(LConstantOperand::cast(instr->index()));
 | 
| -    if (instr->hydrogen()->length()->representation().IsTagged()) {
 | 
| +    if (instr->hydrogen()->length()->representation().IsSmi()) {
 | 
|        __ cmp(ToOperand(instr->length()),
 | 
|               Immediate(Smi::FromInt(constant_index)));
 | 
|      } else {
 | 
| 
 |