| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 'common/names.dart' show Identifiers; | 5 import 'common/names.dart' show Identifiers; |
| 6 import 'common/resolution.dart' show ParsingContext, Resolution; | 6 import 'common/resolution.dart' show ParsingContext, Resolution; |
| 7 import 'common/tasks.dart' show CompilerTask, Measurer; | 7 import 'common/tasks.dart' show CompilerTask, Measurer; |
| 8 import 'common.dart'; | 8 import 'common.dart'; |
| 9 import 'compiler.dart' show Compiler; | 9 import 'compiler.dart' show Compiler; |
| 10 import 'constants/expressions.dart'; | 10 import 'constants/expressions.dart'; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // one for local functions. | 46 // one for local functions. |
| 47 ScopeInfo getScopeInfo(covariant Entity member); | 47 ScopeInfo getScopeInfo(covariant Entity member); |
| 48 | 48 |
| 49 /// This returns the same information as ScopeInfo, but can be called in | 49 /// This returns the same information as ScopeInfo, but can be called in |
| 50 /// situations when you are sure you are dealing with a closure specifically. | 50 /// situations when you are sure you are dealing with a closure specifically. |
| 51 ClosureRepresentationInfo getClosureRepresentationInfo( | 51 ClosureRepresentationInfo getClosureRepresentationInfo( |
| 52 covariant Entity member); | 52 covariant Entity member); |
| 53 | 53 |
| 54 /// Look up information about a loop, in case any variables it declares need | 54 /// Look up information about a loop, in case any variables it declares need |
| 55 /// to be boxed/snapshotted. | 55 /// to be boxed/snapshotted. |
| 56 LoopClosureScope getLoopClosureScope(covariant T loopNode); | 56 LoopClosureScope getLoopClosureScope(T loopNode); |
| 57 | 57 |
| 58 /// Accessor to the information about closures that the SSA builder will use. | 58 /// Accessor to the information about closures that the SSA builder will use. |
| 59 ClosureScope getClosureScope(MemberEntity entity); | 59 ClosureScope getClosureScope(MemberEntity entity); |
| 60 } | 60 } |
| 61 | 61 |
| 62 /// Class that represents one level of scoping information, whether this scope | 62 /// Class that represents one level of scoping information, whether this scope |
| 63 /// is a closure or not. This is specifically used to store information | 63 /// is a closure or not. This is specifically used to store information |
| 64 /// about the usage of variables in try or sync blocks, because they need to be | 64 /// about the usage of variables in try or sync blocks, because they need to be |
| 65 /// boxed. | 65 /// boxed. |
| 66 /// | 66 /// |
| (...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1540 /// | 1540 /// |
| 1541 /// Move the below classes to a JS model eventually. | 1541 /// Move the below classes to a JS model eventually. |
| 1542 /// | 1542 /// |
| 1543 abstract class JSEntity implements MemberEntity { | 1543 abstract class JSEntity implements MemberEntity { |
| 1544 Local get declaredEntity; | 1544 Local get declaredEntity; |
| 1545 } | 1545 } |
| 1546 | 1546 |
| 1547 abstract class PrivatelyNamedJSEntity implements JSEntity { | 1547 abstract class PrivatelyNamedJSEntity implements JSEntity { |
| 1548 Entity get rootOfScope; | 1548 Entity get rootOfScope; |
| 1549 } | 1549 } |
| OLD | NEW |