Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 4f4a40afb5a60c40235d80f9b32037a49c05d1fb..53e2fd3a7bf2e2c95ed30d1afeda0a5d6c1d63f2 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -439,6 +439,9 @@ 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(); |
} else if (FLAG_turbo_type_feedback) { |
info()->MarkAsTypeFeedbackEnabled(); |
info()->EnsureFeedbackVector(); |
@@ -447,9 +450,6 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { |
FLAG_turbo_asm_deoptimization) { |
info()->MarkAsDeoptimizationEnabled(); |
} |
- if (info()->has_global_object() && FLAG_native_context_specialization) { |
- info()->MarkAsNativeContextSpecializing(); |
- } |
Timer t(this, &time_taken_to_create_graph_); |
compiler::Pipeline pipeline(info()); |