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

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

Issue 742433002: Use ZoneVector instead of ZoneList in the graph builder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-operator-counts
Patch Set: Remove pesky space. 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
« no previous file with comments | « src/compiler/control-builders.h ('k') | src/parser.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 control_if.Else(); 71 control_if.Else();
72 Break(); 72 Break();
73 control_if.End(); 73 control_if.End();
74 } 74 }
75 75
76 76
77 void SwitchBuilder::BeginSwitch() { 77 void SwitchBuilder::BeginSwitch() {
78 body_environment_ = environment()->CopyAsUnreachable(); 78 body_environment_ = environment()->CopyAsUnreachable();
79 label_environment_ = environment()->CopyAsUnreachable(); 79 label_environment_ = environment()->CopyAsUnreachable();
80 break_environment_ = environment()->CopyAsUnreachable(); 80 break_environment_ = environment()->CopyAsUnreachable();
81 body_environments_.AddBlock(NULL, case_count(), zone());
82 } 81 }
83 82
84 83
85 void SwitchBuilder::BeginLabel(int index, Node* condition) { 84 void SwitchBuilder::BeginLabel(int index, Node* condition) {
86 builder_->NewBranch(condition); 85 builder_->NewBranch(condition);
87 label_environment_ = environment()->CopyForConditional(); 86 label_environment_ = environment()->CopyForConditional();
88 builder_->NewIfTrue(); 87 builder_->NewIfTrue();
89 body_environments_[index] = environment(); 88 body_environments_[index] = environment();
90 } 89 }
91 90
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 } 134 }
136 135
137 136
138 void BlockBuilder::EndBlock() { 137 void BlockBuilder::EndBlock() {
139 break_environment_->Merge(environment()); 138 break_environment_->Merge(environment());
140 set_environment(break_environment_); 139 set_environment(break_environment_);
141 } 140 }
142 } 141 }
143 } 142 }
144 } // namespace v8::internal::compiler 143 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/control-builders.h ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698