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

Side by Side Diff: pkg/compiler/lib/src/ssa/variable_allocator.dart

Issue 1762723002: Cleanup 1: split parts into their own libraries, remove unused imports (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
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; 5 import '../common.dart';
6 import '../compiler.dart' show Compiler;
7 import '../js_backend/js_backend.dart';
8
9 import 'nodes.dart';
6 10
7 /** 11 /**
8 * The [LiveRange] class covers a range where an instruction is live. 12 * The [LiveRange] class covers a range where an instruction is live.
9 */ 13 */
10 class LiveRange { 14 class LiveRange {
11 final int start; 15 final int start;
12 // [end] is not final because it can be updated due to loops. 16 // [end] is not final because it can be updated due to loops.
13 int end; 17 int end;
14 LiveRange(this.start, this.end) { 18 LiveRange(this.start, this.end) {
15 assert(start <= end); 19 assert(start <= end);
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 if (!needsName(input)) { 713 if (!needsName(input)) {
710 names.addAssignment(predecessor, input, phi); 714 names.addAssignment(predecessor, input, phi);
711 } else { 715 } else {
712 names.addCopy(predecessor, input, phi); 716 names.addCopy(predecessor, input, phi);
713 } 717 }
714 } 718 }
715 719
716 namer.allocateName(phi); 720 namer.allocateName(phi);
717 } 721 }
718 } 722 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698