| 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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 USE(length); | 774 USE(length); |
| 775 } | 775 } |
| 776 | 776 |
| 777 | 777 |
| 778 void OS::Sleep(int milliseconds) { | 778 void OS::Sleep(int milliseconds) { |
| 779 ::Sleep(milliseconds); | 779 ::Sleep(milliseconds); |
| 780 } | 780 } |
| 781 | 781 |
| 782 | 782 |
| 783 void OS::Abort() { | 783 void OS::Abort() { |
| 784 // Redirect to windows specific abort to ensure | 784 // Make the MSVCRT do a silent abort. |
| 785 // collaboration with sandboxing. | 785 _set_abort_behavior(0, _WRITE_ABORT_MSG); |
| 786 __debugbreak(); | 786 _set_abort_behavior(0, _CALL_REPORTFAULT); |
| 787 abort(); |
| 787 } | 788 } |
| 788 | 789 |
| 789 | 790 |
| 790 void OS::DebugBreak() { | 791 void OS::DebugBreak() { |
| 791 __debugbreak(); | 792 __debugbreak(); |
| 792 } | 793 } |
| 793 | 794 |
| 794 | 795 |
| 795 class Win32MemoryMappedFile : public OS::MemoryMappedFile { | 796 class Win32MemoryMappedFile : public OS::MemoryMappedFile { |
| 796 public: | 797 public: |
| (...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1565 | 1566 |
| 1566 // Release the thread handles | 1567 // Release the thread handles |
| 1567 CloseHandle(data_->sampler_thread_); | 1568 CloseHandle(data_->sampler_thread_); |
| 1568 CloseHandle(data_->profiled_thread_); | 1569 CloseHandle(data_->profiled_thread_); |
| 1569 } | 1570 } |
| 1570 | 1571 |
| 1571 | 1572 |
| 1572 #endif // ENABLE_LOGGING_AND_PROFILING | 1573 #endif // ENABLE_LOGGING_AND_PROFILING |
| 1573 | 1574 |
| 1574 } } // namespace v8::internal | 1575 } } // namespace v8::internal |
| OLD | NEW |