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

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

Issue 1994503002: [turbofan] Turn common Guard operator into simplified TypeGuard. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | 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 92c6dd01ba20fbbd54a67b0d122f1ba04d6e3da1..4a1323b279491fb2423cab77a1ea49e5eabe8c9a 100644
--- a/src/compiler/load-elimination.h
+++ b/src/compiler/load-elimination.h
@@ -11,25 +11,26 @@ namespace v8 {
namespace internal {
namespace compiler {
-class CommonOperatorBuilder;
class Graph;
+class SimplifiedOperatorBuilder;
class LoadElimination final : public AdvancedReducer {
public:
explicit LoadElimination(Editor* editor, Graph* graph,
- CommonOperatorBuilder* common)
- : AdvancedReducer(editor), graph_(graph), common_(common) {}
+ SimplifiedOperatorBuilder* simplified)
+ : AdvancedReducer(editor), graph_(graph), simplified_(simplified) {}
~LoadElimination() final;
Reduction Reduce(Node* node) final;
private:
- CommonOperatorBuilder* common() const { return common_; }
- Graph* graph() { return graph_; }
+ SimplifiedOperatorBuilder* simplified() const { return simplified_; }
+ Graph* graph() const { return graph_; }
Reduction ReduceLoadField(Node* node);
- Graph* graph_;
- CommonOperatorBuilder* common_;
+
+ Graph* const graph_;
+ SimplifiedOperatorBuilder* const simplified_;
};
} // namespace compiler
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/compiler/load-elimination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698