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

Side by Side Diff: vm/intermediate_language.cc

Issue 10700034: Add a goto instruction to the IL use it to terminate basic blocks. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« vm/intermediate_language.h ('K') | « vm/intermediate_language.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/flow_graph_builder.h" 8 #include "vm/flow_graph_builder.h"
9 #include "vm/flow_graph_compiler.h" 9 #include "vm/flow_graph_compiler.h"
10 #include "vm/locations.h" 10 #include "vm/locations.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 void BranchInstr::SetInputAt(intptr_t i, Value* value) { 164 void BranchInstr::SetInputAt(intptr_t i, Value* value) {
165 if (i == 0) { 165 if (i == 0) {
166 value_ = value; 166 value_ = value;
167 return; 167 return;
168 } 168 }
169 UNREACHABLE(); 169 UNREACHABLE();
170 } 170 }
171 171
172 172
173 intptr_t GotoInstr::InputCount() const {
174 return 0;
175 }
176
177
178 Value* GotoInstr::InputAt(intptr_t i) const {
179 UNREACHABLE();
180 return NULL;
181 }
182
183
184 void GotoInstr::SetInputAt(intptr_t i, Value* value) {
185 UNREACHABLE();
186 }
187
188
173 intptr_t ParallelMoveInstr::InputCount() const { 189 intptr_t ParallelMoveInstr::InputCount() const {
174 UNREACHABLE(); 190 UNREACHABLE();
175 return 0; 191 return 0;
176 } 192 }
177 193
178 194
179 Value* ParallelMoveInstr::InputAt(intptr_t i) const { 195 Value* ParallelMoveInstr::InputAt(intptr_t i) const {
180 UNREACHABLE(); 196 UNREACHABLE();
181 return NULL; 197 return NULL;
182 } 198 }
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint()); 1323 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint());
1308 compiler->GenerateCall(token_pos(), try_index(), &label, 1324 compiler->GenerateCall(token_pos(), try_index(), &label,
1309 PcDescriptors::kOther); 1325 PcDescriptors::kOther);
1310 __ Drop(2); // Discard type arguments and receiver. 1326 __ Drop(2); // Discard type arguments and receiver.
1311 } 1327 }
1312 1328
1313 1329
1314 #undef __ 1330 #undef __
1315 1331
1316 } // namespace dart 1332 } // namespace dart
OLDNEW
« vm/intermediate_language.h ('K') | « vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698