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

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

Issue 2858223004: Rename KernelElementAdapter and element_adapter.dart to IrToElementMap and ir_map.dart (Closed)
Patch Set: Created 3 years, 7 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.element_map; 5 library dart2js.kernel.element_map;
6 6
7 import 'package:kernel/ast.dart' as ir; 7 import 'package:kernel/ast.dart' as ir;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/names.dart' show Identifiers; 10 import '../common/names.dart' show Identifiers;
(...skipping 13 matching lines...) Expand all
24 import '../js_backend/constant_system_javascript.dart'; 24 import '../js_backend/constant_system_javascript.dart';
25 import '../js_backend/native_data.dart'; 25 import '../js_backend/native_data.dart';
26 import '../js_backend/no_such_method_registry.dart'; 26 import '../js_backend/no_such_method_registry.dart';
27 import '../native/native.dart' as native; 27 import '../native/native.dart' as native;
28 import '../native/resolver.dart'; 28 import '../native/resolver.dart';
29 import '../ordered_typeset.dart'; 29 import '../ordered_typeset.dart';
30 import '../ssa/kernel_impact.dart'; 30 import '../ssa/kernel_impact.dart';
31 import '../universe/call_structure.dart'; 31 import '../universe/call_structure.dart';
32 import '../universe/world_builder.dart'; 32 import '../universe/world_builder.dart';
33 import '../util/util.dart' show Link, LinkBuilder; 33 import '../util/util.dart' show Link, LinkBuilder;
34 import 'element_adapter.dart'; 34 import 'ir_element_map.dart';
35 import 'elements.dart'; 35 import 'elements.dart';
36 36
37 part 'native_basic_data.dart'; 37 part 'native_basic_data.dart';
38 part 'no_such_method_resolver.dart'; 38 part 'no_such_method_resolver.dart';
39 part 'types.dart'; 39 part 'types.dart';
40 40
41 /// Element builder used for creating elements and types corresponding to Kernel 41 /// Element builder used for creating elements and types corresponding to Kernel
42 /// IR nodes. 42 /// IR nodes.
43 class KernelToElementMap extends KernelElementAdapterMixin { 43 class KernelToElementMap extends IrToElementMapMixin {
Siggi Cherem (dart-lang) 2017/05/05 18:04:21 so far we use "Kernel" to refer to the Ir everywhe
Johnni Winther 2017/05/08 08:39:00 I like that. Adding Impl also indicates that it sh
44 final Environment _environment; 44 final Environment _environment;
45 CommonElements _commonElements; 45 CommonElements _commonElements;
46 native.BehaviorBuilder _nativeBehaviorBuilder; 46 native.BehaviorBuilder _nativeBehaviorBuilder;
47 final DiagnosticReporter reporter; 47 final DiagnosticReporter reporter;
48 ElementEnvironment _elementEnvironment; 48 ElementEnvironment _elementEnvironment;
49 DartTypeConverter _typeConverter; 49 DartTypeConverter _typeConverter;
50 KernelConstantEnvironment _constantEnvironment; 50 KernelConstantEnvironment _constantEnvironment;
51 _KernelDartTypes _types; 51 _KernelDartTypes _types;
52 52
53 /// Library environment. Used for fast lookup. 53 /// Library environment. Used for fast lookup.
(...skipping 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 } 1302 }
1303 1303
1304 InterfaceType getMixinTypeForClass(KClass cls) { 1304 InterfaceType getMixinTypeForClass(KClass cls) {
1305 _KClassEnv env = elementMap._classEnvs[cls.classIndex]; 1305 _KClassEnv env = elementMap._classEnvs[cls.classIndex];
1306 ir.Supertype mixedInType = env.cls.mixedInType; 1306 ir.Supertype mixedInType = env.cls.mixedInType;
1307 if (mixedInType == null) return null; 1307 if (mixedInType == null) return null;
1308 return elementMap.createInterfaceType( 1308 return elementMap.createInterfaceType(
1309 mixedInType.classNode, mixedInType.typeArguments); 1309 mixedInType.classNode, mixedInType.typeArguments);
1310 } 1310 }
1311 } 1311 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/element_adapter.dart ('k') | pkg/compiler/lib/src/kernel/ir_element_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698