summaryrefslogtreecommitdiff
path: root/deps/v8/src/base/platform/platform-win32.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/base/platform/platform-win32.cc')
-rw-r--r--deps/v8/src/base/platform/platform-win32.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/deps/v8/src/base/platform/platform-win32.cc b/deps/v8/src/base/platform/platform-win32.cc
index 45aabf390f..c82ec5335a 100644
--- a/deps/v8/src/base/platform/platform-win32.cc
+++ b/deps/v8/src/base/platform/platform-win32.cc
@@ -113,7 +113,7 @@ class WindowsTimezoneCache : public TimezoneCache {
~WindowsTimezoneCache() override {}
- void Clear() override { initialized_ = false; }
+ void Clear(TimeZoneDetection) override { initialized_ = false; }
const char* LocalTimezone(double time) override;
@@ -690,7 +690,7 @@ void OS::StrNCpy(char* dest, int length, const char* src, size_t n) {
#undef STRUNCATE
DEFINE_LAZY_LEAKY_OBJECT_GETTER(RandomNumberGenerator,
- GetPlatformRandomNumberGenerator);
+ GetPlatformRandomNumberGenerator)
static LazyMutex rng_mutex = LAZY_MUTEX_INITIALIZER;
void OS::Initialize(bool hard_abort, const char* const gc_fake_mmap) {
@@ -920,6 +920,11 @@ void OS::Sleep(TimeDelta interval) {
void OS::Abort() {
+ // Give a chance to debug the failure.
+ if (IsDebuggerPresent()) {
+ DebugBreak();
+ }
+
// Before aborting, make sure to flush output buffers.
fflush(stdout);
fflush(stderr);