Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 13dd63ceaf40707bab47c2f6788e84b5e59d8614..fb122a557093206502769cd8d9353943ba321a63 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -3964,29 +3964,9 @@ void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
} |
-void LCodeGen::DeoptIfTaggedButNotSmi(LEnvironment* environment, |
- HValue* value, |
- LOperand* operand) { |
- if (value->representation().IsTagged() && !value->type().IsSmi()) { |
- if (operand->IsRegister()) { |
- __ And(at, ToRegister(operand), Operand(kSmiTagMask)); |
- DeoptimizeIf(ne, environment, at, Operand(zero_reg)); |
- } else { |
- __ li(at, ToOperand(operand)); |
- __ And(at, at, Operand(kSmiTagMask)); |
- DeoptimizeIf(ne, environment, at, Operand(zero_reg)); |
- } |
- } |
-} |
- |
- |
void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { |
- DeoptIfTaggedButNotSmi(instr->environment(), |
- instr->hydrogen()->length(), |
- instr->length()); |
- DeoptIfTaggedButNotSmi(instr->environment(), |
- instr->hydrogen()->index(), |
- instr->index()); |
+ if (instr->hydrogen()->skip_check()) return; |
+ |
if (instr->index()->IsConstantOperand()) { |
int constant_index = |
ToInteger32(LConstantOperand::cast(instr->index())); |