Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Unified Diff: src/x87/macro-assembler-x87.cc

Issue 2168573002: X87: Revert of [builtins] Introduce a builtin for Abort(). (patchset #5 id:80001 of https://coderev… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins/x87/builtins-x87.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x87/macro-assembler-x87.cc
diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc
index 9ffbf9f34b20d6e4265fd1e3ab3939d70c3cd90f..84f2f38e3c882e37387c584f41578ee8278ab183 100644
--- a/src/x87/macro-assembler-x87.cc
+++ b/src/x87/macro-assembler-x87.cc
@@ -2810,19 +2810,15 @@ void MacroAssembler::Abort(BailoutReason reason) {
}
#endif
- // Check if Abort() has already been initialized.
- DCHECK(isolate()->builtins()->Abort()->IsHeapObject());
-
- Move(edx, Smi::FromInt(static_cast<int>(reason)));
-
+ push(Immediate(reinterpret_cast<intptr_t>(Smi::FromInt(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);
- Call(isolate()->builtins()->Abort(), RelocInfo::CODE_TARGET);
+ CallRuntime(Runtime::kAbort);
} else {
- Call(isolate()->builtins()->Abort(), RelocInfo::CODE_TARGET);
+ CallRuntime(Runtime::kAbort);
}
// will not return here
int3();
« no previous file with comments | « src/builtins/x87/builtins-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698