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

Issue 19571002: Fix a few issues related to mirrors: (Closed)

Created:
7 years, 5 months ago by ahe
Modified:
7 years, 5 months ago
Reviewers:
ngeoffray, sra1
CC:
reviews_dartlang.org, ahe
Visibility:
Public.

Description

Fix a few issues related to mirrors: * Bad assertion in emitter. * Don't assume we generate checked setters for statics. * Unmangle field names using getter prefix (which makes "everything" work in minified mode). BUG=http://dartbug.com/6490 R=ngeoffray@google.com Committed: https://code.google.com/p/dart/source/detail?r=25092

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -16 lines) Patch
M dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 3 chunks +4 lines, -2 lines 1 comment Download
M dart/sdk/lib/_internal/lib/js_mirrors.dart View 2 chunks +9 lines, -5 lines 0 comments Download
M dart/tests/lib/lib.status View 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ahe
7 years, 5 months ago (2013-07-17 12:14:17 UTC) #1
ngeoffray
LGTM
7 years, 5 months ago (2013-07-17 12:21:46 UTC) #2
ahe
Committed patchset #1 manually as r25092 (presubmit successful).
7 years, 5 months ago (2013-07-17 12:40:38 UTC) #3
sra1
7 years, 5 months ago (2013-07-18 20:33:49 UTC) #4
Message was sent while issue was closed.
Hi Peter,

Can you explain why a field of a class is not an instance member?

If it is a static field, then this code makes no sense, or are you trying to
re-use instance field code to generate static field getters?

https://codereview.chromium.org/19571002/diff/1/dart/sdk/lib/_internal/compil...
File dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
(right):

https://codereview.chromium.org/19571002/diff/1/dart/sdk/lib/_internal/compil...
dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:1737:
assert(!member.isInstanceMember() || getterCode != 0);
I'm trying to understand a bug in this area. (issue 11894)
Why would a class field not be an instance member?

Powered by Google App Engine
This is Rietveld 408576698