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

Issue 841993003: dart2js: Only emit constructors of the native class interceptors that are used. (Closed)

Created:
5 years, 11 months ago by zarah
Modified:
5 years, 11 months ago
Reviewers:
ahe, floitsch, sra1
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

dart2js: Only emit constructors of the native class interceptors that are used. This change only affects CSP mode: when compiling in CSP mode we were emitting constructors and getters/setters of native classes that were potentially not needed. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=42944 Reverted: https://code.google.com/p/dart/source/detail?r=42950 Committed: https://code.google.com/p/dart/source/detail?r=43001

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added documentation. #

Total comments: 8

Patch Set 3 : Addressed comments. #

Total comments: 6

Patch Set 4 : Updated comment. #

Patch Set 5 : Rebase after revert #

Patch Set 6 : Split generation of checked setters and getters/setters for CSP. #

Patch Set 7 : Incorporating changes from Issue 854133003. Adds return in emitClassConstructor plus some renames. #

Total comments: 12

Patch Set 8 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -16 lines) Patch
M pkg/compiler/lib/src/js_emitter/native_emitter.dart View 1 2 3 4 5 6 7 2 chunks +17 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart View 1 2 3 4 5 6 7 7 chunks +38 lines, -13 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
zarah
5 years, 11 months ago (2015-01-13 14:14:32 UTC) #2
floitsch
The patch seems to do the right thing, but documentation, verification is missing. I'm ok ...
5 years, 11 months ago (2015-01-13 18:40:57 UTC) #3
sra1
The description "dart2js: Only emit constructors of the native class interceptors that are used" indicates ...
5 years, 11 months ago (2015-01-13 19:16:06 UTC) #4
ahe
On 2015/01/13 19:16:06, sra1 wrote: > The description "dart2js: Only emit constructors of the native ...
5 years, 11 months ago (2015-01-13 19:48:57 UTC) #5
zarah
PTAL, thanks. https://codereview.chromium.org/841993003/diff/1/pkg/compiler/lib/src/js_backend/native_emitter.dart File pkg/compiler/lib/src/js_backend/native_emitter.dart (right): https://codereview.chromium.org/841993003/diff/1/pkg/compiler/lib/src/js_backend/native_emitter.dart#newcode240 pkg/compiler/lib/src/js_backend/native_emitter.dart:240: emitterTask.oldEmitter.classEmitter.emitClassConstructor( On 2015/01/13 18:40:57, floitsch wrote: > ...
5 years, 11 months ago (2015-01-15 08:10:01 UTC) #6
ahe
https://codereview.chromium.org/841993003/diff/20001/pkg/compiler/lib/src/js_backend/native_emitter.dart File pkg/compiler/lib/src/js_backend/native_emitter.dart (right): https://codereview.chromium.org/841993003/diff/20001/pkg/compiler/lib/src/js_backend/native_emitter.dart#newcode241 pkg/compiler/lib/src/js_backend/native_emitter.dart:241: // Having the calls here (instead of in the ...
5 years, 11 months ago (2015-01-15 08:49:51 UTC) #8
floitsch
LGTM once Peter's comments are addressed.
5 years, 11 months ago (2015-01-15 12:35:29 UTC) #9
floitsch
Small change of mind. (But still LGTM once the comments have been addressed). https://chromiumcodereview.appspot.com/841993003/diff/20001/pkg/compiler/lib/src/js_backend/native_emitter.dart File ...
5 years, 11 months ago (2015-01-15 14:37:20 UTC) #10
zarah
https://chromiumcodereview.appspot.com/841993003/diff/20001/pkg/compiler/lib/src/js_backend/native_emitter.dart File pkg/compiler/lib/src/js_backend/native_emitter.dart (right): https://chromiumcodereview.appspot.com/841993003/diff/20001/pkg/compiler/lib/src/js_backend/native_emitter.dart#newcode241 pkg/compiler/lib/src/js_backend/native_emitter.dart:241: // Having the calls here (instead of in the ...
5 years, 11 months ago (2015-01-15 15:10:20 UTC) #11
floitsch
LGTM. https://chromiumcodereview.appspot.com/841993003/diff/40001/pkg/compiler/lib/src/js_backend/native_emitter.dart File pkg/compiler/lib/src/js_backend/native_emitter.dart (right): https://chromiumcodereview.appspot.com/841993003/diff/40001/pkg/compiler/lib/src/js_backend/native_emitter.dart#newcode236 pkg/compiler/lib/src/js_backend/native_emitter.dart:236: // In CSP mode [emitClassConstructor] and [emitClassGettersSetters] have ...
5 years, 11 months ago (2015-01-15 15:14:40 UTC) #12
zarah
https://codereview.chromium.org/841993003/diff/40001/pkg/compiler/lib/src/js_backend/native_emitter.dart File pkg/compiler/lib/src/js_backend/native_emitter.dart (right): https://codereview.chromium.org/841993003/diff/40001/pkg/compiler/lib/src/js_backend/native_emitter.dart#newcode236 pkg/compiler/lib/src/js_backend/native_emitter.dart:236: // In CSP mode [emitClassConstructor] and [emitClassGettersSetters] have On ...
5 years, 11 months ago (2015-01-16 08:48:50 UTC) #13
zarah
Committed patchset #4 (id:60001) manually as 42944 (presubmit successful).
5 years, 11 months ago (2015-01-16 08:52:49 UTC) #14
zarah
PTAL
5 years, 11 months ago (2015-01-19 09:08:54 UTC) #18
floitsch
LGTM with comments. https://codereview.chromium.org/841993003/diff/180001/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart File pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart (right): https://codereview.chromium.org/841993003/diff/180001/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart#newcode46 pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart:46: emitClassGettersSettersForCSP(classElement, builder, onlyForRti: onlyForRti); Long line. ...
5 years, 11 months ago (2015-01-19 13:40:32 UTC) #19
zarah
https://codereview.chromium.org/841993003/diff/180001/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart File pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart (right): https://codereview.chromium.org/841993003/diff/180001/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart#newcode46 pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart:46: emitClassGettersSettersForCSP(classElement, builder, onlyForRti: onlyForRti); On 2015/01/19 13:40:31, floitsch wrote: ...
5 years, 11 months ago (2015-01-20 09:10:54 UTC) #20
zarah
5 years, 11 months ago (2015-01-20 09:10:55 UTC) #21
zarah
5 years, 11 months ago (2015-01-20 09:10:57 UTC) #22
zarah
5 years, 11 months ago (2015-01-20 09:45:32 UTC) #23
Message was sent while issue was closed.
Committed patchset #8 (id:200001) manually as 43001 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698