Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index b9376f2ad511cf6508f1d3e6a264548397948367..c47e1b7bee8a88c226b19dafdcdd8e9b9016cce6 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -421,10 +421,14 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { |
if (info()->shared_info()->asm_function()) { |
if (info()->osr_frame()) info()->MarkAsFrameSpecializing(); |
info()->MarkAsFunctionContextSpecializing(); |
- } else if (info()->has_global_object() && |
- FLAG_native_context_specialization) { |
- info()->MarkAsNativeContextSpecializing(); |
- info()->MarkAsTypingEnabled(); |
+ } else { |
+ if (!FLAG_always_opt) { |
+ info()->MarkAsBailoutOnUninitialized(); |
+ } |
+ if (FLAG_native_context_specialization) { |
+ info()->MarkAsNativeContextSpecializing(); |
+ info()->MarkAsTypingEnabled(); |
+ } |
} |
if (!info()->shared_info()->asm_function() || |
FLAG_turbo_asm_deoptimization) { |