Index: test/cctest/compiler/function-tester.h |
diff --git a/test/cctest/compiler/function-tester.h b/test/cctest/compiler/function-tester.h |
index 71a9139db8dae8a3f2b163f97318d8ec9033a0e1..20a597431e08fdb15c7f9c3dba4ff890e649635e 100644 |
--- a/test/cctest/compiler/function-tester.h |
+++ b/test/cctest/compiler/function-tester.h |
@@ -176,6 +176,7 @@ class FunctionTester : public InitializedHandleScope { |
Pipeline pipeline(&info); |
Handle<Code> code = pipeline.GenerateCode(); |
CHECK(!code.is_null()); |
+ info.dependencies()->Commit(code); |
info.context()->native_context()->AddOptimizedCode(*code); |
function->ReplaceCode(*code); |
return function; |