| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 182 |
| 183 void OS::Abort() { | 183 void OS::Abort() { |
| 184 // Redirect to std abort to signal abnormal program termination. | 184 // Redirect to std abort to signal abnormal program termination. |
| 185 abort(); | 185 abort(); |
| 186 } | 186 } |
| 187 | 187 |
| 188 | 188 |
| 189 void OS::DebugBreak() { | 189 void OS::DebugBreak() { |
| 190 #if (defined(__arm__) || defined(__thumb__)) | 190 #if (defined(__arm__) || defined(__thumb__)) |
| 191 asm("bkpt 0"); | 191 asm("bkpt 0"); |
| 192 #elif defined(__aarch64__) |
| 193 asm("brk 0"); |
| 192 #else | 194 #else |
| 193 asm("int $3"); | 195 asm("int $3"); |
| 194 #endif | 196 #endif |
| 195 } | 197 } |
| 196 | 198 |
| 197 | 199 |
| 198 void OS::DumpBacktrace() { | 200 void OS::DumpBacktrace() { |
| 199 POSIXBacktraceHelper<backtrace, backtrace_symbols>::DumpBacktrace(); | 201 POSIXBacktraceHelper<backtrace, backtrace_symbols>::DumpBacktrace(); |
| 200 } | 202 } |
| 201 | 203 |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 limit_mutex = CreateMutex(); | 594 limit_mutex = CreateMutex(); |
| 593 } | 595 } |
| 594 | 596 |
| 595 | 597 |
| 596 void OS::TearDown() { | 598 void OS::TearDown() { |
| 597 delete limit_mutex; | 599 delete limit_mutex; |
| 598 } | 600 } |
| 599 | 601 |
| 600 | 602 |
| 601 } } // namespace v8::internal | 603 } } // namespace v8::internal |
| OLD | NEW |