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