Index: src/crankshaft/x87/lithium-codegen-x87.cc |
diff --git a/src/crankshaft/x87/lithium-codegen-x87.cc b/src/crankshaft/x87/lithium-codegen-x87.cc |
index dd07ed1600fe8194df987e2d6f779e998d710f10..e26230942aee49cc336d6ed4ea3c0130caf7305f 100644 |
--- a/src/crankshaft/x87/lithium-codegen-x87.cc |
+++ b/src/crankshaft/x87/lithium-codegen-x87.cc |
@@ -5889,12 +5889,6 @@ void LCodeGen::DoOsrEntry(LOsrEntry* instr) { |
void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { |
DCHECK(ToRegister(instr->context()).is(esi)); |
- __ test(eax, Immediate(kSmiTagMask)); |
- DeoptimizeIf(zero, instr, Deoptimizer::kSmi); |
- |
- STATIC_ASSERT(JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); |
- __ CmpObjectType(eax, JS_PROXY_TYPE, ecx); |
- DeoptimizeIf(below_equal, instr, Deoptimizer::kWrongInstanceType); |
Label use_cache, call_runtime; |
__ CheckEnumCache(&call_runtime); |
@@ -5906,10 +5900,6 @@ void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { |
__ bind(&call_runtime); |
__ push(eax); |
CallRuntime(Runtime::kGetPropertyNamesFast, instr); |
- |
- __ cmp(FieldOperand(eax, HeapObject::kMapOffset), |
- isolate()->factory()->meta_map()); |
- DeoptimizeIf(not_equal, instr, Deoptimizer::kWrongMap); |
__ bind(&use_cache); |
} |