Commit aba40098 authored by brucedawson's avatar brucedawson Committed by Commit bot

Use correct define for identifying MSVC compiler

Optimizations are supposed to be disabled in our stack-trace code when
building with VC++. However the check used #if defined(COMPILER_MSVC)
when that is never defined in v8. The correct define in v8 is
V8_CC_MSVC.

R=hablich@chromium.org

Review-Url: https://codereview.chromium.org/2800043003
Cr-Commit-Position: refs/heads/master@{#44621}
parent 148ff739
......@@ -168,7 +168,7 @@ void DisableSignalStackDump() {
// that breaks CaptureStackBackTrace() and prevents StackTrace from working
// in Release builds (it may still be janky if other frames are using FPO,
// but at least it will make it further).
#if defined(COMPILER_MSVC)
#if defined(V8_CC_MSVC)
#pragma optimize("", off)
#endif
......@@ -177,7 +177,7 @@ StackTrace::StackTrace() {
count_ = CaptureStackBackTrace(0, arraysize(trace_), trace_, NULL);
}
#if defined(COMPILER_MSVC)
#if defined(V8_CC_MSVC)
#pragma optimize("", on)
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment