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 f28f46ba2dd02f87e7478610ee3246e6771cae23..a094022462df3372a1fc1d24f4b63dfe335eec91 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -4650,7 +4650,8 @@ void FullCodeGenerator::EmitLiteralCompareNil(CompareOperation* expr, |
} else { |
Handle<Code> ic = CompareNilICStub::GetUninitialized(isolate(), nil); |
CallIC(ic, expr->CompareOperationFeedbackId()); |
- __ CompareAndSplit(x0, 0, ne, if_true, if_false, fall_through); |
+ __ CompareRoot(x0, Heap::kTrueValueRootIndex); |
+ Split(eq, if_true, if_false, fall_through); |
} |
context()->Plug(if_true, if_false); |