Index: src/ppc/lithium-codegen-ppc.cc |
diff --git a/src/ppc/lithium-codegen-ppc.cc b/src/ppc/lithium-codegen-ppc.cc |
index 716486ec4e28d161cafd0bc667d4fa98f9941732..11ea4bd0495bbb8ea76ac5655453c07dfceb7bd1 100644 |
--- a/src/ppc/lithium-codegen-ppc.cc |
+++ b/src/ppc/lithium-codegen-ppc.cc |
@@ -1923,20 +1923,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(result)); |
DCHECK(object.is(r3)); |
DCHECK(!scratch.is(scratch0())); |
DCHECK(!scratch.is(object)); |
- __ TestIfSmi(object, r0); |
- DeoptimizeIf(eq, instr, Deoptimizer::kSmi, cr0); |
- __ CompareObjectType(object, scratch, scratch, JS_DATE_TYPE); |
- DeoptimizeIf(ne, instr, Deoptimizer::kNotADateObject); |
- |
if (index->value() == 0) { |
__ LoadP(result, FieldMemOperand(object, JSDate::kValueOffset)); |
} else { |
+ Label runtime, done; |
if (index->value() < JSDate::kFirstUncachedField) { |
ExternalReference stamp = ExternalReference::date_cache_stamp(isolate()); |
__ mov(scratch, Operand(stamp)); |