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

Unified Diff: src/compiler/js-inlining.cc

Issue 993473002: [turbofan] Add support for inlining of builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « src/compiler/js-inlining.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-inlining.cc
diff --git a/src/compiler/js-inlining.cc b/src/compiler/js-inlining.cc
index 6a739c2cc36bf026b9ed01e6e2b6f71b5e6664f5..a4e0f318e8bd7a385650f905ef5f9a334e8ff64a 100644
--- a/src/compiler/js-inlining.cc
+++ b/src/compiler/js-inlining.cc
@@ -328,6 +328,10 @@ Reduction JSInliner::Reduce(Node* node) {
if (!match.HasValue()) return NoChange();
Handle<JSFunction> function = match.Value().handle();
+ if (!function->IsJSFunction()) return NoChange();
+ if (mode_ == kBuiltinsInlining && !function->shared()->inline_builtin()) {
+ return NoChange();
+ }
CompilationInfoWithZone info(function);
« no previous file with comments | « src/compiler/js-inlining.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698