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

Unified Diff: pkg/compiler/lib/src/js_model/js_strategy.dart

Issue 2981423003: Move .getLocalFunction from KernelToElementMap to KernelToLocalsMap (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/js_model/elements.dart ('k') | pkg/compiler/lib/src/js_model/locals.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_model/js_strategy.dart
diff --git a/pkg/compiler/lib/src/js_model/js_strategy.dart b/pkg/compiler/lib/src/js_model/js_strategy.dart
index 39e66bf21ddc59e00d44273969ec1f209e2ff7d6..227c2856343475dc92077642cb08ec4091dacdf1 100644
--- a/pkg/compiler/lib/src/js_model/js_strategy.dart
+++ b/pkg/compiler/lib/src/js_model/js_strategy.dart
@@ -383,12 +383,10 @@ class JsClosedWorld extends ClosedWorldBase with KernelClosedWorldMixin {
classSets);
@override
- void registerClosureClass(ClassEntity cls, bool fromInstanceMember) {
+ void registerClosureClass(ClassEntity cls) {
// Tell the hierarchy that this is the super class. then we can use
// .getSupertypes(class)
- ClassEntity superclass = fromInstanceMember
- ? commonElements.boundClosureClass
- : commonElements.closureClass;
+ ClassEntity superclass = commonElements.closureClass;
ClassHierarchyNode parentNode = getClassHierarchyNode(superclass);
ClassHierarchyNode node = new ClassHierarchyNode(
parentNode, cls, getHierarchyDepth(superclass) + 1);
« no previous file with comments | « pkg/compiler/lib/src/js_model/elements.dart ('k') | pkg/compiler/lib/src/js_model/locals.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698