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

Side by Side Diff: lib/compiler/implementation/ssa/optimize.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
« no previous file with comments | « lib/compiler/implementation/ssa/nodes.dart ('k') | lib/compiler/implementation/ssa/types.dart » ('j') | 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 part of ssa;
6
5 abstract class OptimizationPhase { 7 abstract class OptimizationPhase {
6 String get name; 8 String get name;
7 void visitGraph(HGraph graph); 9 void visitGraph(HGraph graph);
8 } 10 }
9 11
10 class SsaOptimizerTask extends CompilerTask { 12 class SsaOptimizerTask extends CompilerTask {
11 final JavaScriptBackend backend; 13 final JavaScriptBackend backend;
12 SsaOptimizerTask(JavaScriptBackend backend) 14 SsaOptimizerTask(JavaScriptBackend backend)
13 : this.backend = backend, 15 : this.backend = backend,
14 super(backend.compiler); 16 super(backend.compiler);
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1337 } 1339 }
1338 1340
1339 // For other fields having setters in the generative constructor body, set 1341 // For other fields having setters in the generative constructor body, set
1340 // the type to UNKNOWN to avoid relying on the type set in the initializer 1342 // the type to UNKNOWN to avoid relying on the type set in the initializer
1341 // list. 1343 // list.
1342 allSetters.forEach((Element element) { 1344 allSetters.forEach((Element element) {
1343 backend.registerFieldConstructor(element, HType.UNKNOWN); 1345 backend.registerFieldConstructor(element, HType.UNKNOWN);
1344 }); 1346 });
1345 } 1347 }
1346 } 1348 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/ssa/nodes.dart ('k') | lib/compiler/implementation/ssa/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698