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

Side by Side Diff: dart/frog/leg/ssa/types.dart

Issue 9572041: Changes to make leg build bots green (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « dart/frog/leg/ssa/bailout.dart ('k') | dart/tests/co19/co19-leg.status » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 class SsaTypePropagator extends HGraphVisitor { 5 class SsaTypePropagator extends HGraphVisitor implements OptimizationPhase {
6 6
7 final Map<int, HInstruction> workmap; 7 final Map<int, HInstruction> workmap;
8 final List<int> worklist; 8 final List<int> worklist;
9 final Compiler compiler; 9 final Compiler compiler;
10 final String name = 'type propagator';
10 11
11 SsaTypePropagator(Compiler this.compiler) 12 SsaTypePropagator(Compiler this.compiler)
12 : workmap = new Map<int, HInstruction>(), 13 : workmap = new Map<int, HInstruction>(),
13 worklist = new List<int>(); 14 worklist = new List<int>();
14 15
15 void visitGraph(HGraph graph) { 16 void visitGraph(HGraph graph) {
16 new TypeAnnotationReader(compiler).visitGraph(graph); 17 new TypeAnnotationReader(compiler).visitGraph(graph);
17 visitDominatorTree(graph); 18 visitDominatorTree(graph);
18 processWorklist(); 19 processWorklist();
19 } 20 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 parameter.type = HType.INTEGER; 82 parameter.type = HType.INTEGER;
82 } else if (type.toString() == 'String') { 83 } else if (type.toString() == 'String') {
83 parameter.type = HType.STRING; 84 parameter.type = HType.STRING;
84 } 85 }
85 } 86 }
86 87
87 void visitGraph(HGraph graph) { 88 void visitGraph(HGraph graph) {
88 visitDominatorTree(graph); 89 visitDominatorTree(graph);
89 } 90 }
90 } 91 }
OLDNEW
« no previous file with comments | « dart/frog/leg/ssa/bailout.dart ('k') | dart/tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698