| Index: src/ia32/macro-assembler-ia32.cc
|
| diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc
|
| index 1a9d70dda5d171537ad23a34166b95c8276f348d..83c7ce891758b9ca68091d18dad3dd3404dc70da 100644
|
| --- a/src/ia32/macro-assembler-ia32.cc
|
| +++ b/src/ia32/macro-assembler-ia32.cc
|
| @@ -2952,15 +2952,19 @@ void MacroAssembler::Abort(BailoutReason reason) {
|
| }
|
| #endif
|
|
|
| - push(Immediate(reinterpret_cast<intptr_t>(Smi::FromInt(reason))));
|
| + // Check if Abort() has already been initialized.
|
| + DCHECK(isolate()->builtins()->Abort()->IsHeapObject());
|
| +
|
| + Move(edx, 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
|
| int3();
|
|
|