Index: src/mips64/lithium-codegen-mips64.cc |
diff --git a/src/mips64/lithium-codegen-mips64.cc b/src/mips64/lithium-codegen-mips64.cc |
index 89ba2851675c16c5f926cec218cc0262ed6fecf4..fb201c0c26ff07ee662382e40674924e5b2b17c3 100644 |
--- a/src/mips64/lithium-codegen-mips64.cc |
+++ b/src/mips64/lithium-codegen-mips64.cc |
@@ -1783,21 +1783,15 @@ void LCodeGen::DoDateField(LDateField* instr) { |
Register result = ToRegister(instr->result()); |
Register scratch = ToRegister(instr->temp()); |
Smi* index = instr->index(); |
- Label runtime, done; |
DCHECK(object.is(a0)); |
DCHECK(result.is(v0)); |
DCHECK(!scratch.is(scratch0())); |
DCHECK(!scratch.is(object)); |
- __ SmiTst(object, at); |
- DeoptimizeIf(eq, instr, Deoptimizer::kSmi, at, Operand(zero_reg)); |
- __ GetObjectType(object, scratch, scratch); |
- DeoptimizeIf(ne, instr, Deoptimizer::kNotADateObject, scratch, |
- Operand(JS_DATE_TYPE)); |
- |
if (index->value() == 0) { |
__ ld(result, FieldMemOperand(object, JSDate::kValueOffset)); |
} else { |
+ Label runtime, done; |
if (index->value() < JSDate::kFirstUncachedField) { |
ExternalReference stamp = ExternalReference::date_cache_stamp(isolate()); |
__ li(scratch, Operand(stamp)); |