diff options
Diffstat (limited to 'deps/v8/src/base/debug/stack_trace_win.cc')
-rw-r--r-- | deps/v8/src/base/debug/stack_trace_win.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/deps/v8/src/base/debug/stack_trace_win.cc b/deps/v8/src/base/debug/stack_trace_win.cc index 64e6309122..7a7e4f5168 100644 --- a/deps/v8/src/base/debug/stack_trace_win.cc +++ b/deps/v8/src/base/debug/stack_trace_win.cc @@ -24,9 +24,9 @@ namespace debug { namespace { -// Previous unhandled filter. Will be called if not NULL when we intercept an +// Previous unhandled filter. Will be called if not nullptr when we intercept an // exception. Only used in unit tests. -LPTOP_LEVEL_EXCEPTION_FILTER g_previous_filter = NULL; +LPTOP_LEVEL_EXCEPTION_FILTER g_previous_filter = nullptr; bool g_dump_stack_in_signal_handler = true; bool g_initialized_symbols = false; @@ -43,7 +43,7 @@ long WINAPI StackDumpExceptionFilter(EXCEPTION_POINTERS* info) { // NOLINT } void GetExePath(wchar_t* path_out) { - GetModuleFileName(NULL, path_out, MAX_PATH); + GetModuleFileName(nullptr, path_out, MAX_PATH); path_out[MAX_PATH - 1] = L'\0'; PathRemoveFileSpec(path_out); } @@ -54,7 +54,7 @@ bool InitializeSymbols() { // Defer symbol load until they're needed, use undecorated names, and get line // numbers. SymSetOptions(SYMOPT_DEFERRED_LOADS | SYMOPT_UNDNAME | SYMOPT_LOAD_LINES); - if (!SymInitialize(GetCurrentProcess(), NULL, TRUE)) { + if (!SymInitialize(GetCurrentProcess(), nullptr, TRUE)) { g_init_error = GetLastError(); // TODO(awong): Handle error: SymInitialize can fail with // ERROR_INVALID_PARAMETER. @@ -174,7 +174,7 @@ void DisableSignalStackDump() { StackTrace::StackTrace() { // When walking our own stack, use CaptureStackBackTrace(). - count_ = CaptureStackBackTrace(0, arraysize(trace_), trace_, NULL); + count_ = CaptureStackBackTrace(0, arraysize(trace_), trace_, nullptr); } #if defined(V8_CC_MSVC) @@ -216,13 +216,13 @@ void StackTrace::InitTrace(const CONTEXT* context_record) { stack_frame.AddrFrame.Mode = AddrModeFlat; stack_frame.AddrStack.Mode = AddrModeFlat; while (StackWalk64(machine_type, GetCurrentProcess(), GetCurrentThread(), - &stack_frame, &context_copy, NULL, - &SymFunctionTableAccess64, &SymGetModuleBase64, NULL) && + &stack_frame, &context_copy, nullptr, + &SymFunctionTableAccess64, &SymGetModuleBase64, nullptr) && count_ < arraysize(trace_)) { trace_[count_++] = reinterpret_cast<void*>(stack_frame.AddrPC.Offset); } - for (size_t i = count_; i < arraysize(trace_); ++i) trace_[i] = NULL; + for (size_t i = count_; i < arraysize(trace_); ++i) trace_[i] = nullptr; } void StackTrace::Print() const { OutputToStream(&std::cerr); } |