Index: test/cctest/compiler/function-tester.cc |
diff --git a/test/cctest/compiler/function-tester.cc b/test/cctest/compiler/function-tester.cc |
index d10535a4b8829af1f7023b784c194186915eb98a..dcd9bd7e6c26e7234a6eae30f359983ecab47209 100644 |
--- a/test/cctest/compiler/function-tester.cc |
+++ b/test/cctest/compiler/function-tester.cc |
@@ -158,7 +158,7 @@ Handle<JSFunction> FunctionTester::ForMachineGraph(Graph* graph, |
Handle<JSFunction> FunctionTester::Compile(Handle<JSFunction> function) { |
Zone zone(function->GetIsolate()->allocator()); |
- ParseInfo parse_info(&zone, function); |
+ ParseInfo parse_info(&zone, handle(function->shared())); |
CompilationInfo info(&parse_info, function); |
info.SetOptimizing(); |
@@ -186,7 +186,7 @@ Handle<JSFunction> FunctionTester::Compile(Handle<JSFunction> function) { |
// and replace the JSFunction's code with the result. |
Handle<JSFunction> FunctionTester::CompileGraph(Graph* graph) { |
Zone zone(function->GetIsolate()->allocator()); |
- ParseInfo parse_info(&zone, function); |
+ ParseInfo parse_info(&zone, handle(function->shared())); |
CompilationInfo info(&parse_info, function); |
CHECK(Parser::ParseStatic(info.parse_info())); |