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

Issue 1029583011: [js_ast] adds Identifier that merges VariableDeclaration/Use and Parameter (Closed)

Created:
5 years, 9 months ago by Jennifer Messerly
Modified:
5 years, 9 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

[js_ast] adds Identifier that merges VariableDeclaration/Use and Parameter Also changes Printer to not walk the tree an extra time unless we are minifiying. The tree structure appears to be helping VarCollector, by encoding some information into the static AST structure. (although some aspects were unused, such as function names). It's easy enough to encode this behavior in VarCollector itself. Having a unified Identifier benefits our tree transform, since we don't need to worry about generating three different types of things under largely identical circumstances. I'm planning to build on this later, but this version is purely a refactor. R=vsm@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/2ce12f647a20e8125bf1617a331f25f65a58d16d

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -206 lines) Patch
M lib/src/codegen/js_codegen.dart View 16 chunks +19 lines, -19 lines 0 comments Download
M lib/src/js/builder.dart View 14 chunks +22 lines, -22 lines 0 comments Download
M lib/src/js/nodes.dart View 17 chunks +36 lines, -69 lines 0 comments Download
M lib/src/js/printer.dart View 14 chunks +37 lines, -65 lines 1 comment Download
M lib/src/js/template.dart View 7 chunks +17 lines, -31 lines 1 comment Download

Messages

Total messages: 4 (1 generated)
Jennifer Messerly
https://codereview.chromium.org/1029583011/diff/1/lib/src/js/printer.dart File lib/src/js/printer.dart (left): https://codereview.chromium.org/1029583011/diff/1/lib/src/js/printer.dart#oldcode1138 lib/src/js/printer.dart:1138: class OrderedSet<T> { presumably this predates LinkedHashSet https://codereview.chromium.org/1029583011/diff/1/lib/src/js/template.dart File ...
5 years, 9 months ago (2015-03-25 21:29:17 UTC) #2
vsm
lgtm
5 years, 9 months ago (2015-03-25 22:46:01 UTC) #3
Jennifer Messerly
5 years, 9 months ago (2015-03-25 23:01:06 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
2ce12f647a20e8125bf1617a331f25f65a58d16d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698