| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 187 |
| 188 | 188 |
| 189 void OS::Abort() { | 189 void OS::Abort() { |
| 190 // Redirect to std abort to signal abnormal program termination. | 190 // Redirect to std abort to signal abnormal program termination. |
| 191 abort(); | 191 abort(); |
| 192 } | 192 } |
| 193 | 193 |
| 194 | 194 |
| 195 void OS::DebugBreak() { | 195 void OS::DebugBreak() { |
| 196 #if (defined(__arm__) || defined(__thumb__)) | 196 #if (defined(__arm__) || defined(__thumb__)) |
| 197 # if defined(CAN_USE_ARMV5_INSTRUCTIONS) | |
| 198 asm("bkpt 0"); | 197 asm("bkpt 0"); |
| 199 # endif | |
| 200 #else | 198 #else |
| 201 asm("int $3"); | 199 asm("int $3"); |
| 202 #endif | 200 #endif |
| 203 } | 201 } |
| 204 | 202 |
| 205 | 203 |
| 206 void OS::DumpBacktrace() { | 204 void OS::DumpBacktrace() { |
| 207 void* trace[100]; | 205 void* trace[100]; |
| 208 int size = backtrace(trace, ARRAY_SIZE(trace)); | 206 int size = backtrace(trace, ARRAY_SIZE(trace)); |
| 209 char** symbols = backtrace_symbols(trace, size); | 207 char** symbols = backtrace_symbols(trace, size); |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 limit_mutex = CreateMutex(); | 691 limit_mutex = CreateMutex(); |
| 694 } | 692 } |
| 695 | 693 |
| 696 | 694 |
| 697 void OS::TearDown() { | 695 void OS::TearDown() { |
| 698 delete limit_mutex; | 696 delete limit_mutex; |
| 699 } | 697 } |
| 700 | 698 |
| 701 | 699 |
| 702 } } // namespace v8::internal | 700 } } // namespace v8::internal |
| OLD | NEW |