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

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

Issue 809333002: [turbofan] Implement OSR for outer loops. (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
« no previous file with comments | « src/compiler/control-builders.h ('k') | src/compiler/frame.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 #include "control-builders.h" 5 #include "control-builders.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 namespace compiler { 9 namespace compiler {
10 10
(...skipping 14 matching lines...) Expand all
25 builder_->NewIfFalse(); 25 builder_->NewIfFalse();
26 } 26 }
27 27
28 28
29 void IfBuilder::End() { 29 void IfBuilder::End() {
30 then_environment_->Merge(environment()); 30 then_environment_->Merge(environment());
31 set_environment(then_environment_); 31 set_environment(then_environment_);
32 } 32 }
33 33
34 34
35 void LoopBuilder::BeginLoop(BitVector* assigned) { 35 void LoopBuilder::BeginLoop(BitVector* assigned, bool is_osr) {
36 builder_->NewLoop(); 36 loop_environment_ = environment()->CopyForLoop(assigned, is_osr);
37 loop_environment_ = environment()->CopyForLoop(assigned);
38 continue_environment_ = environment()->CopyAsUnreachable(); 37 continue_environment_ = environment()->CopyAsUnreachable();
39 break_environment_ = environment()->CopyAsUnreachable(); 38 break_environment_ = environment()->CopyAsUnreachable();
40 } 39 }
41 40
42 41
43 void LoopBuilder::Continue() { 42 void LoopBuilder::Continue() {
44 continue_environment_->Merge(environment()); 43 continue_environment_->Merge(environment());
45 environment()->MarkAsUnreachable(); 44 environment()->MarkAsUnreachable();
46 } 45 }
47 46
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 } 133 }
135 134
136 135
137 void BlockBuilder::EndBlock() { 136 void BlockBuilder::EndBlock() {
138 break_environment_->Merge(environment()); 137 break_environment_->Merge(environment());
139 set_environment(break_environment_); 138 set_environment(break_environment_);
140 } 139 }
141 } 140 }
142 } 141 }
143 } // namespace v8::internal::compiler 142 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/control-builders.h ('k') | src/compiler/frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698