OLD | NEW |
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:js_runtime/shared/embedded_names.dart'; | 5 import 'package:js_runtime/shared/embedded_names.dart'; |
6 import 'package:kernel/ast.dart' as ir; | 6 import 'package:kernel/ast.dart' as ir; |
7 | 7 |
8 import '../closure.dart'; | 8 import '../closure.dart'; |
9 import '../common.dart'; | 9 import '../common.dart'; |
10 import '../compiler.dart'; | 10 import '../compiler.dart'; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 target = kernel.fields[originTarget]; | 125 target = kernel.fields[originTarget]; |
126 } | 126 } |
127 assert(target != null); | 127 assert(target != null); |
128 return target; | 128 return target; |
129 } | 129 } |
130 | 130 |
131 @override | 131 @override |
132 CommonElements get commonElements => _compiler.resolution.commonElements; | 132 CommonElements get commonElements => _compiler.resolution.commonElements; |
133 | 133 |
134 @override | 134 @override |
135 ElementEnvironment get elementEnvironment => _compiler.elementEnvironment; | 135 ElementEnvironment get elementEnvironment => |
| 136 _compiler.resolution.elementEnvironment; |
136 | 137 |
137 MemberElement get currentMember => _resolvedAst.element; | 138 MemberElement get currentMember => _resolvedAst.element; |
138 | 139 |
139 /// Push the existing resolved AST on the stack and shift the current resolved | 140 /// Push the existing resolved AST on the stack and shift the current resolved |
140 /// AST to the AST that this kernel node points to. | 141 /// AST to the AST that this kernel node points to. |
141 void enterInlinedMember(MemberElement member) { | 142 void enterInlinedMember(MemberElement member) { |
142 _resolvedAstStack.add(_resolvedAst); | 143 _resolvedAstStack.add(_resolvedAst); |
143 _resolvedAst = member.resolvedAst; | 144 _resolvedAst = member.resolvedAst; |
144 } | 145 } |
145 | 146 |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 TypeMask selectorTypeOf(Selector selector, TypeMask mask) { | 636 TypeMask selectorTypeOf(Selector selector, TypeMask mask) { |
636 return TypeMaskFactory.inferredTypeForSelector( | 637 return TypeMaskFactory.inferredTypeForSelector( |
637 selector, mask, _globalInferenceResults); | 638 selector, mask, _globalInferenceResults); |
638 } | 639 } |
639 | 640 |
640 TypeMask typeFromNativeBehavior( | 641 TypeMask typeFromNativeBehavior( |
641 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld) { | 642 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld) { |
642 return TypeMaskFactory.fromNativeBehavior(nativeBehavior, closedWorld); | 643 return TypeMaskFactory.fromNativeBehavior(nativeBehavior, closedWorld); |
643 } | 644 } |
644 } | 645 } |
OLD | NEW |