Index: src/builtins/ia32/builtins-ia32.cc |
diff --git a/src/builtins/ia32/builtins-ia32.cc b/src/builtins/ia32/builtins-ia32.cc |
index 097aeb773f7f1e69a77e678ad195c2833016216c..b549ab1336e4b3f2bb875fb446079e878e7f4a07 100644 |
--- a/src/builtins/ia32/builtins-ia32.cc |
+++ b/src/builtins/ia32/builtins-ia32.cc |
@@ -2699,6 +2699,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); |