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 "dart:_internal"; | 5 import "dart:_internal"; |
6 | 6 |
7 // We need to pass the value as first argument and leave the second and third | 7 // We need to pass the value as first argument and leave the second and third |
8 // arguments empty (used for error handling). | 8 // arguments empty (used for error handling). |
9 // See vm/ast_transformer.cc for usage. | 9 // See vm/ast_transformer.cc for usage. |
10 Function _asyncThenWrapperHelper(continuation) { | 10 Function _asyncThenWrapperHelper(continuation) { |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
183 // suspended at an await. | 183 // suspended at an await. |
184 if (isSuspendedAtYield) { | 184 if (isSuspendedAtYield) { |
185 scheduleGenerator(); | 185 scheduleGenerator(); |
186 } | 186 } |
187 } | 187 } |
188 return cancellationCompleter.future; | 188 return cancellationCompleter.future; |
189 } | 189 } |
190 } | 190 } |
191 | 191 |
192 @patch void _rethrow(Object error, StackTrace stackTrace) native "Async_rethrow" ; | 192 @patch void _rethrow(Object error, StackTrace stackTrace) native "Async_rethrow" ; |
193 | |
194 | |
195 /// Returns a | |
siva
2017/01/26 19:26:22
typo
Cutch
2017/01/31 23:45:29
Done.
| |
196 /// Returns a [StackTrace] object containing the synchronous prefix for this | |
197 /// asynchronous method. | |
198 Object _asyncStackTraceHelper() native "StackTrace_forAsyncMethod"; | |
rmacnak
2017/01/26 18:05:57
StackTrace _asyncStackTraceHelper()
Cutch
2017/01/31 23:45:29
Done.
| |
199 | |
200 void _clearAsyncThreadStackTrace() | |
201 native "StackTrace_clearAsyncThreadStackTrace"; | |
202 | |
203 void _setAsyncThreadStackTrace(StackTrace stackTrace) native | |
204 "StackTrace_setAsyncThreadStackTrace"; | |
OLD | NEW |