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

Side by Side Diff: pkg/compiler/lib/src/inferrer/builder.dart

Issue 2930293002: Parameterize and move JumpTarget/LabelDefition to elements/jumps.dart (Closed)
Patch Set: Fix Created 3 years, 6 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
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/js_backend/namer.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library simple_types_inferrer; 5 library simple_types_inferrer;
6 6
7 import '../closure.dart' show ClosureClassMap; 7 import '../closure.dart' show ClosureClassMap;
8 import '../common.dart'; 8 import '../common.dart';
9 import '../common/names.dart' show Identifiers, Selectors; 9 import '../common/names.dart' show Identifiers, Selectors;
10 import '../compiler.dart' show Compiler; 10 import '../compiler.dart' show Compiler;
11 import '../constants/constant_system.dart'; 11 import '../constants/constant_system.dart';
12 import '../constants/expressions.dart'; 12 import '../constants/expressions.dart';
13 import '../constants/values.dart' show ConstantValue, IntConstantValue; 13 import '../constants/values.dart' show ConstantValue, IntConstantValue;
14 import '../elements/elements.dart'; 14 import '../elements/elements.dart';
15 import '../elements/entities.dart'; 15 import '../elements/entities.dart';
16 import '../elements/jumps.dart';
16 import '../elements/names.dart'; 17 import '../elements/names.dart';
17 import '../elements/operators.dart' as op; 18 import '../elements/operators.dart' as op;
18 import '../elements/resolution_types.dart' 19 import '../elements/resolution_types.dart'
19 show ResolutionDartType, ResolutionInterfaceType; 20 show ResolutionDartType, ResolutionInterfaceType;
20 import '../js_backend/backend.dart' show JavaScriptBackend; 21 import '../js_backend/backend.dart' show JavaScriptBackend;
21 import '../native/native.dart' as native; 22 import '../native/native.dart' as native;
22 import '../resolution/semantic_visitor.dart'; 23 import '../resolution/semantic_visitor.dart';
23 import '../resolution/tree_elements.dart' show TreeElements; 24 import '../resolution/tree_elements.dart' show TreeElements;
24 import '../tree/tree.dart' as ast; 25 import '../tree/tree.dart' as ast;
25 import '../types/constants.dart' show computeTypeMask; 26 import '../types/constants.dart' show computeTypeMask;
(...skipping 2923 matching lines...) Expand 10 before | Expand all | Expand 10 after
2949 Selector moveNextSelector = Selectors.moveNext; 2950 Selector moveNextSelector = Selectors.moveNext;
2950 TypeMask moveNextMask = inTreeData.typeOfIteratorMoveNext(node); 2951 TypeMask moveNextMask = inTreeData.typeOfIteratorMoveNext(node);
2951 2952
2952 TypeInformation iteratorType = handleDynamicSend(node, iteratorSelector, 2953 TypeInformation iteratorType = handleDynamicSend(node, iteratorSelector,
2953 iteratorMask, expressionType, new ArgumentsTypes.empty()); 2954 iteratorMask, expressionType, new ArgumentsTypes.empty());
2954 2955
2955 return handleForInLoop(node, iteratorType, currentSelector, currentMask, 2956 return handleForInLoop(node, iteratorType, currentSelector, currentMask,
2956 moveNextSelector, moveNextMask); 2957 moveNextSelector, moveNextMask);
2957 } 2958 }
2958 } 2959 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/js_backend/namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698