Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index 8d0dd8441af86568d8a09528f3436d269bfb4996..f4097aa866686a8da5648389a9f914ac74925161 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -3958,10 +3958,11 @@ void FullCodeGenerator::EmitLiteralCompareNil(CompareOperation* expr, |
__ cmp(eax, nil_value); |
Split(equal, if_true, if_false, fall_through); |
} else { |
- Handle<Code> ic = CompareNilICStub::GetUninitialized(isolate(), nil); |
- CallIC(ic, expr->CompareOperationFeedbackId()); |
- __ cmp(eax, isolate()->factory()->true_value()); |
- Split(equal, if_true, if_false, fall_through); |
+ __ JumpIfSmi(eax, if_false); |
+ __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); |
+ __ test_b(FieldOperand(eax, Map::kBitFieldOffset), |
+ 1 << Map::kIsUndetectable); |
+ Split(not_zero, if_true, if_false, fall_through); |
} |
context()->Plug(if_true, if_false); |
} |