| 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 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 // To avoid Visual Studio runtime support the following code can be used | 884 // To avoid Visual Studio runtime support the following code can be used |
| 885 // instead | 885 // instead |
| 886 // __asm { int 3 } | 886 // __asm { int 3 } |
| 887 __debugbreak(); | 887 __debugbreak(); |
| 888 #else | 888 #else |
| 889 ::DebugBreak(); | 889 ::DebugBreak(); |
| 890 #endif | 890 #endif |
| 891 } | 891 } |
| 892 | 892 |
| 893 | 893 |
| 894 void OS::DumpBacktrace() { | |
| 895 // Currently unsupported. | |
| 896 } | |
| 897 | |
| 898 | |
| 899 class Win32MemoryMappedFile : public OS::MemoryMappedFile { | 894 class Win32MemoryMappedFile : public OS::MemoryMappedFile { |
| 900 public: | 895 public: |
| 901 Win32MemoryMappedFile(HANDLE file, | 896 Win32MemoryMappedFile(HANDLE file, |
| 902 HANDLE file_mapping, | 897 HANDLE file_mapping, |
| 903 void* memory, | 898 void* memory, |
| 904 int size) | 899 int size) |
| 905 : file_(file), | 900 : file_(file), |
| 906 file_mapping_(file_mapping), | 901 file_mapping_(file_mapping), |
| 907 memory_(memory), | 902 memory_(memory), |
| 908 size_(size) { } | 903 size_(size) { } |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1445 ASSERT(result); | 1440 ASSERT(result); |
| 1446 } | 1441 } |
| 1447 | 1442 |
| 1448 | 1443 |
| 1449 | 1444 |
| 1450 void Thread::YieldCPU() { | 1445 void Thread::YieldCPU() { |
| 1451 Sleep(0); | 1446 Sleep(0); |
| 1452 } | 1447 } |
| 1453 | 1448 |
| 1454 } } // namespace v8::internal | 1449 } } // namespace v8::internal |
| OLD | NEW |