Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 75349e99d2793205704b44f396a83e67f21702e6..38998ba19f24e6120d211303b32c203b43bfed7f 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -398,7 +398,6 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { |
compiler::Pipeline pipeline(info()); |
pipeline.GenerateCode(); |
if (!info()->code().is_null()) { |
- info()->dependencies()->Commit(info()->code()); |
return SetLastStatus(SUCCEEDED); |
} |
} |
@@ -487,6 +486,7 @@ OptimizedCompileJob::Status OptimizedCompileJob::GenerateCode() { |
DCHECK(last_status() == SUCCEEDED); |
// TODO(turbofan): Currently everything is done in the first phase. |
if (!info()->code().is_null()) { |
+ info()->dependencies()->Commit(info()->code()); |
if (FLAG_turbo_deoptimization) { |
info()->parse_info()->context()->native_context()->AddOptimizedCode( |
*info()->code()); |