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

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

Issue 2961563003: Hopefully the last bit of restructuring between closture classes and loop boxing, etc. (Closed)
Patch Set: Created 3 years, 5 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 'package:kernel/ast.dart' as ir; 5 import 'package:kernel/ast.dart' as ir;
6 6
7 import '../closure.dart'; 7 import '../closure.dart';
8 import '../common.dart'; 8 import '../common.dart';
9 import '../compiler.dart'; 9 import '../compiler.dart';
10 import '../constants/expressions.dart'; 10 import '../constants/expressions.dart';
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 assert(constructorBody != null); 289 assert(constructorBody != null);
290 return constructorBody; 290 return constructorBody;
291 } 291 }
292 292
293 @override 293 @override
294 Spannable getSpannable(MemberEntity member, ir.Node node) { 294 Spannable getSpannable(MemberEntity member, ir.Node node) {
295 return getNode(node); 295 return getNode(node);
296 } 296 }
297 297
298 @override 298 @override
299 LoopClosureRepresentationInfo getClosureRepresentationInfoForLoop( 299 ClosureBase getClosureRepresentationInfoForLoop(
300 ClosureDataLookup closureLookup, ir.TreeNode node) { 300 ClosureDataLookup closureLookup, ir.TreeNode node) {
301 return closureLookup.getClosureRepresentationInfoForLoop(getNode(node)); 301 return closureLookup.getClosureRepresentationInfoForLoop(getNode(node));
302 } 302 }
303 } 303 }
304 304
305 /// Visitor that converts kernel dart types into [ResolutionDartType]. 305 /// Visitor that converts kernel dart types into [ResolutionDartType].
306 class DartTypeConverter extends ir.DartTypeVisitor<ResolutionDartType> { 306 class DartTypeConverter extends ir.DartTypeVisitor<ResolutionDartType> {
307 final KernelAstAdapter astAdapter; 307 final KernelAstAdapter astAdapter;
308 bool topLevel = true; 308 bool topLevel = true;
309 309
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 TypeMask selectorTypeOf(Selector selector, TypeMask mask) { 613 TypeMask selectorTypeOf(Selector selector, TypeMask mask) {
614 return TypeMaskFactory.inferredTypeForSelector( 614 return TypeMaskFactory.inferredTypeForSelector(
615 selector, mask, _globalInferenceResults); 615 selector, mask, _globalInferenceResults);
616 } 616 }
617 617
618 TypeMask typeFromNativeBehavior( 618 TypeMask typeFromNativeBehavior(
619 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld) { 619 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld) {
620 return TypeMaskFactory.fromNativeBehavior(nativeBehavior, closedWorld); 620 return TypeMaskFactory.fromNativeBehavior(nativeBehavior, closedWorld);
621 } 621 }
622 } 622 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698