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

Issue 11415114: Do not generate empty native classes. Fixes issue 6872. (Closed)

Created:
8 years, 1 month ago by ngeoffray
Modified:
8 years, 1 month ago
Reviewers:
ahe, floitsch, sra1
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Do not generate empty native classes. Fixes issue 6872. Committed: https://code.google.com/p/dart/source/detail?r=15256

Patch Set 1 : #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -26 lines) Patch
M sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 1 2 3 7 chunks +25 lines, -15 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart View 1 2 3 1 chunk +9 lines, -6 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
ngeoffray
8 years, 1 month ago (2012-11-22 09:52:46 UTC) #1
ahe
I'm unable to reason about this change. Perhaps it would be simpler to never emit ...
8 years, 1 month ago (2012-11-22 12:22:05 UTC) #2
ngeoffray
Thanks Peter. PTAL. Always avoiding the trailing comma like you suggest requires quite some refactoring ...
8 years, 1 month ago (2012-11-22 13:15:18 UTC) #3
sra1
I think this would be cleaner if the various methods returned JS ASTs or lists ...
8 years, 1 month ago (2012-11-22 13:45:21 UTC) #4
ahe
On 2012/11/22 13:45:21, sra1 wrote: > I think this would be cleaner if the various ...
8 years, 1 month ago (2012-11-22 13:46:41 UTC) #5
ngeoffray
On 2012/11/22 13:46:41, ahe wrote: > On 2012/11/22 13:45:21, sra1 wrote: > > I think ...
8 years, 1 month ago (2012-11-22 13:50:51 UTC) #6
ahe
LGTM! https://codereview.chromium.org/11415114/diff/6002/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/11415114/diff/6002/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode239 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:239: '''/* The second argument of defineNativeClass is the ...
8 years, 1 month ago (2012-11-22 13:51:52 UTC) #7
ngeoffray
Thanks Peter. https://codereview.chromium.org/11415114/diff/6002/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/11415114/diff/6002/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode239 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:239: '''/* The second argument of defineNativeClass is ...
8 years, 1 month ago (2012-11-22 13:54:17 UTC) #8
floitsch
LGTM. https://codereview.chromium.org/11415114/diff/6002/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/11415114/diff/6002/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode240 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:240: which might be undefined if there is no ...
8 years, 1 month ago (2012-11-22 13:59:28 UTC) #9
ngeoffray
8 years, 1 month ago (2012-11-22 14:01:41 UTC) #10
Thanks Florian.

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

https://codereview.chromium.org/11415114/diff/6002/sdk/lib/_internal/compiler...
sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:240: which
might be undefined if there is no field. */'''
On 2012/11/22 13:59:30, floitsch wrote:
> If the class doesn't have any declared fields (in the '' property of the
> description), then provide an empty list of fields.
> 
> ?

Done.

Powered by Google App Engine
This is Rietveld 408576698