OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 283 |
284 void OS::Abort() { | 284 void OS::Abort() { |
285 // Redirect to std abort to signal abnormal program termination. | 285 // Redirect to std abort to signal abnormal program termination. |
286 abort(); | 286 abort(); |
287 } | 287 } |
288 | 288 |
289 | 289 |
290 void OS::DebugBreak() { | 290 void OS::DebugBreak() { |
291 // TODO(lrn): Introduce processor define for runtime system (!= V8_ARCH_x, | 291 // TODO(lrn): Introduce processor define for runtime system (!= V8_ARCH_x, |
292 // which is the architecture of generated code). | 292 // which is the architecture of generated code). |
293 #if (defined(__arm__) || defined(__thumb__)) && \ | 293 #if (defined(__arm__) || defined(__thumb__)) |
294 defined(CAN_USE_ARMV5_INSTRUCTIONS) | 294 # if defined(CAN_USE_ARMV5_INSTRUCTIONS) |
295 asm("bkpt 0"); | 295 asm("bkpt 0"); |
| 296 # endif |
296 #elif defined(__mips__) | 297 #elif defined(__mips__) |
297 asm("break"); | 298 asm("break"); |
298 #else | 299 #else |
299 asm("int $3"); | 300 asm("int $3"); |
300 #endif | 301 #endif |
301 } | 302 } |
302 | 303 |
303 | 304 |
304 class PosixMemoryMappedFile : public OS::MemoryMappedFile { | 305 class PosixMemoryMappedFile : public OS::MemoryMappedFile { |
305 public: | 306 public: |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 | 855 |
855 // This sampler is no longer the active sampler. | 856 // This sampler is no longer the active sampler. |
856 active_sampler_ = NULL; | 857 active_sampler_ = NULL; |
857 active_ = false; | 858 active_ = false; |
858 } | 859 } |
859 | 860 |
860 | 861 |
861 #endif // ENABLE_LOGGING_AND_PROFILING | 862 #endif // ENABLE_LOGGING_AND_PROFILING |
862 | 863 |
863 } } // namespace v8::internal | 864 } } // namespace v8::internal |
OLD | NEW |