Index: src/full-codegen/x64/full-codegen-x64.cc |
diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
index 13db4ff808e570f0921c00f9605496cf6ff23107..d65ab33ebc31764e225cf9c5a40f5e085b573e42 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -3878,10 +3878,11 @@ void FullCodeGenerator::EmitLiteralCompareNil(CompareOperation* expr, |
__ CompareRoot(rax, nil_value); |
Split(equal, if_true, if_false, fall_through); |
} else { |
- Handle<Code> ic = CompareNilICStub::GetUninitialized(isolate(), nil); |
- CallIC(ic, expr->CompareOperationFeedbackId()); |
- __ CompareRoot(rax, Heap::kTrueValueRootIndex); |
- Split(equal, if_true, if_false, fall_through); |
+ __ JumpIfSmi(rax, if_false); |
+ __ movp(rax, FieldOperand(rax, HeapObject::kMapOffset)); |
+ __ testb(FieldOperand(rax, Map::kBitFieldOffset), |
+ Immediate(1 << Map::kIsUndetectable)); |
+ Split(not_zero, if_true, if_false, fall_through); |
} |
context()->Plug(if_true, if_false); |
} |