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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // Redirect to std abort to signal abnormal program termination | 175 // Redirect to std abort to signal abnormal program termination |
176 abort(); | 176 abort(); |
177 } | 177 } |
178 | 178 |
179 | 179 |
180 void OS::DebugBreak() { | 180 void OS::DebugBreak() { |
181 asm("int $3"); | 181 asm("int $3"); |
182 } | 182 } |
183 | 183 |
184 | 184 |
| 185 void OS::DumpBacktrace() { |
| 186 // Currently unsupported. |
| 187 } |
| 188 |
| 189 |
185 class PosixMemoryMappedFile : public OS::MemoryMappedFile { | 190 class PosixMemoryMappedFile : public OS::MemoryMappedFile { |
186 public: | 191 public: |
187 PosixMemoryMappedFile(FILE* file, void* memory, int size) | 192 PosixMemoryMappedFile(FILE* file, void* memory, int size) |
188 : file_(file), memory_(memory), size_(size) { } | 193 : file_(file), memory_(memory), size_(size) { } |
189 virtual ~PosixMemoryMappedFile(); | 194 virtual ~PosixMemoryMappedFile(); |
190 virtual void* memory() { return memory_; } | 195 virtual void* memory() { return memory_; } |
191 virtual int size() { return size_; } | 196 virtual int size() { return size_; } |
192 private: | 197 private: |
193 FILE* file_; | 198 FILE* file_; |
194 void* memory_; | 199 void* memory_; |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 | 911 |
907 | 912 |
908 void Sampler::Stop() { | 913 void Sampler::Stop() { |
909 ASSERT(IsActive()); | 914 ASSERT(IsActive()); |
910 SamplerThread::RemoveActiveSampler(this); | 915 SamplerThread::RemoveActiveSampler(this); |
911 SetActive(false); | 916 SetActive(false); |
912 } | 917 } |
913 | 918 |
914 | 919 |
915 } } // namespace v8::internal | 920 } } // namespace v8::internal |
OLD | NEW |