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

Unified Diff: src/compiler.cc

Issue 2654733004: [tests] Make assertOptimized()/assertUnoptimized() great again. (Closed)
Patch Set: Created 3 years, 11 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/runtime/runtime.h » ('j') | test/mjsunit/regress/regress-crbug-594183.js » ('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 e906682267227c922b941ea4015620ecfd4fdb2a..99114bfa602fbc14abd72f2f7cf6b5d3e85be353 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -326,11 +326,12 @@ bool UseTurboFan(Handle<SharedFunctionInfo> shared) {
must_use_ignition_turbo && strcmp(FLAG_turbo_filter, "~~") == 0 &&
!optimization_disabled;
- // 3. Explicitly enabled by the command-line filter.
- bool passes_turbo_filter = shared->PassesFilter(FLAG_turbo_filter);
+ // 3. Explicitly enabled by the command-line filter which is not "*".
+ bool passes_explicit_turbo_filter =
+ (FLAG_turbo_filter[0] != '*') && shared->PassesFilter(FLAG_turbo_filter);
return is_turbofanable_asm || is_unsupported_by_crankshaft_but_turbofanable ||
- passes_turbo_filter;
+ passes_explicit_turbo_filter;
}
bool ShouldUseIgnition(CompilationInfo* info) {
« no previous file with comments | « no previous file | src/runtime/runtime.h » ('j') | test/mjsunit/regress/regress-crbug-594183.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698