OLD | NEW |
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 #include "src/compiler/control-builders.h" | 5 #include "src/compiler/control-builders.h" |
6 | 6 |
| 7 #include "src/objects-inl.h" |
| 8 |
7 namespace v8 { | 9 namespace v8 { |
8 namespace internal { | 10 namespace internal { |
9 namespace compiler { | 11 namespace compiler { |
10 | 12 |
11 | 13 |
12 void IfBuilder::If(Node* condition, BranchHint hint) { | 14 void IfBuilder::If(Node* condition, BranchHint hint) { |
13 builder_->NewBranch(condition, hint); | 15 builder_->NewBranch(condition, hint); |
14 else_environment_ = environment()->CopyForConditional(); | 16 else_environment_ = environment()->CopyForConditional(); |
15 } | 17 } |
16 | 18 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 178 |
177 | 179 |
178 void BlockBuilder::EndBlock() { | 180 void BlockBuilder::EndBlock() { |
179 break_environment_->Merge(environment()); | 181 break_environment_->Merge(environment()); |
180 set_environment(break_environment_); | 182 set_environment(break_environment_); |
181 } | 183 } |
182 | 184 |
183 } // namespace compiler | 185 } // namespace compiler |
184 } // namespace internal | 186 } // namespace internal |
185 } // namespace v8 | 187 } // namespace v8 |
OLD | NEW |