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

Issue 804423003: dart2js: Change typedef encoding. (Closed)

Created:
6 years ago by floitsch
Modified:
6 years ago
Reviewers:
karlklose
CC:
reviews_dartlang.org, zarah
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

dart2js: Change typedef encoding. Currently typedefs have a descriptor field that looks like they don't have any super-class: _Equality: { "^": ":58" } When we call finishClass we thus assume that it's the Dart Object class. While this didn't hurt (as far as I could tell), it feels wrong. Since typedefs are only emitted when reflection is enabled I'm ok with adding more code to the output (not that it's that much). The output now looks as follows: _Equality: { "^": "Object;", $typedefType: 58, $$isTypedef: true }, At the same time I removed the shared encoding class. It turns out that it doesn't give a lot of flexibility, and by using the shared embedded constant strings, the linkage is not too bad. R=karlklose@google.com Committed: https://code.google.com/p/dart/source/detail?r=42437

Patch Set 1 #

Patch Set 2 : Add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -41 lines) Patch
M pkg/compiler/lib/src/js/builder.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/js_emitter.dart View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart View 1 chunk +12 lines, -6 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/js_mirrors.dart View 1 3 chunks +17 lines, -6 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/shared/embedded_names.dart View 1 chunk +2 lines, -0 lines 0 comments Download
D sdk/lib/_internal/compiler/js_lib/shared/runtime_data.dart View 1 chunk +0 lines, -22 lines 0 comments Download
M sdk/lib/_internal/libraries.dart View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
floitsch
What is still missing: asserts that the added fields can't clash with other properties. I ...
6 years ago (2014-12-17 00:23:49 UTC) #2
karlklose
LGTM with a comment. I still think that the version with the shared encoding/decoding was ...
6 years ago (2014-12-17 09:33:15 UTC) #3
floitsch
6 years ago (2014-12-17 15:18:07 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as 42437 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698