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

Unified Diff: src/compiler/js-inlining-heuristic.h

Issue 1419373012: [turbofan] Run inlining within the regular reducer fixpoint. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Limit inlining depth. Created 5 years, 1 month 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/graph-reducer.cc ('k') | src/compiler/js-inlining-heuristic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-inlining-heuristic.h
diff --git a/src/compiler/js-inlining-heuristic.h b/src/compiler/js-inlining-heuristic.h
index c6f04be0455521243b812c11b5412968064e9e8e..7f577475bf46f02d218a91a0ff7a48c6c861b5b2 100644
--- a/src/compiler/js-inlining-heuristic.h
+++ b/src/compiler/js-inlining-heuristic.h
@@ -18,17 +18,16 @@ class JSInliningHeuristic final : public AdvancedReducer {
CompilationInfo* info, JSGraph* jsgraph)
: AdvancedReducer(editor),
mode_(mode),
- local_zone_(local_zone),
- jsgraph_(jsgraph),
inliner_(editor, local_zone, info, jsgraph),
candidates_(local_zone),
+ seen_(local_zone),
info_(info) {}
Reduction Reduce(Node* node) final;
// Processes the list of candidates gathered while the reducer was running,
// and inlines call sites that the heuristic determines to be important.
- void ProcessCandidates();
+ void Finalize() final;
private:
struct Candidate {
@@ -49,11 +48,11 @@ class JSInliningHeuristic final : public AdvancedReducer {
void PrintCandidates();
Mode const mode_;
- Zone* local_zone_;
- JSGraph* jsgraph_;
JSInliner inliner_;
Candidates candidates_;
+ ZoneSet<NodeId> seen_;
CompilationInfo* info_;
+ int cumulative_count_ = 0;
};
} // namespace compiler
« no previous file with comments | « src/compiler/graph-reducer.cc ('k') | src/compiler/js-inlining-heuristic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698