Index: src/builtins/x87/builtins-x87.cc |
diff --git a/src/builtins/x87/builtins-x87.cc b/src/builtins/x87/builtins-x87.cc |
index e4ebf20daf354f7740535b735f358fed3c0b7203..6b039111c948375df76367182390fea9497b2a99 100644 |
--- a/src/builtins/x87/builtins-x87.cc |
+++ b/src/builtins/x87/builtins-x87.cc |
@@ -2723,6 +2723,19 @@ void Builtins::Generate_AllocateInOldSpace(MacroAssembler* masm) { |
} |
// static |
+void Builtins::Generate_Abort(MacroAssembler* masm) { |
+ // ----------- S t a t e ------------- |
+ // -- edx : message_id as Smi |
+ // -- esp[0] : return address |
+ // ----------------------------------- |
+ __ PopReturnAddressTo(ecx); |
+ __ Push(edx); |
+ __ PushReturnAddressFrom(ecx); |
+ __ Move(esi, Smi::FromInt(0)); |
+ __ TailCallRuntime(Runtime::kAbort); |
+} |
+ |
+// static |
void Builtins::Generate_StringToNumber(MacroAssembler* masm) { |
// The StringToNumber stub takes one argument in eax. |
__ AssertString(eax); |