Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 74e3fcc33a1701d4a1836090188de51776bc22f5..5180e6b051c0382855ed55c0df16c03780379290 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -524,7 +524,13 @@ void MacroAssembler::Abort(BailoutReason reason) { |
RecordComment("Abort message: "); |
RecordComment(msg); |
} |
+ |
+ if (FLAG_trap_on_abort) { |
+ int3(); |
+ return; |
+ } |
#endif |
+ |
push(rax); |
movq(kScratchRegister, p0, RelocInfo::NONE64); |
push(kScratchRegister); |