Index: src/ppc/macro-assembler-ppc.cc |
diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc |
index 888987b02e9760262c550e1500f51b99393f02f9..9f808ff4c1f460ce6ab1ffcb98cecef8ed42aeca 100644 |
--- a/src/ppc/macro-assembler-ppc.cc |
+++ b/src/ppc/macro-assembler-ppc.cc |
@@ -2896,16 +2896,19 @@ void MacroAssembler::Abort(BailoutReason reason) { |
} |
#endif |
- LoadSmiLiteral(r0, Smi::FromInt(reason)); |
- push(r0); |
+ // Check if Abort() has already been initialized. |
+ DCHECK(isolate()->builtins()->Abort()->IsHeapObject()); |
+ |
+ LoadSmiLiteral(r4, Smi::FromInt(static_cast<int>(reason))); |
+ |
// Disable stub call restrictions to always allow calls to abort. |
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); |
} |
// will not return here |
} |