Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Unified Diff: test/cctest/compiler/function-tester.cc

Issue 2406623002: Revert of [parser] Deprecate ParseInfo constructor taking closure. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | test/cctest/compiler/test-linkage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()));
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | test/cctest/compiler/test-linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698