deps: V8: workaround for MSVC 14.20 optimizer bug

Refs: https://developercommunity.visualstudio.com/content/problem/512352/compiler-doesnt-finish-142027508.html

Backport-PR-URL: https://github.com/nodejs/node/pull/28005
PR-URL: https://github.com/nodejs/node/pull/27375
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
Refael Ackermann authored and Michaël Zasso committed 2019-06-04 18:45:59 +02:00
1 parent 0a5ff4cb33
commit f8a33abe0c
2 files changed
+10 -1

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@
# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.10',
'v8_embedder_string': '-node.11',
##### V8 defaults for Node.js #####
+9
View File
@@ -297,6 +297,10 @@ Code GenerateBytecodeHandler(Isolate* isolate, int builtin_index,
} // namespace
#if _MSC_VER == 1920
#pragma optimize( "", off )
#endif
// static
void SetupIsolateDelegate::SetupBuiltinsInternal(Isolate* isolate) {
Builtins* builtins = isolate->builtins();
@@ -380,5 +384,10 @@ void SetupIsolateDelegate::SetupBuiltinsInternal(Isolate* isolate) {
builtins->MarkInitialized();
}
#if _MSC_VER == 1920
#pragma optimize( "", on )
#endif
} // namespace internal
} // namespace v8