Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index e496aee62d6760f3f13325fe5e84147aa1b7a91d..50e69a2c4dbbcfe2d0296fa142fdf8d19a7bfe2e 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -417,6 +417,7 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { |
compiler::Pipeline pipeline(info()); |
pipeline.GenerateCode(); |
if (!info()->code().is_null()) { |
+ info()->context()->native_context()->AddOptimizedCode(*info()->code()); |
return SetLastStatus(SUCCEEDED); |
} |
} |