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

Unified Diff: pkg/kernel/lib/binary/ast_to_binary.dart

Issue 2778223002: Add primitive to create closures and use it for closure conversion (Closed)
Patch Set: Fix bug: put parameters with no initalizers into contexts correctly Created 3 years, 9 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/kernel/lib/binary/ast_to_binary.dart
diff --git a/pkg/kernel/lib/binary/ast_to_binary.dart b/pkg/kernel/lib/binary/ast_to_binary.dart
index 2c87df570979b7c95ebca030b559d3357531f6bd..42878b904cb33dcacb50257b3475c155cf3f1606 100644
--- a/pkg/kernel/lib/binary/ast_to_binary.dart
+++ b/pkg/kernel/lib/binary/ast_to_binary.dart
@@ -751,6 +751,13 @@ class BinaryPrinter extends Visitor {
writeNode(node.vectorExpression);
}
+ visitClosureCreation(ClosureCreation node) {
+ writeByte(Tag.ClosureCreation);
+ writeStringReference(node.topLevelFunctionName);
+ writeNode(node.contextVector);
+ writeNode(node.functionType);
+ }
+
writeStatementOrEmpty(Statement node) {
if (node == null) {
writeByte(Tag.EmptyStatement);

Powered by Google App Engine
This is Rietveld 408576698