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

Side by Side Diff: lib/compiler/implementation/ssa/variable_allocator.dart

Issue 11262032: Add 'part of' in dart2js code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | Annotate | Revision Log
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 part of ssa;
6
5 /** 7 /**
6 * The [LiveRange] class covers a range where an instruction is live. 8 * The [LiveRange] class covers a range where an instruction is live.
7 */ 9 */
8 class LiveRange { 10 class LiveRange {
9 final int start; 11 final int start;
10 // [end] is not final because it can be updated due to loops. 12 // [end] is not final because it can be updated due to loops.
11 int end; 13 int end;
12 LiveRange(this.start, this.end) { 14 LiveRange(this.start, this.end) {
13 assert(start <= end); 15 assert(start <= end);
14 } 16 }
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 if (!needsName(input)) { 652 if (!needsName(input)) {
651 names.addAssignment(predecessor, input, phi); 653 names.addAssignment(predecessor, input, phi);
652 } else { 654 } else {
653 names.addCopy(predecessor, input, phi); 655 names.addCopy(predecessor, input, phi);
654 } 656 }
655 } 657 }
656 658
657 namer.allocateName(phi); 659 namer.allocateName(phi);
658 } 660 }
659 } 661 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/ssa/value_set.dart ('k') | lib/compiler/implementation/tree/dartstring.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698