Index: src/builtins/x64/builtins-x64.cc |
diff --git a/src/builtins/x64/builtins-x64.cc b/src/builtins/x64/builtins-x64.cc |
index c015405c6028e5a40cdcdfc25dce855102184c58..1fb26bf8dd480c0dfda7707d19d983b63ff9a968 100644 |
--- a/src/builtins/x64/builtins-x64.cc |
+++ b/src/builtins/x64/builtins-x64.cc |
@@ -2115,6 +2115,19 @@ void Builtins::Generate_AllocateInOldSpace(MacroAssembler* masm) { |
__ TailCallRuntime(Runtime::kAllocateInTargetSpace); |
} |
+// static |
+void Builtins::Generate_Abort(MacroAssembler* masm) { |
+ // ----------- S t a t e ------------- |
+ // -- rdx : message_id as Smi |
+ // -- rsp[0] : return address |
+ // ----------------------------------- |
+ __ PopReturnAddressTo(rcx); |
+ __ Push(rdx); |
+ __ PushReturnAddressFrom(rcx); |
+ __ Move(rsi, Smi::FromInt(0)); |
+ __ TailCallRuntime(Runtime::kAbort); |
+} |
+ |
void Builtins::Generate_StringToNumber(MacroAssembler* masm) { |
// The StringToNumber stub takes one argument in rax. |
__ AssertString(rax); |