Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index 190e8682f711c4c9c8046b85897d485ee5d4f200..0d1736c7d63ec8076b9aa8368d932d8ff30a572f 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -2847,6 +2847,11 @@ void MacroAssembler::Abort(BailoutReason reason) { |
RecordComment("Abort message: "); |
RecordComment(msg); |
} |
+ |
+ if (FLAG_trap_on_abort) { |
+ stop(msg); |
+ return; |
+ } |
#endif |
mov(r0, Operand(p0)); |