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

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

Issue 656123005: Implement loop variable assignment analysis. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added unit tests. Created 6 years, 1 month 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 | « src/compiler/ast-loop-assignment-analyzer.cc ('k') | src/compiler/control-builders.cc » ('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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Tracks control flow for an iteration statement. 62 // Tracks control flow for an iteration statement.
63 class LoopBuilder : public ControlBuilder { 63 class LoopBuilder : public ControlBuilder {
64 public: 64 public:
65 explicit LoopBuilder(StructuredGraphBuilder* builder) 65 explicit LoopBuilder(StructuredGraphBuilder* builder)
66 : ControlBuilder(builder), 66 : ControlBuilder(builder),
67 loop_environment_(NULL), 67 loop_environment_(NULL),
68 continue_environment_(NULL), 68 continue_environment_(NULL),
69 break_environment_(NULL) {} 69 break_environment_(NULL) {}
70 70
71 // Primitive control commands. 71 // Primitive control commands.
72 void BeginLoop(); 72 void BeginLoop(BitVector* assigned);
73 void EndBody(); 73 void EndBody();
74 void EndLoop(); 74 void EndLoop();
75 75
76 // Primitive support for break and continue. 76 // Primitive support for break and continue.
77 virtual void Continue(); 77 virtual void Continue();
78 virtual void Break(); 78 virtual void Break();
79 79
80 // Compound control command for conditional break. 80 // Compound control command for conditional break.
81 void BreakUnless(Node* condition); 81 void BreakUnless(Node* condition);
82 82
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 virtual void Break(); 134 virtual void Break();
135 135
136 private: 136 private:
137 Environment* break_environment_; // Environment after the block exits. 137 Environment* break_environment_; // Environment after the block exits.
138 }; 138 };
139 } 139 }
140 } 140 }
141 } // namespace v8::internal::compiler 141 } // namespace v8::internal::compiler
142 142
143 #endif // V8_COMPILER_CONTROL_BUILDERS_H_ 143 #endif // V8_COMPILER_CONTROL_BUILDERS_H_
OLDNEW
« no previous file with comments | « src/compiler/ast-loop-assignment-analyzer.cc ('k') | src/compiler/control-builders.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698