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

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

Issue 2302363003: No longer store the compilation-context in WorkItem. (Closed)
Patch Set: ... lint Created 4 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
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 '../closure.dart'; 5 import '../closure.dart';
6 import '../common.dart'; 6 import '../common.dart';
7 import '../compiler.dart' show Compiler; 7 import '../compiler.dart' show Compiler;
8 import '../constants/constant_system.dart'; 8 import '../constants/constant_system.dart';
9 import '../constants/values.dart'; 9 import '../constants/values.dart';
10 import '../dart_types.dart'; 10 import '../dart_types.dart';
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 Element element; // Used for debug printing. 157 Element element; // Used for debug printing.
158 HBasicBlock entry; 158 HBasicBlock entry;
159 HBasicBlock exit; 159 HBasicBlock exit;
160 HThis thisInstruction; 160 HThis thisInstruction;
161 161
162 /// Receiver parameter, set for methods using interceptor calling convention. 162 /// Receiver parameter, set for methods using interceptor calling convention.
163 HParameterValue explicitReceiverParameter; 163 HParameterValue explicitReceiverParameter;
164 bool isRecursiveMethod = false; 164 bool isRecursiveMethod = false;
165 bool calledInLoop = false; 165 bool calledInLoop = false;
166 final List<HBasicBlock> blocks = <HBasicBlock>[]; 166 final List<HBasicBlock> blocks = <HBasicBlock>[];
167
168 /// Nodes containing list allocations for which there is a known fixed length.
169 // TODO(sigmund,sra): consider not storing this explicitly here (e.g. maybe
170 // store it on HInstruction, or maybe this can be computed on demand).
171 final Set<HInstruction> allocatedFixedLists = new Set<HInstruction>();
172
167 SourceInformation sourceInformation; 173 SourceInformation sourceInformation;
168 174
169 // We canonicalize all constants used within a graph so we do not 175 // We canonicalize all constants used within a graph so we do not
170 // have to worry about them for global value numbering. 176 // have to worry about them for global value numbering.
171 Map<ConstantValue, HConstant> constants = new Map<ConstantValue, HConstant>(); 177 Map<ConstantValue, HConstant> constants = new Map<ConstantValue, HConstant>();
172 178
173 HGraph() { 179 HGraph() {
174 entry = addNewBlock(); 180 entry = addNewBlock();
175 // The exit block will be added later, so it has an id that is 181 // The exit block will be added later, so it has an id that is
176 // after all others in the system. 182 // after all others in the system.
(...skipping 3246 matching lines...) Expand 10 before | Expand all | Expand 10 after
3423 class HDynamicType extends HRuntimeType { 3429 class HDynamicType extends HRuntimeType {
3424 HDynamicType(DynamicType dartType, TypeMask instructionType) 3430 HDynamicType(DynamicType dartType, TypeMask instructionType)
3425 : super(const <HInstruction>[], dartType, instructionType); 3431 : super(const <HInstruction>[], dartType, instructionType);
3426 3432
3427 accept(HVisitor visitor) => visitor.visitDynamicType(this); 3433 accept(HVisitor visitor) => visitor.visitDynamicType(this);
3428 3434
3429 int typeCode() => HInstruction.DYNAMIC_TYPE_TYPECODE; 3435 int typeCode() => HInstruction.DYNAMIC_TYPE_TYPECODE;
3430 3436
3431 bool typeEquals(HInstruction other) => other is HDynamicType; 3437 bool typeEquals(HInstruction other) => other is HDynamicType;
3432 } 3438 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/interceptor_simplifier.dart ('k') | pkg/compiler/lib/src/ssa/optimize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698