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

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

Issue 2916353002: Support locals in compile_from_dill_test. (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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698