Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 747db8a8c7ed6b6c24126159a297656db99ebd3f..9874a0b2abe35c75e847cc030bdfb9a8b26655bb 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -119,6 +119,11 @@ HCompilationJob::Status HCompilationJob::CreateGraphImpl() { |
return FAILED; |
} |
+ // Check the whitelist for Crankshaft. |
+ if (!info()->shared_info()->PassesFilter(FLAG_hydrogen_filter)) { |
+ return AbortOptimization(kHydrogenFilter); |
+ } |
+ |
Scope* scope = info()->scope(); |
if (LUnallocated::TooManyParameters(scope->num_parameters())) { |
// Crankshaft would require too many Lithium operands. |