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

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 10809047: Cleanups. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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
« no previous file with comments | « runtime/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/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/flow_graph_builder.h" 9 #include "vm/flow_graph_builder.h"
10 #include "vm/flow_graph_compiler.h" 10 #include "vm/flow_graph_compiler.h"
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 UNREACHABLE(); 381 UNREACHABLE();
382 return NULL; 382 return NULL;
383 } 383 }
384 384
385 385
386 void JoinEntryInstr::SetInputAt(intptr_t i, Value* value) { 386 void JoinEntryInstr::SetInputAt(intptr_t i, Value* value) {
387 UNREACHABLE(); 387 UNREACHABLE();
388 } 388 }
389 389
390 390
391 intptr_t JoinEntryInstr::IndexOfPredecessor(BlockEntryInstr* pred) const {
392 for (intptr_t i = 0; i < predecessors_.length(); ++i) {
393 if (predecessors_[i] == pred) return i;
394 }
395 return -1;
396 }
397
398
391 // ==== Recording assigned variables. 399 // ==== Recording assigned variables.
392 void Computation::RecordAssignedVars(BitVector* assigned_vars) { 400 void Computation::RecordAssignedVars(BitVector* assigned_vars) {
393 // Nothing to do for the base class. 401 // Nothing to do for the base class.
394 } 402 }
395 403
396 404
397 void StoreLocalComp::RecordAssignedVars(BitVector* assigned_vars) { 405 void StoreLocalComp::RecordAssignedVars(BitVector* assigned_vars) {
398 if (!local().is_captured()) { 406 if (!local().is_captured()) {
399 assigned_vars->Add(local().BitIndexIn(assigned_vars->length())); 407 assigned_vars->Add(local().BitIndexIn(assigned_vars->length()));
400 } 408 }
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint()); 1312 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint());
1305 compiler->GenerateCall(token_pos(), try_index(), &label, 1313 compiler->GenerateCall(token_pos(), try_index(), &label,
1306 PcDescriptors::kOther); 1314 PcDescriptors::kOther);
1307 __ Drop(2); // Discard type arguments and receiver. 1315 __ Drop(2); // Discard type arguments and receiver.
1308 } 1316 }
1309 1317
1310 1318
1311 #undef __ 1319 #undef __
1312 1320
1313 } // namespace dart 1321 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698