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

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

Issue 2991903002: Add Closure call method to created closure class (Closed)
Patch Set: . 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
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 99dc8e0793eb5c8d6ec29f5fd037c7f66d53c014..6639b457d994f4e37f7bf239ebbf0cf7719651bd 100644
--- a/pkg/compiler/lib/src/js_model/js_strategy.dart
+++ b/pkg/compiler/lib/src/js_model/js_strategy.dart
@@ -386,12 +386,18 @@ class JsClosedWorld extends ClosedWorldBase with KernelClosedWorldMixin {
/// Construct a closure class and set up the necessary class inference
/// hierarchy.
- KernelClosureClass buildClosureClass(String name, JLibrary enclosingLibrary,
- KernelScopeInfo info, ir.Location location, KernelToLocalsMap localsMap) {
+ KernelClosureClass buildClosureClass(
+ MemberEntity member,
+ ir.FunctionNode originalClosureCall,
sra1 2017/07/28 22:09:40 originalCallFunctionNode?
Emily Fortuna 2017/07/28 23:17:08 Done.
+ JLibrary enclosingLibrary,
+ KernelScopeInfo info,
+ ir.Location location,
+ KernelToLocalsMap localsMap) {
ClassEntity superclass = commonElements.closureClass;
KernelClosureClass cls = elementMap.constructClosureClass(
- name,
+ member,
+ originalClosureCall,
enclosingLibrary,
info,
location,

Powered by Google App Engine
This is Rietveld 408576698