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 39862bc4d39cea38c63adf8a83ae7a218ce61909..910b2cf9f062b578ba7d26d74943e85c3a1856d9 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -3919,11 +3919,10 @@ |
__ CompareRoot(rax, nil_value); |
Split(equal, if_true, if_false, fall_through); |
} else { |
- __ 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); |
+ Handle<Code> ic = CompareNilICStub::GetUninitialized(isolate(), nil); |
+ CallIC(ic, expr->CompareOperationFeedbackId()); |
+ __ CompareRoot(rax, Heap::kTrueValueRootIndex); |
+ Split(equal, if_true, if_false, fall_through); |
} |
context()->Plug(if_true, if_false); |
} |