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

Issue 12276002: Add a small JS parser to ease the building of ASTs (Closed)

Created:
7 years, 10 months ago by erikcorry
Modified:
7 years, 10 months ago
Reviewers:
ahe, kasperl, sra1
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add a small JS parser to ease the building of ASTs BUG= Committed: https://code.google.com/p/dart/source/detail?r=18806

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Add jsvar for declaring variables. #

Patch Set 4 : Ready for review, please take a look. #

Patch Set 5 : Streamline support for var #

Total comments: 23

Patch Set 6 : Add test. Fix unary operators. Add empty object literals #

Total comments: 1

Patch Set 7 : Rebase #

Patch Set 8 : Remove def() method, analyzer doesn't like it. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+645 lines, -291 lines) Patch
M sdk/lib/_internal/compiler/implementation/js/nodes.dart View 1 2 3 4 5 6 7 3 chunks +389 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 1 2 3 4 5 6 7 13 chunks +111 lines, -274 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart View 1 2 3 4 chunks +6 lines, -11 lines 0 comments Download
A tests/compiler/dart2js/js_parser_test.dart View 1 2 3 4 5 1 chunk +137 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
ahe
I'm not sure about adding another parser. I would like to make sure that everyone ...
7 years, 10 months ago (2013-02-19 10:05:24 UTC) #1
erikcorry
https://codereview.chromium.org/12276002/diff/9001/sdk/lib/_internal/compiler/implementation/js/nodes.dart File sdk/lib/_internal/compiler/implementation/js/nodes.dart (right): https://codereview.chromium.org/12276002/diff/9001/sdk/lib/_internal/compiler/implementation/js/nodes.dart#newcode932 sdk/lib/_internal/compiler/implementation/js/nodes.dart:932: class JsBuilder { On 2013/02/19 10:05:25, ahe wrote: > ...
7 years, 10 months ago (2013-02-19 10:38:29 UTC) #2
ahe
https://codereview.chromium.org/12276002/diff/9001/sdk/lib/_internal/compiler/implementation/js/nodes.dart File sdk/lib/_internal/compiler/implementation/js/nodes.dart (right): https://codereview.chromium.org/12276002/diff/9001/sdk/lib/_internal/compiler/implementation/js/nodes.dart#newcode932 sdk/lib/_internal/compiler/implementation/js/nodes.dart:932: class JsBuilder { On 2013/02/19 10:38:29, erikcorry wrote: > ...
7 years, 10 months ago (2013-02-19 10:47:34 UTC) #3
sra1
https://codereview.chromium.org/12276002/diff/9001/sdk/lib/_internal/compiler/implementation/js/nodes.dart File sdk/lib/_internal/compiler/implementation/js/nodes.dart (right): https://codereview.chromium.org/12276002/diff/9001/sdk/lib/_internal/compiler/implementation/js/nodes.dart#newcode1076 sdk/lib/_internal/compiler/implementation/js/nodes.dart:1076: /// * string, boolean, null and numeric literals (no ...
7 years, 10 months ago (2013-02-20 01:50:24 UTC) #4
erikcorry
New version PTAL. Now supports new and typeof. https://codereview.chromium.org/12276002/diff/9001/sdk/lib/_internal/compiler/implementation/js/nodes.dart File sdk/lib/_internal/compiler/implementation/js/nodes.dart (right): https://codereview.chromium.org/12276002/diff/9001/sdk/lib/_internal/compiler/implementation/js/nodes.dart#newcode1188 sdk/lib/_internal/compiler/implementation/js/nodes.dart:1188: (cat ...
7 years, 10 months ago (2013-02-20 14:39:09 UTC) #5
ahe
On Wed, Feb 20, 2013 at 3:33 PM, Erik Corry <erikcorry@google.com> wrote: > Can we ...
7 years, 10 months ago (2013-02-20 14:46:16 UTC) #6
ahe
LGTM! https://codereview.chromium.org/12276002/diff/20001/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/12276002/diff/20001/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode342 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:342: js["var fields = desc[''], supr"], So much better!
7 years, 10 months ago (2013-02-20 15:01:44 UTC) #7
sra1
lgtm
7 years, 10 months ago (2013-02-20 21:22:58 UTC) #8
erikcorry
7 years, 10 months ago (2013-02-21 08:45:25 UTC) #9
Message was sent while issue was closed.
Committed patchset #8 manually as r18806 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698