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

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

Issue 2163603003: Revert of [builtins] Introduce a builtin for Abort(). (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 | « no previous file | src/arm64/macro-assembler-arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/macro-assembler-arm.cc
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc
index 18b4a43d44e8c83d24e717c69295d8de5da3ce48..2fbd1cf1f8afd7e96221a6bbe20e82dac39b578e 100644
--- a/src/arm/macro-assembler-arm.cc
+++ b/src/arm/macro-assembler-arm.cc
@@ -2965,19 +2965,17 @@
}
#endif
- // Check if Abort() has already been initialized.
- DCHECK(isolate()->builtins()->Abort()->IsHeapObject());
-
- Move(r1, Smi::FromInt(static_cast<int>(reason)));
+ mov(r0, Operand(Smi::FromInt(reason)));
+ push(r0);
// 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
if (is_const_pool_blocked()) {
« no previous file with comments | « no previous file | src/arm64/macro-assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698