Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index 6a81df1a9d980ba869b1e097b8421f5708d2c998..f674dd53e785e0d34db3f7f7c9cba8fda9f607ef 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -4653,16 +4653,18 @@ void MacroAssembler::Abort(BailoutReason reason) { |
// Avoid infinite recursion; Push contains some assertions that use Abort. |
NoUseRealAbortsScope no_real_aborts(this); |
- Mov(x0, Smi::FromInt(reason)); |
- Push(x0); |
+ // Check if Abort() has already been initialized. |
+ DCHECK(isolate()->builtins()->Abort()->IsHeapObject()); |
+ |
+ Move(x1, Smi::FromInt(static_cast<int>(reason))); |
if (!has_frame_) { |
// We don't actually want to generate a pile of code for this, so just |
// claim there is a stack frame, without generating one. |
FrameScope scope(this, StackFrame::NONE); |
- CallRuntime(Runtime::kAbort); |
+ Call(isolate()->builtins()->Abort(), RelocInfo::CODE_TARGET); |
} else { |
- CallRuntime(Runtime::kAbort); |
+ Call(isolate()->builtins()->Abort(), RelocInfo::CODE_TARGET); |
} |
} else { |
// Load the string to pass to Printf. |