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

Unified Diff: src/compiler/graph-builder.h

Issue 663333003: [turbofan] use ZonePool in most places in the compiler pipeline a temp zone is used. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 6 years, 2 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/control-reducer.cc ('k') | src/compiler/graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/graph-builder.h
diff --git a/src/compiler/graph-builder.h b/src/compiler/graph-builder.h
index 95e09bbfaf5820bef502986895ec4be5a9e38d6d..a8ef5020b3c5c85905d7faa94acada9dcf686729 100644
--- a/src/compiler/graph-builder.h
+++ b/src/compiler/graph-builder.h
@@ -79,7 +79,8 @@ class GraphBuilder {
// StubGraphBuilder).
class StructuredGraphBuilder : public GraphBuilder {
public:
- StructuredGraphBuilder(Graph* graph, CommonOperatorBuilder* common);
+ StructuredGraphBuilder(Zone* zone, Graph* graph,
+ CommonOperatorBuilder* common);
virtual ~StructuredGraphBuilder() {}
// Creates a new Phi node having {count} input values.
@@ -123,7 +124,7 @@ class StructuredGraphBuilder : public GraphBuilder {
Node* dead_control();
Zone* graph_zone() const { return graph()->zone(); }
- Zone* local_zone() { return &local_zone_; }
+ Zone* local_zone() const { return local_zone_; }
Isolate* isolate() const { return graph_zone()->isolate(); }
CommonOperatorBuilder* common() const { return common_; }
@@ -145,7 +146,7 @@ class StructuredGraphBuilder : public GraphBuilder {
Environment* environment_;
// Zone local to the builder for data not leaking into the graph.
- Zone local_zone_;
+ Zone* local_zone_;
// Node representing the control dependency for dead code.
SetOncePointer<Node> dead_control_;
« no previous file with comments | « src/compiler/control-reducer.cc ('k') | src/compiler/graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698