Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index f86820cba6469876d73c63c397cb72c1ea0ed448..bf785df53070b4ded4d11e90691f78911a379737 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -2774,6 +2774,11 @@ void MacroAssembler::Abort(BailoutReason reason) { |
RecordComment("Abort message: "); |
RecordComment(msg); |
} |
+ |
+ if (FLAG_trap_on_abort) { |
+ int3(); |
+ return; |
+ } |
#endif |
push(eax); |