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

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

Issue 2791993002: Fix dart2js warnings and add test to ensure it stays clean. (Closed)
Patch Set: Remove unused method. Created 3 years, 8 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 import '../common.dart'; 5 import '../common.dart';
6 import '../compiler.dart' show Compiler;
7 import '../js_backend/js_backend.dart'; 6 import '../js_backend/js_backend.dart';
8 import 'nodes.dart'; 7 import 'nodes.dart';
9 8
10 /** 9 /**
11 * The [LiveRange] class covers a range where an instruction is live. 10 * The [LiveRange] class covers a range where an instruction is live.
12 */ 11 */
13 class LiveRange { 12 class LiveRange {
14 final int start; 13 final int start;
15 // [end] is not final because it can be updated due to loops. 14 // [end] is not final because it can be updated due to loops.
16 int end; 15 int end;
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 if (!needsName(input)) { 705 if (!needsName(input)) {
707 names.addAssignment(predecessor, input, phi); 706 names.addAssignment(predecessor, input, phi);
708 } else { 707 } else {
709 names.addCopy(predecessor, input, phi); 708 names.addCopy(predecessor, input, phi);
710 } 709 }
711 } 710 }
712 711
713 namer.allocateName(phi); 712 namer.allocateName(phi);
714 } 713 }
715 } 714 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698