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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_emitter/declarations.dart

Issue 27524003: Generate tear-off closures dynamically. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed unit tests. Created 7 years 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: dart/sdk/lib/_internal/compiler/implementation/js_emitter/declarations.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_emitter/declarations.dart b/dart/sdk/lib/_internal/compiler/implementation/js_emitter/declarations.dart
index fb2cf01a72836cf493329365bbbfdcf9dd330850..8ca7b9b29ffc707ac14b275bbb5ad235174c463e 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js_emitter/declarations.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_emitter/declarations.dart
@@ -8,9 +8,14 @@ part of dart2js.js_emitter;
const DEBUG_FAST_OBJECTS = false;
/**
- * A convenient type alias for some functions that emit keyed values.
+ * Call-back for adding stub [function] for [selector].
*/
-typedef void DefineStubFunction(String invocationName, jsAst.Expression value);
+typedef void AddStubFunction(Selector selector, jsAst.Fun function);
+
+/**
+ * Call-back for adding property with [name] and [value].
+ */
+typedef void AddPropertyFunction(String name, jsAst.Expression value);
/**
* [member] is a field (instance, static, or top level).

Powered by Google App Engine
This is Rietveld 408576698