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

Issue 1913033002: dart2js: Pass type information to constructor rather than add later. (Closed)

Created:
4 years, 8 months ago by sra1
Modified:
3 years, 10 months ago
CC:
reviews_dartlang.org, floitsch
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

dart2js: Pass type information to constructor rather than add later. Committed under another CL

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -65 lines) Patch
M pkg/compiler/lib/src/js_backend/backend.dart View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/constant_emitter.dart View 1 3 chunks +16 lines, -9 lines 1 comment Download
M pkg/compiler/lib/src/js_backend/namer.dart View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/class_stub_generator.dart View 2 chunks +11 lines, -2 lines 2 comments Download
M pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart View 2 chunks +5 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/model.dart View 4 chunks +6 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart View 1 3 chunks +4 lines, -0 lines 1 comment Download
M pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 1 2 4 chunks +48 lines, -38 lines 2 comments Download
M pkg/compiler/lib/src/ssa/codegen.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/js_runtime/lib/js_rti.dart View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
sra1
I will hold of on committing this until we have testing of --fast-startup. I have ...
4 years, 4 months ago (2016-08-19 16:21:04 UTC) #2
Siggi Cherem (dart-lang)
beautiful, lgtm, minor comments below https://codereview.chromium.org/1913033002/diff/60001/pkg/compiler/lib/src/js_backend/constant_emitter.dart File pkg/compiler/lib/src/js_backend/constant_emitter.dart (right): https://codereview.chromium.org/1913033002/diff/60001/pkg/compiler/lib/src/js_backend/constant_emitter.dart#newcode257 pkg/compiler/lib/src/js_backend/constant_emitter.dart:257: // Fix. Add an ...
4 years, 4 months ago (2016-08-19 16:39:46 UTC) #3
sra1
3 years, 10 months ago (2017-02-23 23:46:41 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/1913033002/diff/60001/pkg/compiler/lib/src/js...
File pkg/compiler/lib/src/js_emitter/class_stub_generator.dart (right):

https://codereview.chromium.org/1913033002/diff/60001/pkg/compiler/lib/src/js...
pkg/compiler/lib/src/js_emitter/class_stub_generator.dart:32: typeParameters,
On 2016/08/19 16:39:46, Siggi Cherem (dart-lang) wrote:
> does js_ast remove the extra argument if typeParameters is an empty list? Or
do
> we need 2 templates function(#) {} and function(#, #) {} ?

# in most repeated contexts will spread a template argument that is an Iterable.
 So "function(#, #) ..." will append two parameter lists.

https://codereview.chromium.org/1913033002/diff/60001/pkg/compiler/lib/src/ss...
File pkg/compiler/lib/src/ssa/builder.dart (right):

https://codereview.chromium.org/1913033002/diff/60001/pkg/compiler/lib/src/ss...
pkg/compiler/lib/src/ssa/builder.dart:2377: InterfaceType type =
classElement.thisType;
On 2016/08/19 16:39:46, Siggi Cherem (dart-lang) wrote:
> just to make sure I didn't miss anything: this code here and below just moved
> from above, but otherwise is the same, correct?

Yes. Since the type arguments are now a parameter, the code needed to be done
before creating the call, instead of after.

Powered by Google App Engine
This is Rietveld 408576698