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

Unified Diff: src/compiler.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 | « no previous file | src/compiler/js-inlining.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 5b478241237bfe64b25eee1d911a2a0dbe64e77c..5d0b22fd0c7d12433fe7d1e6d2e5ab84e9ff7752 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -892,7 +892,7 @@
VMState<COMPILER> state(isolate);
PostponeInterruptsScope postpone(isolate);
Zone zone(isolate->allocator());
- ParseInfo parse_info(&zone, handle(function->shared()));
+ ParseInfo parse_info(&zone, function);
CompilationInfo info(&parse_info, function);
// Reset profiler ticks, function is no longer considered hot.
@@ -1013,7 +1013,7 @@
}
Zone zone(isolate->allocator());
- ParseInfo parse_info(&zone, handle(function->shared()));
+ ParseInfo parse_info(&zone, function);
CompilationInfo info(&parse_info, function);
Handle<Code> result;
ASSIGN_RETURN_ON_EXCEPTION(isolate, result, GetUnoptimizedCode(&info), Code);
@@ -1243,7 +1243,7 @@
function->shared()->ReplaceCode(*code);
} else {
Zone zone(isolate->allocator());
- ParseInfo parse_info(&zone, handle(function->shared()));
+ ParseInfo parse_info(&zone, function);
CompilationInfo info(&parse_info, function);
if (!GetUnoptimizedCode(&info).ToHandle(&code)) {
return false;
@@ -1268,7 +1268,7 @@
// Start a compilation.
Zone zone(isolate->allocator());
- ParseInfo parse_info(&zone, handle(function->shared()));
+ ParseInfo parse_info(&zone, function);
CompilationInfo info(&parse_info, Handle<JSFunction>::null());
if (IsEvalToplevel(handle(function->shared()))) {
parse_info.set_eval();
« no previous file with comments | « no previous file | src/compiler/js-inlining.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698