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

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

Issue 850803002: First simple implementation of for-of in TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Primitive control commands. 71 // Primitive control commands.
72 void BeginLoop(BitVector* assigned, bool is_osr = false); 72 void BeginLoop(BitVector* assigned, bool is_osr = false);
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 void Continue() FINAL; 77 void Continue() FINAL;
78 void Break() FINAL; 78 void Break() FINAL;
79 79
80 // Compound control command for conditional break. 80 // Compound control commands for conditional break.
81 void BreakUnless(Node* condition); 81 void BreakUnless(Node* condition);
82 void BreakWhen(Node* condition);
82 83
83 private: 84 private:
84 Environment* loop_environment_; // Environment of the loop header. 85 Environment* loop_environment_; // Environment of the loop header.
85 Environment* continue_environment_; // Environment after the loop body. 86 Environment* continue_environment_; // Environment after the loop body.
86 Environment* break_environment_; // Environment after the loop exits. 87 Environment* break_environment_; // Environment after the loop exits.
87 }; 88 };
88 89
89 90
90 // Tracks control flow for a switch statement. 91 // Tracks control flow for a switch statement.
91 class SwitchBuilder FINAL : public ControlBuilder { 92 class SwitchBuilder FINAL : public ControlBuilder {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 136
136 private: 137 private:
137 Environment* break_environment_; // Environment after the block exits. 138 Environment* break_environment_; // Environment after the block exits.
138 }; 139 };
139 140
140 } // namespace compiler 141 } // namespace compiler
141 } // namespace internal 142 } // namespace internal
142 } // namespace v8 143 } // namespace v8
143 144
144 #endif // V8_COMPILER_CONTROL_BUILDERS_H_ 145 #endif // V8_COMPILER_CONTROL_BUILDERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698