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

Unified Diff: src/compiler/load-elimination.h

Issue 1857133003: [turbofan] Restrict types in load elimination. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 4 years, 8 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 | « no previous file | src/compiler/load-elimination.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/load-elimination.h
diff --git a/src/compiler/load-elimination.h b/src/compiler/load-elimination.h
index db87d9a082095432fbcd14c5ccfe6fe80fc53305..92c6dd01ba20fbbd54a67b0d122f1ba04d6e3da1 100644
--- a/src/compiler/load-elimination.h
+++ b/src/compiler/load-elimination.h
@@ -11,15 +11,25 @@ namespace v8 {
namespace internal {
namespace compiler {
+class CommonOperatorBuilder;
+class Graph;
+
class LoadElimination final : public AdvancedReducer {
public:
- explicit LoadElimination(Editor* editor) : AdvancedReducer(editor) {}
+ explicit LoadElimination(Editor* editor, Graph* graph,
+ CommonOperatorBuilder* common)
+ : AdvancedReducer(editor), graph_(graph), common_(common) {}
~LoadElimination() final;
Reduction Reduce(Node* node) final;
private:
+ CommonOperatorBuilder* common() const { return common_; }
+ Graph* graph() { return graph_; }
+
Reduction ReduceLoadField(Node* node);
+ Graph* graph_;
+ CommonOperatorBuilder* common_;
};
} // namespace compiler
« no previous file with comments | « no previous file | src/compiler/load-elimination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698