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

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
« 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 a3da9eddb215c08f0ed83923fef908be021970ad..7dc56fbbe8d3cbdd2c197752fb81dbc114885f3f 100644
--- a/pkg/compiler/lib/src/js_model/js_strategy.dart
+++ b/pkg/compiler/lib/src/js_model/js_strategy.dart
@@ -387,12 +387,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 originalClosureFunctionNode,
+ JLibrary enclosingLibrary,
+ KernelScopeInfo info,
+ ir.Location location,
+ KernelToLocalsMap localsMap) {
ClassEntity superclass = commonElements.closureClass;
KernelClosureClass cls = elementMap.constructClosureClass(
- name,
+ member,
+ originalClosureFunctionNode,
enclosingLibrary,
info,
location,
« 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