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

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

Issue 10917208: Change interfaces to abstract classes in dart2js compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
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 interface OptimizationPhase { 5 abstract class OptimizationPhase {
6 String get name; 6 String get name;
7 void visitGraph(HGraph graph); 7 void visitGraph(HGraph graph);
8 } 8 }
9 9
10 class SsaOptimizerTask extends CompilerTask { 10 class SsaOptimizerTask extends CompilerTask {
11 final JavaScriptBackend backend; 11 final JavaScriptBackend backend;
12 SsaOptimizerTask(JavaScriptBackend backend) 12 SsaOptimizerTask(JavaScriptBackend backend)
13 : this.backend = backend, 13 : this.backend = backend,
14 super(backend.compiler); 14 super(backend.compiler);
15 String get name => 'SSA optimizer'; 15 String get name => 'SSA optimizer';
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 // this type for the field is still a strong signal 1366 // this type for the field is still a strong signal
1367 // indicating the expected type of the field. 1367 // indicating the expected type of the field.
1368 types[field] = type; 1368 types[field] = type;
1369 } else { 1369 } else {
1370 // If there are no invoked setters we know the type of 1370 // If there are no invoked setters we know the type of
1371 // this field for sure. 1371 // this field for sure.
1372 field.guaranteedType = type; 1372 field.guaranteedType = type;
1373 } 1373 }
1374 } 1374 }
1375 } 1375 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698