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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 DebugBreak(); | 412 DebugBreak(); |
413 } | 413 } |
414 abort(); | 414 abort(); |
415 } | 415 } |
416 | 416 |
417 | 417 |
418 void OS::DebugBreak() { | 418 void OS::DebugBreak() { |
419 // TODO(lrn): Introduce processor define for runtime system (!= V8_ARCH_x, | 419 // TODO(lrn): Introduce processor define for runtime system (!= V8_ARCH_x, |
420 // which is the architecture of generated code). | 420 // which is the architecture of generated code). |
421 #if (defined(__arm__) || defined(__thumb__)) | 421 #if (defined(__arm__) || defined(__thumb__)) |
422 # if defined(CAN_USE_ARMV5_INSTRUCTIONS) | |
423 asm("bkpt 0"); | 422 asm("bkpt 0"); |
424 # endif | |
425 #elif defined(__mips__) | 423 #elif defined(__mips__) |
426 asm("break"); | 424 asm("break"); |
427 #elif defined(__native_client__) | 425 #elif defined(__native_client__) |
428 asm("hlt"); | 426 asm("hlt"); |
429 #else | 427 #else |
430 asm("int $3"); | 428 asm("int $3"); |
431 #endif | 429 #endif |
432 } | 430 } |
433 | 431 |
434 | 432 |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 limit_mutex = CreateMutex(); | 996 limit_mutex = CreateMutex(); |
999 } | 997 } |
1000 | 998 |
1001 | 999 |
1002 void OS::TearDown() { | 1000 void OS::TearDown() { |
1003 delete limit_mutex; | 1001 delete limit_mutex; |
1004 } | 1002 } |
1005 | 1003 |
1006 | 1004 |
1007 } } // namespace v8::internal | 1005 } } // namespace v8::internal |
OLD | NEW |