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

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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 assert(constructorBody != null); 337 assert(constructorBody != null);
338 return constructorBody; 338 return constructorBody;
339 } 339 }
340 340
341 @override 341 @override
342 Spannable getSpannable(MemberEntity member, ir.Node node) { 342 Spannable getSpannable(MemberEntity member, ir.Node node) {
343 return getNode(node); 343 return getNode(node);
344 } 344 }
345 345
346 @override 346 @override
347 LoopClosureRepresentationInfo getClosureRepresentationInfoForLoop( 347 LoopClosureScope getLoopClosureScope(
348 ClosureDataLookup closureLookup, ir.TreeNode node) { 348 ClosureDataLookup closureLookup, ir.TreeNode node) {
349 return closureLookup.getClosureRepresentationInfoForLoop(getNode(node)); 349 return closureLookup.getLoopClosureScope(getNode(node));
350 } 350 }
351 } 351 }
352 352
353 /// Visitor that converts kernel dart types into [ResolutionDartType]. 353 /// Visitor that converts kernel dart types into [ResolutionDartType].
354 class DartTypeConverter extends ir.DartTypeVisitor<ResolutionDartType> { 354 class DartTypeConverter extends ir.DartTypeVisitor<ResolutionDartType> {
355 final KernelAstAdapter astAdapter; 355 final KernelAstAdapter astAdapter;
356 bool topLevel = true; 356 bool topLevel = true;
357 357
358 DartTypeConverter(this.astAdapter); 358 DartTypeConverter(this.astAdapter);
359 359
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 TypeMask selectorTypeOf(Selector selector, TypeMask mask) { 670 TypeMask selectorTypeOf(Selector selector, TypeMask mask) {
671 return TypeMaskFactory.inferredTypeForSelector( 671 return TypeMaskFactory.inferredTypeForSelector(
672 selector, mask, _globalInferenceResults); 672 selector, mask, _globalInferenceResults);
673 } 673 }
674 674
675 TypeMask typeFromNativeBehavior( 675 TypeMask typeFromNativeBehavior(
676 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld) { 676 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld) {
677 return TypeMaskFactory.fromNativeBehavior(nativeBehavior, closedWorld); 677 return TypeMaskFactory.fromNativeBehavior(nativeBehavior, closedWorld);
678 } 678 }
679 } 679 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder_kernel.dart ('k') | pkg/compiler/lib/src/ssa/locals_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698