| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 import "package:compiler/src/js/js.dart"; | 6 import "package:compiler/src/js/js.dart"; |
| 7 import "package:compiler/src/js/rewrite_async.dart"; | 7 import "package:compiler/src/js/rewrite_async.dart"; |
| 8 | 8 |
| 9 import "backend_dart/dart_printer_test.dart" show PrintDiagnosticListener; | 9 import "backend_dart/dart_printer_test.dart" show PrintDiagnosticListener; |
| 10 | 10 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 __outer1: | 94 __outer1: |
| 95 switch (__goto) { | 95 switch (__goto) { |
| 96 case 0: | 96 case 0: |
| 97 // Function start | 97 // Function start |
| 98 __handler = 3; | 98 __handler = 3; |
| 99 case 7: | 99 case 7: |
| 100 // continue __outer | 100 // continue __outer |
| 101 case 8: | 101 case 8: |
| 102 // while condition | 102 // while condition |
| 103 __handler = 10; | 103 __handler = 10; |
| 104 inner: { | 104 inner: |
| 105 while (true) { | 105 while (true) { |
| 106 __next = [6]; | 106 __next = [6]; |
| 107 // goto finally | 107 // goto finally |
| 108 __goto = 11; | 108 __goto = 11; |
| 109 break __outer1; | 109 break __outer1; |
| 110 break; | 110 break; |
| 111 } | 111 } |
| 112 } | |
| 113 while (true) { | 112 while (true) { |
| 114 __next = [1, 4]; | 113 __next = [1, 4]; |
| 115 // goto finally | 114 // goto finally |
| 116 __goto = 11; | 115 __goto = 11; |
| 117 break __outer1; | 116 break __outer1; |
| 118 } | 117 } |
| 119 __goto = 13; | 118 __goto = 13; |
| 120 return thenHelper(foo(), __body, __completer); | 119 return thenHelper(foo(), __body, __completer); |
| 121 case 13: | 120 case 13: |
| 122 // returning from await. | 121 // returning from await. |
| (...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 return thenHelper(foobar(x), __body, __completer); | 976 return thenHelper(foobar(x), __body, __completer); |
| 978 case 17: | 977 case 17: |
| 979 // returning from await. | 978 // returning from await. |
| 980 __temp1(__result); | 979 __temp1(__result); |
| 981 __returnValue = y; | 980 __returnValue = y; |
| 982 // goto return | 981 // goto return |
| 983 __goto = 1; | 982 __goto = 1; |
| 984 break; | 983 break; |
| 985 case 14: | 984 case 14: |
| 986 // case | 985 // case |
| 987 if (a) { | 986 if (a) |
| 988 throw new Error(); | 987 throw new Error(); |
| 989 } else { | 988 else { |
| 990 // goto while condition | 989 // goto while condition |
| 991 __goto = 3; | 990 __goto = 3; |
| 992 break; | 991 break; |
| 993 } | 992 } |
| 994 case 15: | 993 case 15: |
| 995 // default | 994 // default |
| 996 // goto break lab | 995 // goto break lab |
| 997 __goto = 6; | 996 __goto = 6; |
| 998 break; | 997 break; |
| 999 case 9: | 998 case 9: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1010 // return | 1009 // return |
| 1011 return thenHelper(__returnValue, 0, __completer, null); | 1010 return thenHelper(__returnValue, 0, __completer, null); |
| 1012 case 2: | 1011 case 2: |
| 1013 // rethrow | 1012 // rethrow |
| 1014 return thenHelper(__currentError, 1, __completer); | 1013 return thenHelper(__currentError, 1, __completer); |
| 1015 } | 1014 } |
| 1016 } | 1015 } |
| 1017 return thenHelper(null, __body, __completer, null); | 1016 return thenHelper(null, __body, __completer, null); |
| 1018 }"""); | 1017 }"""); |
| 1019 } | 1018 } |
| OLD | NEW |