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

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

Issue 2935063002: Add ClosedWorld.elementEnvironment and remove Compiler.elementEnvironment (Closed)
Patch Set: 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
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 '../closure.dart'; 10 import '../closure.dart';
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 @override 67 @override
68 WorkItemBuilder createCodegenWorkItemBuilder(ClosedWorld closedWorld) { 68 WorkItemBuilder createCodegenWorkItemBuilder(ClosedWorld closedWorld) {
69 return new KernelCodegenWorkItemBuilder(_compiler.backend, closedWorld); 69 return new KernelCodegenWorkItemBuilder(_compiler.backend, closedWorld);
70 } 70 }
71 71
72 @override 72 @override
73 CodegenWorldBuilder createCodegenWorldBuilder( 73 CodegenWorldBuilder createCodegenWorldBuilder(
74 NativeBasicData nativeBasicData, 74 NativeBasicData nativeBasicData,
75 ClosedWorld closedWorld, 75 ClosedWorld closedWorld,
76 SelectorConstraintsStrategy selectorConstraintsStrategy) { 76 SelectorConstraintsStrategy selectorConstraintsStrategy) {
77 return new KernelCodegenWorldBuilder(_compiler.elementEnvironment, 77 return new KernelCodegenWorldBuilder(closedWorld.elementEnvironment,
78 nativeBasicData, closedWorld, selectorConstraintsStrategy); 78 nativeBasicData, closedWorld, selectorConstraintsStrategy);
79 } 79 }
80 80
81 @override 81 @override
82 SsaBuilderTask createSsaBuilderTask(JavaScriptBackend backend, 82 SsaBuilderTask createSsaBuilderTask(JavaScriptBackend backend,
83 SourceInformationStrategy sourceInformationStrategy) { 83 SourceInformationStrategy sourceInformationStrategy) {
84 return new KernelSsaBuilderTask(backend.compiler); 84 return new KernelSsaBuilderTask(backend.compiler);
85 } 85 }
86 86
87 @override 87 @override
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 Iterable<ClassEntity> sortClasses(Iterable<ClassEntity> classes) { 356 Iterable<ClassEntity> sortClasses(Iterable<ClassEntity> classes) {
357 return classes.toList() 357 return classes.toList()
358 ..sort((ClassEntity a, ClassEntity b) { 358 ..sort((ClassEntity a, ClassEntity b) {
359 int r = _compareLibraries(a.library, b.library); 359 int r = _compareLibraries(a.library, b.library);
360 if (r != 0) return r; 360 if (r != 0) return r;
361 return _compareNodes( 361 return _compareNodes(
362 a, elementMap.getClassNode(a), b, elementMap.getClassNode(b)); 362 a, elementMap.getClassNode(a), b, elementMap.getClassNode(b));
363 }); 363 });
364 } 364 }
365 } 365 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/element_map_impl.dart ('k') | pkg/compiler/lib/src/native/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698