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

Unified Diff: src/compiler/value-numbering-reducer.h

Issue 2145683004: [turbofan] Make sure value numbering only narrows types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Created 4 years, 5 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/pipeline.cc ('k') | src/compiler/value-numbering-reducer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/value-numbering-reducer.h
diff --git a/src/compiler/value-numbering-reducer.h b/src/compiler/value-numbering-reducer.h
index 822b6075c5ff4b5c6801f1e212cc408c6188f639..f700c85bc00dec321fa8948799f8e24aab4e880d 100644
--- a/src/compiler/value-numbering-reducer.h
+++ b/src/compiler/value-numbering-reducer.h
@@ -13,7 +13,7 @@ namespace compiler {
class ValueNumberingReducer final : public Reducer {
public:
- explicit ValueNumberingReducer(Zone* zone);
+ explicit ValueNumberingReducer(Zone* temp_zone, Zone* graph_zone);
~ValueNumberingReducer();
Reduction Reduce(Node* node) override;
@@ -22,12 +22,14 @@ class ValueNumberingReducer final : public Reducer {
enum { kInitialCapacity = 256u, kCapacityToSizeRatio = 2u };
void Grow();
- Zone* zone() const { return zone_; }
+ Zone* temp_zone() const { return temp_zone_; }
+ Zone* graph_zone() const { return graph_zone_; }
Node** entries_;
size_t capacity_;
size_t size_;
- Zone* zone_;
+ Zone* temp_zone_;
+ Zone* graph_zone_;
};
} // namespace compiler
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/value-numbering-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698