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

Issue 1243503007: fixes #221, initial sync*, async, async* implementation (Closed)

Created:
5 years, 5 months ago by Jennifer Messerly
Modified:
5 years, 4 months ago
Reviewers:
vsm
CC:
dev-compiler+reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

fixes #221, initial sync*, async, async* implementation also fixes #270 R=vsm@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/5e0e7d27c36a8d7d6858ddf3b7a66892de6539ae

Patch Set 1 : #

Patch Set 2 : #

Total comments: 16

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6766 lines, -15692 lines) Patch
M .gitignore View 1 chunk +1 line, -0 lines 0 comments Download
M karma.conf.js View 1 chunk +6 lines, -0 lines 0 comments Download
M lib/runtime/_classes.js View 1 chunk +1 line, -1 line 0 comments Download
A lib/runtime/_generators.js View 1 2 1 chunk +234 lines, -0 lines 0 comments Download
M lib/runtime/_operations.js View 2 chunks +7 lines, -4 lines 0 comments Download
M lib/runtime/dart/_isolate_helper.js View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M lib/runtime/dart/_js_helper.js View 1 2 2 chunks +52 lines, -0 lines 0 comments Download
M lib/runtime/dart/async.js View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M lib/runtime/dart_library.js View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M lib/runtime/dart_runtime.js View 2 chunks +11 lines, -3 lines 0 comments Download
M lib/src/checker/checker.dart View 3 chunks +7 lines, -64 lines 0 comments Download
M lib/src/checker/rules.dart View 1 chunk +53 lines, -0 lines 0 comments Download
M lib/src/codegen/ast_builder.dart View 2 chunks +35 lines, -0 lines 0 comments Download
M lib/src/codegen/js_codegen.dart View 1 2 3 7 chunks +161 lines, -14 lines 0 comments Download
M lib/src/codegen/js_metalet.dart View 5 chunks +40 lines, -6 lines 0 comments Download
M lib/src/info.dart View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M lib/src/js/nodes.dart View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M lib/src/js/printer.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M lib/src/js/template.dart View 1 chunk +2 lines, -1 line 0 comments Download
D test/browser/dom.dart View 1 chunk +0 lines, -255 lines 0 comments Download
D test/browser/js_test.dart View 1 chunk +0 lines, -705 lines 0 comments Download
D test/browser/js_test.html View 1 chunk +0 lines, -191 lines 0 comments Download
A test/browser/language_tests.js View 1 chunk +68 lines, -0 lines 0 comments Download
D test/browser/minitest.dart View 1 chunk +0 lines, -79 lines 0 comments Download
D test/browser/runtime_test.html View 1 chunk +0 lines, -44 lines 0 comments Download
A test/codegen/async_helper.dart View 1 chunk +94 lines, -0 lines 0 comments Download
A test/codegen/expect/async_helper.js View 1 chunk +58 lines, -0 lines 0 comments Download
A test/codegen/expect/async_helper.txt View 1 chunk +2 lines, -0 lines 0 comments Download
A test/codegen/expect/async_helper/async_helper.js View 1 chunk +58 lines, -0 lines 0 comments Download
A + test/codegen/expect/dom/dom.js View 1 chunk +1 line, -1 line 0 comments Download
A + test/codegen/expect/expect/expect.js View 1 chunk +1 line, -1 line 0 comments Download
A test/codegen/expect/js_test.txt View 3 1 chunk +685 lines, -0 lines 0 comments Download
M test/codegen/expect/sunflower/circle.js View 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/sunflower/dom.js View 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/sunflower/painter.js View 1 chunk +3 lines, -3 lines 0 comments Download
M test/codegen/expect/sunflower/sunflower.html View 3 1 chunk +28 lines, -28 lines 0 comments Download
M test/codegen/expect/sunflower/sunflower.js View 1 chunk +4 lines, -4 lines 0 comments Download
M test/codegen/expect/syncstar_syntax.js View 2 chunks +27 lines, -18 lines 0 comments Download
M test/codegen/expect/syncstar_syntax.txt View 1 chunk +7 lines, -4 lines 0 comments Download
D test/codegen/expect/syncstar_yield_test.js View 1 chunk +0 lines, -59 lines 0 comments Download
D test/codegen/expect/syncstar_yield_test.txt View 1 chunk +0 lines, -5 lines 0 comments Download
D test/codegen/expect/syncstar_yieldstar_test.js View 1 chunk +0 lines, -33 lines 0 comments Download
D test/codegen/expect/syncstar_yieldstar_test.txt View 1 chunk +0 lines, -7 lines 0 comments Download
A test/codegen/expect/unittest.js View 1 chunk +137 lines, -0 lines 0 comments Download
A test/codegen/expect/unittest.txt View 1 chunk +17 lines, -0 lines 0 comments Download
A test/codegen/expect/unittest/unittest.js View 1 chunk +137 lines, -0 lines 0 comments Download
A + test/codegen/js_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + test/codegen/js_test.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A test/codegen/language/async_and_or_test.dart View 1 chunk +88 lines, -0 lines 0 comments Download
A test/codegen/language/async_await_catch_regression_test.dart View 1 chunk +26 lines, -0 lines 0 comments Download
A test/codegen/language/async_await_test.dart View 1 chunk +2009 lines, -0 lines 0 comments Download
A test/codegen/language/async_backwards_compatibility_1_test.dart View 1 chunk +18 lines, -0 lines 0 comments Download
A test/codegen/language/async_backwards_compatibility_2_test.dart View 1 chunk +15 lines, -0 lines 0 comments Download
A test/codegen/language/async_break_in_finally_test.dart View 1 chunk +52 lines, -0 lines 0 comments Download
A test/codegen/language/async_continue_label_test.dart View 1 chunk +104 lines, -0 lines 0 comments Download
A test/codegen/language/async_control_structures_test.dart View 1 chunk +97 lines, -0 lines 0 comments Download
A test/codegen/language/async_finally_rethrow_test.dart View 1 chunk +29 lines, -0 lines 0 comments Download
A test/codegen/language/async_or_generator_return_type_stacktrace_test.dart View 1 chunk +35 lines, -0 lines 0 comments Download
A test/codegen/language/async_regression_23058_test.dart View 1 chunk +36 lines, -0 lines 0 comments Download
A test/codegen/language/async_rethrow_test.dart View 1 chunk +44 lines, -0 lines 0 comments Download
A test/codegen/language/async_return_types_test.dart View 1 chunk +55 lines, -0 lines 0 comments Download
A test/codegen/language/async_star_cancel_and_throw_in_finally_test.dart View 1 chunk +42 lines, -0 lines 0 comments Download
A test/codegen/language/async_star_regression_23116_test.dart View 1 chunk +33 lines, -0 lines 0 comments Download
A test/codegen/language/async_star_test.dart View 1 chunk +932 lines, -0 lines 0 comments Download
A test/codegen/language/async_switch_test.dart View 1 chunk +91 lines, -0 lines 0 comments Download
A test/codegen/language/async_test.dart View 1 chunk +105 lines, -0 lines 0 comments Download
A test/codegen/language/async_this_bound_test.dart View 1 chunk +59 lines, -0 lines 0 comments Download
A test/codegen/language/async_throw_in_catch_test.dart View 1 chunk +476 lines, -0 lines 0 comments Download
A test/codegen/language/asyncstar_concat_test.dart View 1 chunk +29 lines, -0 lines 0 comments Download
A test/codegen/language/asyncstar_throw_in_catch_test.dart View 1 chunk +131 lines, -0 lines 0 comments Download
A test/codegen/language/asyncstar_yield_test.dart View 1 chunk +75 lines, -0 lines 0 comments Download
A test/codegen/language/asyncstar_yieldstar_test.dart View 1 chunk +100 lines, -0 lines 0 comments Download
A + test/codegen/language/syncstar_yield_test.dart View 1 chunk +1 line, -1 line 0 comments Download
A + test/codegen/language/syncstar_yieldstar_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/syncstar_syntax.dart View 2 chunks +6 lines, -4 lines 0 comments Download
D test/codegen/syncstar_yield_test.dart View 1 chunk +0 lines, -56 lines 0 comments Download
D test/codegen/syncstar_yieldstar_test.dart View 1 chunk +0 lines, -29 lines 0 comments Download
A + test/codegen/unittest.dart View 3 chunks +23 lines, -17 lines 0 comments Download
M test/codegen_test.dart View 3 chunks +39 lines, -36 lines 0 comments Download
D test/js_test_tools/chai/.bower.json View 1 chunk +0 lines, -37 lines 0 comments Download
D test/js_test_tools/chai/CONTRIBUTING.md View 1 chunk +0 lines, -173 lines 0 comments Download
D test/js_test_tools/chai/History.md View 1 chunk +0 lines, -895 lines 0 comments Download
D test/js_test_tools/chai/README.md View 1 chunk +0 lines, -99 lines 0 comments Download
D test/js_test_tools/chai/ReleaseNotes.md View 1 chunk +0 lines, -482 lines 0 comments Download
D test/js_test_tools/chai/bower.json View 1 chunk +0 lines, -27 lines 0 comments Download
D test/js_test_tools/chai/chai.js View 1 chunk +0 lines, -4782 lines 0 comments Download
D test/js_test_tools/chai/component.json View 1 chunk +0 lines, -49 lines 0 comments Download
D test/js_test_tools/chai/karma.conf.js View 1 chunk +0 lines, -38 lines 0 comments Download
D test/js_test_tools/chai/karma.sauce.js View 1 chunk +0 lines, -51 lines 0 comments Download
D test/js_test_tools/chai/package.json View 1 chunk +0 lines, -42 lines 0 comments Download
D test/js_test_tools/chai/sauce.browsers.js View 1 chunk +0 lines, -138 lines 0 comments Download
D test/js_test_tools/htmltest.js View 1 chunk +0 lines, -43 lines 0 comments Download
D test/js_test_tools/mocha-htmltest.js View 1 chunk +0 lines, -87 lines 0 comments Download
D test/js_test_tools/mocha/.bower.json View 1 chunk +0 lines, -33 lines 0 comments Download
D test/js_test_tools/mocha/History.md View 1 chunk +0 lines, -692 lines 0 comments Download
D test/js_test_tools/mocha/LICENSE View 1 chunk +0 lines, -22 lines 0 comments Download
D test/js_test_tools/mocha/Readme.md View 1 chunk +0 lines, -172 lines 0 comments Download
D test/js_test_tools/mocha/bower.json View 1 chunk +0 lines, -23 lines 0 comments Download
D test/js_test_tools/mocha/media/logo.svg View 1 chunk +0 lines, -8 lines 0 comments Download
D test/js_test_tools/mocha/mocha.css View 1 chunk +0 lines, -270 lines 0 comments Download
D test/js_test_tools/mocha/mocha.js View 1 chunk +0 lines, -5842 lines 0 comments Download
M test/testing.dart View 1 2 1 chunk +12 lines, -2 lines 0 comments Download
M tool/input_sdk/lib/async/stream_impl.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M tool/input_sdk/private/isolate_helper.dart View 1 chunk +3 lines, -1 line 0 comments Download
M tool/input_sdk/private/js_helper.dart View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
M tool/sdk_expected_errors.txt View 1 2 3 3 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
Jennifer Messerly
Hi Vijay, here's initial support for sync*/async/async*, as well as yield/yield*/await/await for. It's passing pretty ...
5 years, 5 months ago (2015-07-25 00:01:41 UTC) #5
Jennifer Messerly
On 2015/07/25 00:01:41, John Messerly wrote: > Hi Vijay, here's initial support for sync*/async/async*, as ...
5 years, 4 months ago (2015-07-27 16:32:44 UTC) #6
vsm
lgtm https://codereview.chromium.org/1243503007/diff/70001/karma.conf.js File karma.conf.js (right): https://codereview.chromium.org/1243503007/diff/70001/karma.conf.js#newcode29 karma.conf.js:29: 'test/codegen/expect/language/*.js', :-) https://codereview.chromium.org/1243503007/diff/70001/lib/runtime/_generators.js File lib/runtime/_generators.js (right): https://codereview.chromium.org/1243503007/diff/70001/lib/runtime/_generators.js#newcode32 lib/runtime/_generators.js:32: ...
5 years, 4 months ago (2015-07-27 21:03:24 UTC) #7
Jennifer Messerly
Good catches! Taking a look at them. Wanted to comment on the pubspec situation: https://codereview.chromium.org/1243503007/diff/70001/pubspec.yaml ...
5 years, 4 months ago (2015-07-27 21:10:57 UTC) #8
Jennifer Messerly
Thanks! Moved SyncItera(ble|tor) to _js_helper and Dart. Otherwise, am planning to land as soon as ...
5 years, 4 months ago (2015-07-27 21:46:35 UTC) #9
vsm
lgtm! https://codereview.chromium.org/1243503007/diff/70001/test/browser/language_tests.js File test/browser/language_tests.js (right): https://codereview.chromium.org/1243503007/diff/70001/test/browser/language_tests.js#newcode29 test/browser/language_tests.js:29: dart_library.import('language/async_await_test').main(); On 2015/07/27 21:46:35, John Messerly wrote: > ...
5 years, 4 months ago (2015-07-28 21:01:54 UTC) #10
Jennifer Messerly
On 2015/07/28 21:01:54, vsm wrote: > lgtm! > > https://codereview.chromium.org/1243503007/diff/70001/test/browser/language_tests.js > File test/browser/language_tests.js (right): > ...
5 years, 4 months ago (2015-07-28 22:24:19 UTC) #11
Jennifer Messerly
On 2015/07/28 22:24:19, John Messerly wrote: > On 2015/07/28 21:01:54, vsm wrote: > > lgtm! ...
5 years, 4 months ago (2015-07-28 22:59:20 UTC) #12
Jennifer Messerly
okay figured it out. Added a copy of the staticType to _AstCloner ... with that, ...
5 years, 4 months ago (2015-07-28 23:49:53 UTC) #13
Jennifer Messerly
5 years, 4 months ago (2015-07-28 23:52:27 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:110001) manually as
5e0e7d27c36a8d7d6858ddf3b7a66892de6539ae (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698