| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 4168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4179 Abort(reason); | 4179 Abort(reason); |
| 4180 // Will not return here. | 4180 // Will not return here. |
| 4181 Bind(&ok); | 4181 Bind(&ok); |
| 4182 } | 4182 } |
| 4183 | 4183 |
| 4184 | 4184 |
| 4185 void MacroAssembler::Abort(BailoutReason reason) { | 4185 void MacroAssembler::Abort(BailoutReason reason) { |
| 4186 #ifdef DEBUG | 4186 #ifdef DEBUG |
| 4187 RecordComment("Abort message: "); | 4187 RecordComment("Abort message: "); |
| 4188 RecordComment(GetBailoutReason(reason)); | 4188 RecordComment(GetBailoutReason(reason)); |
| 4189 |
| 4190 if (FLAG_trap_on_abort) { |
| 4191 Brk(0); |
| 4192 return; |
| 4193 } |
| 4189 #endif | 4194 #endif |
| 4190 | 4195 |
| 4191 Label msg_address; | 4196 Label msg_address; |
| 4192 Adr(x0, &msg_address); | 4197 Adr(x0, &msg_address); |
| 4193 | 4198 |
| 4194 if (use_real_aborts()) { | 4199 if (use_real_aborts()) { |
| 4195 // Split the message pointer into two SMI to avoid the GC | 4200 // Split the message pointer into two SMI to avoid the GC |
| 4196 // trying to scan the string. | 4201 // trying to scan the string. |
| 4197 STATIC_ASSERT((kSmiShift == 32) && (kSmiTag == 0)); | 4202 STATIC_ASSERT((kSmiShift == 32) && (kSmiTag == 0)); |
| 4198 SmiTag(x1, x0); | 4203 SmiTag(x1, x0); |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4639 } | 4644 } |
| 4640 } | 4645 } |
| 4641 | 4646 |
| 4642 | 4647 |
| 4643 #undef __ | 4648 #undef __ |
| 4644 | 4649 |
| 4645 | 4650 |
| 4646 } } // namespace v8::internal | 4651 } } // namespace v8::internal |
| 4647 | 4652 |
| 4648 #endif // V8_TARGET_ARCH_A64 | 4653 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |