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

Side by Side Diff: src/compiler/control-builders.h

Issue 640423005: Use phase-local zone in the graph builder. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compiler/graph-builder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_CONTROL_BUILDERS_H_ 5 #ifndef V8_COMPILER_CONTROL_BUILDERS_H_
6 #define V8_COMPILER_CONTROL_BUILDERS_H_ 6 #define V8_COMPILER_CONTROL_BUILDERS_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/compiler/graph-builder.h" 10 #include "src/compiler/graph-builder.h"
(...skipping 14 matching lines...) Expand all
25 virtual ~ControlBuilder() {} 25 virtual ~ControlBuilder() {}
26 26
27 // Interface for break and continue. 27 // Interface for break and continue.
28 virtual void Break() { UNREACHABLE(); } 28 virtual void Break() { UNREACHABLE(); }
29 virtual void Continue() { UNREACHABLE(); } 29 virtual void Continue() { UNREACHABLE(); }
30 30
31 protected: 31 protected:
32 typedef StructuredGraphBuilder Builder; 32 typedef StructuredGraphBuilder Builder;
33 typedef StructuredGraphBuilder::Environment Environment; 33 typedef StructuredGraphBuilder::Environment Environment;
34 34
35 Zone* zone() const { return builder_->zone(); } 35 Zone* zone() const { return builder_->local_zone(); }
36 Environment* environment() { return builder_->environment(); } 36 Environment* environment() { return builder_->environment(); }
37 void set_environment(Environment* env) { builder_->set_environment(env); } 37 void set_environment(Environment* env) { builder_->set_environment(env); }
38 38
39 Builder* builder_; 39 Builder* builder_;
40 }; 40 };
41 41
42 42
43 // Tracks control flow for a conditional statement. 43 // Tracks control flow for a conditional statement.
44 class IfBuilder : public ControlBuilder { 44 class IfBuilder : public ControlBuilder {
45 public: 45 public:
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 virtual void Break(); 135 virtual void Break();
136 136
137 private: 137 private:
138 Environment* break_environment_; // Environment after the block exits. 138 Environment* break_environment_; // Environment after the block exits.
139 }; 139 };
140 } 140 }
141 } 141 }
142 } // namespace v8::internal::compiler 142 } // namespace v8::internal::compiler
143 143
144 #endif // V8_COMPILER_CONTROL_BUILDERS_H_ 144 #endif // V8_COMPILER_CONTROL_BUILDERS_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/graph-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698