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

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

Issue 1087973002: Rewrite for-in loop as indexing loop for JavaScript indexable arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: retry Created 5 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 | Annotate | Revision Log
« no previous file with comments | « pkg/compiler/lib/src/ssa/codegen_helpers.dart ('k') | pkg/compiler/lib/src/ssa/optimize.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; 5 part of ssa;
6 6
7 abstract class HVisitor<R> { 7 abstract class HVisitor<R> {
8 R visitAdd(HAdd node); 8 R visitAdd(HAdd node);
9 R visitAwait(HAwait node); 9 R visitAwait(HAwait node);
10 R visitBitAnd(HBitAnd node); 10 R visitBitAnd(HBitAnd node);
(...skipping 2169 matching lines...) Expand 10 before | Expand all | Expand 10 after
2180 TypeMask type) 2180 TypeMask type)
2181 : this(variable, inputs, type); 2181 : this(variable, inputs, type);
2182 2182
2183 void addInput(HInstruction input) { 2183 void addInput(HInstruction input) {
2184 assert(isInBasicBlock()); 2184 assert(isInBasicBlock());
2185 inputs.add(input); 2185 inputs.add(input);
2186 assert(inputs.length <= block.predecessors.length); 2186 assert(inputs.length <= block.predecessors.length);
2187 input.usedBy.add(this); 2187 input.usedBy.add(this);
2188 } 2188 }
2189 2189
2190 toString() => 'phi'; 2190 toString() => 'phi $id';
2191 accept(HVisitor visitor) => visitor.visitPhi(this); 2191 accept(HVisitor visitor) => visitor.visitPhi(this);
2192 } 2192 }
2193 2193
2194 abstract class HRelational extends HInvokeBinary { 2194 abstract class HRelational extends HInvokeBinary {
2195 bool usesBoolifiedInterceptor = false; 2195 bool usesBoolifiedInterceptor = false;
2196 HRelational(left, right, selector, type) : super(left, right, selector, type); 2196 HRelational(left, right, selector, type) : super(left, right, selector, type);
2197 } 2197 }
2198 2198
2199 class HIdentity extends HRelational { 2199 class HIdentity extends HRelational {
2200 // Cached codegen decision. 2200 // Cached codegen decision.
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
3175 class HDynamicType extends HRuntimeType { 3175 class HDynamicType extends HRuntimeType {
3176 HDynamicType(DynamicType dartType, TypeMask instructionType) 3176 HDynamicType(DynamicType dartType, TypeMask instructionType)
3177 : super(const <HInstruction>[], dartType, instructionType); 3177 : super(const <HInstruction>[], dartType, instructionType);
3178 3178
3179 accept(HVisitor visitor) => visitor.visitDynamicType(this); 3179 accept(HVisitor visitor) => visitor.visitDynamicType(this);
3180 3180
3181 int typeCode() => HInstruction.DYNAMIC_TYPE_TYPECODE; 3181 int typeCode() => HInstruction.DYNAMIC_TYPE_TYPECODE;
3182 3182
3183 bool typeEquals(HInstruction other) => other is HDynamicType; 3183 bool typeEquals(HInstruction other) => other is HDynamicType;
3184 } 3184 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/codegen_helpers.dart ('k') | pkg/compiler/lib/src/ssa/optimize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698