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

Unified Diff: src/compiler.cc

Issue 1823033002: [compiler] Move PassesFilter onto SharedFunctionInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/crankshaft/compilation-phase.cc » ('j') | src/objects.cc » ('J')
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 3d6805d88fbdc9f2b027940806328b8169fb2a8f..ee8f72bc0af7e73e6b2f32b8d39c589e6364679f 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -410,7 +410,7 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() {
}
// Check the whitelist for Crankshaft.
- if (!info()->closure()->PassesFilter(FLAG_hydrogen_filter)) {
+ if (!info()->shared_info()->PassesFilter(FLAG_hydrogen_filter)) {
return AbortOptimization(kHydrogenFilter);
}
@@ -451,7 +451,8 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() {
!optimization_disabled;
// 3. Explicitly enabled by the command-line filter.
- bool passes_turbo_filter = info()->closure()->PassesFilter(FLAG_turbo_filter);
+ bool passes_turbo_filter =
+ info()->shared_info()->PassesFilter(FLAG_turbo_filter);
// If this is OSR request, OSR must be enabled by Turbofan.
bool passes_osr_test = FLAG_turbo_osr || !info()->is_osr();
@@ -820,7 +821,7 @@ bool UseIgnition(CompilationInfo* info) {
}
// Finally respect the filter.
- return info->closure()->PassesFilter(FLAG_ignition_filter);
+ return info->closure()->shared()->PassesFilter(FLAG_ignition_filter);
Michael Starzinger 2016/03/22 09:06:31 Note that CompilationInfo::shared_info() cannot ye
Jakob Kummerow 2016/03/22 09:32:10 Acknowledged.
}
int CodeAndMetadataSize(CompilationInfo* info) {
« no previous file with comments | « no previous file | src/crankshaft/compilation-phase.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698