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

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

Issue 2778223002: Add primitive to create closures and use it for closure conversion (Closed)
Patch Set: Follow common pattern for AST nodes with References in ClosureCreation 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
« no previous file with comments | « pkg/kernel/lib/ast.dart ('k') | pkg/kernel/lib/binary/ast_to_binary.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/binary/ast_from_binary.dart
diff --git a/pkg/kernel/lib/binary/ast_from_binary.dart b/pkg/kernel/lib/binary/ast_from_binary.dart
index 64563eb27bd79e1f7c6b6f89ac18e8fa7c6f0ca0..762e8ab563837c60b4d61675501852e49a136ba8 100644
--- a/pkg/kernel/lib/binary/ast_from_binary.dart
+++ b/pkg/kernel/lib/binary/ast_from_binary.dart
@@ -828,6 +828,12 @@ class BinaryBuilder {
case Tag.VectorCopy:
var vectorExpression = readExpression();
return new VectorCopy(vectorExpression);
+ case Tag.ClosureCreation:
+ var topLevelFunctionReference = readMemberReference();
+ var contextVector = readExpression();
+ var functionType = readDartType();
+ return new ClosureCreation.byReference(
+ topLevelFunctionReference, contextVector, functionType);
default:
throw fail('Invalid expression tag: $tag');
}
« no previous file with comments | « pkg/kernel/lib/ast.dart ('k') | pkg/kernel/lib/binary/ast_to_binary.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698