Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 86bf7634296dcbf71b8a2debf27262464a1a1e3c..5bf9f7b0d154f66c9e924695dc3c5dd2f1df0987 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -7951,9 +7951,12 @@ int HOptimizedGraphBuilder::InliningAstSize(Handle<JSFunction> target) { |
Handle<JSFunction> caller = current_info()->closure(); |
Handle<SharedFunctionInfo> target_shared(target->shared()); |
- // Always inline builtins marked for inlining. |
+ // Always inline functions that force inlining. |
+ if (target_shared->force_inline()) { |
+ return 0; |
+ } |
if (target->IsBuiltin()) { |
- return target_shared->inline_builtin() ? 0 : kNotInlinable; |
+ return kNotInlinable; |
} |
if (target_shared->IsApiFunction()) { |