| Index: src/full-codegen/arm64/full-codegen-arm64.cc
|
| diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| index 1189a164616a89d497be2c8199b7a88fda987fbb..d69e4f2cc5988c4aa88858fd437c6ed98b868579 100644
|
| --- a/src/full-codegen/arm64/full-codegen-arm64.cc
|
| +++ b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| @@ -3801,10 +3801,11 @@ void FullCodeGenerator::EmitLiteralCompareNil(CompareOperation* expr,
|
| __ CompareRoot(x0, nil_value);
|
| Split(eq, if_true, if_false, fall_through);
|
| } else {
|
| - Handle<Code> ic = CompareNilICStub::GetUninitialized(isolate(), nil);
|
| - CallIC(ic, expr->CompareOperationFeedbackId());
|
| - __ CompareRoot(x0, Heap::kTrueValueRootIndex);
|
| - Split(eq, if_true, if_false, fall_through);
|
| + __ JumpIfSmi(x0, if_false);
|
| + __ Ldr(x0, FieldMemOperand(x0, HeapObject::kMapOffset));
|
| + __ Ldrb(x1, FieldMemOperand(x0, Map::kBitFieldOffset));
|
| + __ TestAndSplit(x1, 1 << Map::kIsUndetectable, if_false, if_true,
|
| + fall_through);
|
| }
|
|
|
| context()->Plug(if_true, if_false);
|
|
|