| 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
|
|
|