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 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 | 980 |
981 void OS::DebugBreak() { | 981 void OS::DebugBreak() { |
982 #ifdef _MSC_VER | 982 #ifdef _MSC_VER |
983 __debugbreak(); | 983 __debugbreak(); |
984 #else | 984 #else |
985 ::DebugBreak(); | 985 ::DebugBreak(); |
986 #endif | 986 #endif |
987 } | 987 } |
988 | 988 |
989 | 989 |
| 990 void OS::DumpBacktrace() { |
| 991 // Currently unsupported. |
| 992 } |
| 993 |
| 994 |
990 class Win32MemoryMappedFile : public OS::MemoryMappedFile { | 995 class Win32MemoryMappedFile : public OS::MemoryMappedFile { |
991 public: | 996 public: |
992 Win32MemoryMappedFile(HANDLE file, | 997 Win32MemoryMappedFile(HANDLE file, |
993 HANDLE file_mapping, | 998 HANDLE file_mapping, |
994 void* memory, | 999 void* memory, |
995 int size) | 1000 int size) |
996 : file_(file), | 1001 : file_(file), |
997 file_mapping_(file_mapping), | 1002 file_mapping_(file_mapping), |
998 memory_(memory), | 1003 memory_(memory), |
999 size_(size) { } | 1004 size_(size) { } |
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2120 | 2125 |
2121 | 2126 |
2122 void Sampler::Stop() { | 2127 void Sampler::Stop() { |
2123 ASSERT(IsActive()); | 2128 ASSERT(IsActive()); |
2124 SamplerThread::RemoveActiveSampler(this); | 2129 SamplerThread::RemoveActiveSampler(this); |
2125 SetActive(false); | 2130 SetActive(false); |
2126 } | 2131 } |
2127 | 2132 |
2128 | 2133 |
2129 } } // namespace v8::internal | 2134 } } // namespace v8::internal |
OLD | NEW |