Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 89f61decba5c833f9bafc5e94a829fc3b2216ee1..8ca2ee619458a980b5765ff4448ee1da39da11f8 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -7566,7 +7566,7 @@ int HOptimizedGraphBuilder::InliningAstSize(Handle<JSFunction> target) { |
TraceInline(target, caller, "target not inlineable"); |
return kNotInlinable; |
} |
- if (target_shared->dont_inline()) { |
+ if (target_shared->DisableOptimizationReason() != kNoReason) { |
TraceInline(target, caller, "target contains unsupported syntax [early]"); |
return kNotInlinable; |
} |
@@ -7653,8 +7653,7 @@ bool HOptimizedGraphBuilder::TryInline(Handle<JSFunction> target, |
TraceInline(target, caller, "target AST is too large [late]"); |
return false; |
} |
- AstProperties::Flags* flags(function->flags()); |
- if (flags->Contains(kDontInline) || function->dont_optimize()) { |
+ if (function->dont_optimize()) { |
TraceInline(target, caller, "target contains unsupported syntax [late]"); |
return false; |
} |