Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 12205967b4bd1225663f0c9642f0d2cb35127009..615ea71d8adc46f810ed3ae2c0d561014f9541e7 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -8278,11 +8278,12 @@ int HOptimizedGraphBuilder::InliningAstSize(Handle<JSFunction> target) { |
} |
// Target must be inlineable. |
- if (!target_shared->IsInlineable()) { |
+ BailoutReason noopt_reason = target_shared->disable_optimization_reason(); |
+ if (!target_shared->IsInlineable() && noopt_reason != kHydrogenFilter) { |
TraceInline(target, caller, "target not inlineable"); |
return kNotInlinable; |
} |
- if (target_shared->disable_optimization_reason() != kNoReason) { |
+ if (noopt_reason != kNoReason && noopt_reason != kHydrogenFilter) { |
TraceInline(target, caller, "target contains unsupported syntax [early]"); |
return kNotInlinable; |
} |