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

Side by Side Diff: pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart

Issue 2968383002: Add ConstructorBodyEntity (Closed)
Patch Set: Skip non-live constructor bodies 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 dart2js.kernel.backend_strategy; 5 library dart2js.kernel.backend_strategy;
6 6
7 import 'package:kernel/ast.dart' as ir; 7 import 'package:kernel/ast.dart' as ir;
8 8
9 import '../backend_strategy.dart'; 9 import '../backend_strategy.dart';
10 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; 10 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 _compiler, 98 _compiler,
99 _elementMap, 99 _elementMap,
100 new KernelToTypeInferenceMapImpl(closedWorld), 100 new KernelToTypeInferenceMapImpl(closedWorld),
101 localsMap, 101 localsMap,
102 closedWorld, 102 closedWorld,
103 _compiler.codegenWorldBuilder, 103 _compiler.codegenWorldBuilder,
104 work.registry, 104 work.registry,
105 _compiler.backendStrategy.closureDataLookup, 105 _compiler.backendStrategy.closureDataLookup,
106 // TODO(redemption): Support these: 106 // TODO(redemption): Support these:
107 const SourceInformationBuilder(), 107 const SourceInformationBuilder(),
108 null, // Function node used as capture scope id. 108 null); // Function node used as capture scope id.
109 targetIsConstructorBody: false);
110 return builder.build(); 109 return builder.build();
111 } 110 }
112 } 111 }
113 112
114 class KernelToTypeInferenceMapImpl implements KernelToTypeInferenceMap { 113 class KernelToTypeInferenceMapImpl implements KernelToTypeInferenceMap {
115 final ClosedWorld _closedWorld; 114 final ClosedWorld _closedWorld;
116 115
117 KernelToTypeInferenceMapImpl(this._closedWorld); 116 KernelToTypeInferenceMapImpl(this._closedWorld);
118 117
119 @override 118 @override
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 Iterable<ClassEntity> sortClasses(Iterable<ClassEntity> classes) { 235 Iterable<ClassEntity> sortClasses(Iterable<ClassEntity> classes) {
237 return classes.toList() 236 return classes.toList()
238 ..sort((ClassEntity a, ClassEntity b) { 237 ..sort((ClassEntity a, ClassEntity b) {
239 int r = _compareLibraries(a.library, b.library); 238 int r = _compareLibraries(a.library, b.library);
240 if (r != 0) return r; 239 if (r != 0) return r;
241 return _compareNodes( 240 return _compareNodes(
242 a, elementMap.getClassNode(a), b, elementMap.getClassNode(b)); 241 a, elementMap.getClassNode(a), b, elementMap.getClassNode(b));
243 }); 242 });
244 } 243 }
245 } 244 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/kelements.dart ('k') | pkg/compiler/lib/src/resolution/resolution_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698