| OLD | NEW |
| 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 import 'package:kernel/ast.dart' as ir; | 5 import 'package:kernel/ast.dart' as ir; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/names.dart'; | 8 import '../common/names.dart'; |
| 9 import '../constants/constructors.dart'; | 9 import '../constants/constructors.dart'; |
| 10 import '../constants/expressions.dart'; | 10 import '../constants/expressions.dart'; |
| (...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 /// type [mask]. | 935 /// type [mask]. |
| 936 TypeMask selectorTypeOf(Selector selector, TypeMask mask); | 936 TypeMask selectorTypeOf(Selector selector, TypeMask mask); |
| 937 | 937 |
| 938 /// Returns the returned type annotation in the [nativeBehavior]. | 938 /// Returns the returned type annotation in the [nativeBehavior]. |
| 939 TypeMask typeFromNativeBehavior( | 939 TypeMask typeFromNativeBehavior( |
| 940 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld); | 940 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld); |
| 941 } | 941 } |
| 942 | 942 |
| 943 /// Map from kernel IR nodes to local entities. | 943 /// Map from kernel IR nodes to local entities. |
| 944 abstract class KernelToLocalsMap { | 944 abstract class KernelToLocalsMap { |
| 945 /// The member currently being built. |
| 946 MemberEntity get currentMember; |
| 947 |
| 945 // TODO(johnniwinther): Make these return the [KernelToLocalsMap] to use from | 948 // TODO(johnniwinther): Make these return the [KernelToLocalsMap] to use from |
| 946 // now on. | 949 // now on. |
| 947 /// Call to notify that [member] is currently being inlined. | 950 /// Call to notify that [member] is currently being inlined. |
| 948 void enterInlinedMember(MemberEntity member); | 951 void enterInlinedMember(MemberEntity member); |
| 949 | 952 |
| 950 /// Call to notify that [member] is no longer being inlined. | 953 /// Call to notify that [member] is no longer being inlined. |
| 951 void leaveInlinedMember(MemberEntity member); | 954 void leaveInlinedMember(MemberEntity member); |
| 952 | 955 |
| 953 /// Returns the [Local] for [node]. | 956 /// Returns the [Local] for [node]. |
| 954 Local getLocal(ir.VariableDeclaration node); | 957 Local getLocal(ir.VariableDeclaration node); |
| 955 | 958 |
| 956 /// Returns the [JumpTarget] for the branch in [node]. | 959 /// Returns the [JumpTarget] for the branch in [node]. |
| 957 // TODO(johnniwinther): Split this by kind of [node]? | 960 // TODO(johnniwinther): Split this by kind of [node]? |
| 958 JumpTarget getJumpTarget(ir.TreeNode node, {bool isContinueTarget: false}); | 961 JumpTarget getJumpTarget(ir.TreeNode node, {bool isContinueTarget: false}); |
| 959 } | 962 } |
| OLD | NEW |