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

Issue 11308156: Generate native class metadata as a JavaScript AST. (Closed)

Created:
8 years, 1 month ago by sra1
Modified:
8 years, 1 month ago
CC:
reviews_dartlang.org, erikcorry
Visibility:
Public.

Description

Generate native class metadata as a JavaScript AST. This allows the metadata to shrink about 15% under --minify. Committed: https://code.google.com/p/dart/source/detail?r=15236

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -27 lines) Patch
M sdk/lib/_internal/compiler/implementation/js/nodes.dart View 2 chunks +9 lines, -0 lines 1 comment Download
M sdk/lib/_internal/compiler/implementation/js_backend/js_backend.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart View 3 chunks +49 lines, -27 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
sra1
8 years, 1 month ago (2012-11-21 23:15:30 UTC) #1
floitsch
LGTM!
8 years, 1 month ago (2012-11-21 23:51:04 UTC) #2
ngeoffray
Nice! https://codereview.chromium.org/11308156/diff/1/sdk/lib/_internal/compiler/implementation/js/nodes.dart File sdk/lib/_internal/compiler/implementation/js/nodes.dart (right): https://codereview.chromium.org/11308156/diff/1/sdk/lib/_internal/compiler/implementation/js/nodes.dart#newcode783 sdk/lib/_internal/compiler/implementation/js/nodes.dart:783: static List<ArrayElement> _convert(List<Expression> expressions) { List<ArrayElement> is kind ...
8 years, 1 month ago (2012-11-22 08:49:47 UTC) #3
karlklose
8 years, 1 month ago (2012-11-22 13:00:08 UTC) #4
I don't think the code works as expected, because you use Strings and
js.Expressions as keys in varDefns.

https://codereview.chromium.org/11308156/diff/1/sdk/lib/_internal/compiler/im...
File sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
(right):

https://codereview.chromium.org/11308156/diff/1/sdk/lib/_internal/compiler/im...
sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart:337:
String existing = tagDefns[tag];
exisiting is a js.Expression.

https://codereview.chromium.org/11308156/diff/1/sdk/lib/_internal/compiler/im...
sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart:342: if
(varDefns.containsKey(existing)) {
I think that this will never be true, since existing is a js.Expression.

Powered by Google App Engine
This is Rietveld 408576698