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

Unified Diff: pkg/kernel/testcases/closures/blocks.dart.expect

Issue 3000333002: Fix several bugs in closure conversion. (Closed)
Patch Set: Comments. Created 3 years, 4 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/testcases/closures/blocks.dart ('k') | pkg/kernel/testcases/closures/for_in_closure.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/testcases/closures/blocks.dart.expect
diff --git a/pkg/kernel/testcases/closures/blocks.dart.expect b/pkg/kernel/testcases/closures/blocks.dart.expect
new file mode 100644
index 0000000000000000000000000000000000000000..669a5721e52c14bd948f27dce1765b826cbc3118
--- /dev/null
+++ b/pkg/kernel/testcases/closures/blocks.dart.expect
@@ -0,0 +1,52 @@
+library;
+import self as self;
+import "dart:core" as core;
+
+typedef fn = (dynamic) → dynamic;
+typedef fn2 = (dynamic, dynamic) → dynamic;
+class X extends core::Object {
+ default constructor •() → void
+ : super core::Object::•()
+ ;
+}
+static method startIsolateMock(dynamic parentPort, dynamic entryPoint, dynamic args, dynamic message, dynamic isSpawnUri, dynamic controlPort, core::List<dynamic> capabilities) → void {
+ final Vector #context = MakeVector(7);
+ #context[2] = entryPoint;
+ #context[3] = args;
+ #context[4] = message;
+ #context[5] = isSpawnUri;
+ if(!controlPort.==(null)) {
+ controlPort.handler = MakeClosure<(dynamic) → dynamic>(self::closure#startIsolateMock#function, #context);
+ }
+ if(!parentPort.==(null)) {
+ dynamic readyMessage = core::List::_internal<dynamic>(2);
+ readyMessage.[]=(0, controlPort.sendPort);
+ readyMessage.[]=(1, capabilities);
+ capabilities = null;
+ parentPort.send(readyMessage);
+ }
+ assert(capabilities.==(null));
+ #context[6] = "abc";
+ (#context[6]).handler = MakeClosure<(dynamic) → dynamic>(self::closure#startIsolateMock#function#1, #context);
+ (#context[6]).sendPort.send(null);
+}
+static method main() → dynamic {}
+static method closure#startIsolateMock#function(Vector #contextParameter, dynamic _) → dynamic {}
+static method closure#startIsolateMock#function#1(Vector #contextParameter, dynamic _) → dynamic {
+ (#contextParameter[6]).close();
+ if(#contextParameter[5]) {
+ if((#contextParameter[2]) is (dynamic, dynamic) → dynamic) {
+ (#contextParameter[2]).call(#contextParameter[3], #contextParameter[4]);
+ }
+ else
+ if((#contextParameter[2]) is (dynamic) → dynamic) {
+ (#contextParameter[2]).call(#contextParameter[3]);
+ }
+ else {
+ (#contextParameter[2]).call();
+ }
+ }
+ else {
+ (#contextParameter[2]).call(#contextParameter[4]);
+ }
+}
« no previous file with comments | « pkg/kernel/testcases/closures/blocks.dart ('k') | pkg/kernel/testcases/closures/for_in_closure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698