| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 // Redirect to std abort to signal abnormal program termination. | 195 // Redirect to std abort to signal abnormal program termination. |
| 196 abort(); | 196 abort(); |
| 197 } | 197 } |
| 198 | 198 |
| 199 | 199 |
| 200 void OS::DebugBreak() { | 200 void OS::DebugBreak() { |
| 201 asm("int $3"); | 201 asm("int $3"); |
| 202 } | 202 } |
| 203 | 203 |
| 204 | 204 |
| 205 void OS::DumpBacktrace() { |
| 206 // Currently unsupported. |
| 207 } |
| 208 |
| 209 |
| 205 class PosixMemoryMappedFile : public OS::MemoryMappedFile { | 210 class PosixMemoryMappedFile : public OS::MemoryMappedFile { |
| 206 public: | 211 public: |
| 207 PosixMemoryMappedFile(FILE* file, void* memory, int size) | 212 PosixMemoryMappedFile(FILE* file, void* memory, int size) |
| 208 : file_(file), memory_(memory), size_(size) { } | 213 : file_(file), memory_(memory), size_(size) { } |
| 209 virtual ~PosixMemoryMappedFile(); | 214 virtual ~PosixMemoryMappedFile(); |
| 210 virtual void* memory() { return memory_; } | 215 virtual void* memory() { return memory_; } |
| 211 virtual int size() { return size_; } | 216 virtual int size() { return size_; } |
| 212 private: | 217 private: |
| 213 FILE* file_; | 218 FILE* file_; |
| 214 void* memory_; | 219 void* memory_; |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 } | 861 } |
| 857 | 862 |
| 858 | 863 |
| 859 void Sampler::Stop() { | 864 void Sampler::Stop() { |
| 860 ASSERT(IsActive()); | 865 ASSERT(IsActive()); |
| 861 SignalSender::RemoveActiveSampler(this); | 866 SignalSender::RemoveActiveSampler(this); |
| 862 SetActive(false); | 867 SetActive(false); |
| 863 } | 868 } |
| 864 | 869 |
| 865 } } // namespace v8::internal | 870 } } // namespace v8::internal |
| OLD | NEW |