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

Unified Diff: src/hydrogen.cc

Issue 1140743004: Generalize builtins inlining flag to allow forced inlining of any function (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index 4f04580376789ec692104af8d6f914bc62b53634..1665c562d2c988cb8b0fab7534ad9764a33a0f87 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -7951,8 +7951,11 @@ int HOptimizedGraphBuilder::InliningAstSize(Handle<JSFunction> target) {
Handle<SharedFunctionInfo> target_shared(target->shared());
// Always inline builtins marked for inlining.
Michael Starzinger 2015/05/20 10:37:35 nit: Comment is outdated now.
danno 2015/05/20 12:19:19 Done.
+ if (target_shared->force_inline()) {
+ return 0;
+ }
if (target->IsBuiltin()) {
- return target_shared->inline_builtin() ? 0 : kNotInlinable;
+ return kNotInlinable;
}
if (target_shared->IsApiFunction()) {
« src/compiler/js-inlining.cc ('K') | « src/compiler/js-inlining.cc ('k') | src/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698