dart-sdk/pkg
Stephen Adams 6efd3b3654 Refactor output code for generators
sync*/async/async* generators have two parts: an entry, which does
checks and computes the element type of the result, and a body, which
is transformed after lowering to JavaScript.

The split ensures that the code for checks is done at function call
time, rather than e.g. in the moveNext method of a sync* iterator.

A following CL with optimize the split to generate one function when
there are no checks and the type argument is simple enough for textual
substitution.

Change-Id: I5414109ca851f9267871aa113a2e29b16236986d
Reviewed-on: https://dart-review.googlesource.com/54308
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2018-05-09 18:22:07 +00:00
..
analysis_server Improve error message for invalid characters 2018-05-09 09:56:42 +00:00
analysis_server_client Clean up some hints 2018-03-26 17:39:18 +00:00
analyzer Add missing method to FastaParserTestCase 2018-05-09 13:26:23 +00:00
analyzer_cli Enable preview-dart-2 as default for analyzer. 2018-04-26 17:01:12 +00:00
analyzer_plugin Issue 30577. Use AST to find position for the first directive. 2018-05-09 06:00:59 +00:00
async_helper Update language_2/await_test.dart to use async_helper. 2017-12-06 12:05:59 +00:00
compiler Refactor output code for generators 2018-05-09 18:22:07 +00:00
dart_internal Make warning more warning-y. 2018-03-02 02:04:44 +00:00
dart_messages Remove uses of upper-case constants in remaining SDK code. 2018-04-16 16:11:57 +00:00
dev_compiler Remove the unused GenericCovariantInterface bit 2018-05-09 15:04:43 +00:00
expect Clean up documentation of implicit new/const insertions tests. 2018-04-10 14:49:41 +00:00
front_end Remove the unused GenericCovariantInterface bit 2018-05-09 15:04:43 +00:00
js Making license files consistent across all packages 2017-09-28 19:33:08 +00:00
js_ast Remove Dart 2 errors in package:js_ast 2018-03-30 11:21:21 +00:00
kernel Remove the unused GenericCovariantInterface bit 2018-05-09 15:04:43 +00:00
meta Meta CHANGELOG markdown cleanup. 2018-05-03 20:52:40 +00:00
microlytics
sourcemap_testing Add omit-implicit-checks mode to equivalence tests. 2018-05-01 12:41:59 +00:00
status_file Revert "[vm/kernel] Expression execution through Kernel. 2018-05-09 12:41:00 +00:00
telemetry Remove uses of upper-case constants in remaining SDK code. 2018-04-16 16:11:57 +00:00
testing [dart:io] Provide modern Dart-styled constants 2018-05-03 17:00:14 +00:00
vm Remove the unused GenericCovariantInterface bit 2018-05-09 15:04:43 +00:00
.gitignore
BUILD.gn
pkg.status Fix bots after preview-dart2 was switched on by default. 2018-04-26 20:09:56 +00:00