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

Issue 10911006: Collect the types used in is-checks in the resolver phase. (Closed)

Created:
8 years, 3 months ago by karlklose
Modified:
8 years, 3 months ago
Reviewers:
floitsch, ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Collect the types used in is-checks in the resolver phase. This is the first step to reducing the amount of runtime type information, but it does not currently lead to less generated code. The next step is to do the same for the instantiated types and use both sets of types to calculate the set of instantiations that need type information. Committed: https://code.google.com/p/dart/source/detail?r=11926

Patch Set 1 #

Patch Set 2 : #

Total comments: 18

Patch Set 3 : #

Total comments: 8

Patch Set 4 : Addressed comments. #

Patch Set 5 : Fix last upload. #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -50 lines) Patch
M lib/compiler/implementation/compiler.dart View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M lib/compiler/implementation/enqueue.dart View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M lib/compiler/implementation/js_backend/emitter.dart View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M lib/compiler/implementation/js_backend/native_emitter.dart View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M lib/compiler/implementation/resolver.dart View 1 2 3 7 chunks +30 lines, -9 lines 2 comments Download
M lib/compiler/implementation/ssa/builder.dart View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M lib/compiler/implementation/ssa/codegen.dart View 1 2 3 6 chunks +20 lines, -19 lines 0 comments Download
M lib/compiler/implementation/typechecker.dart View 1 2 3 8 chunks +63 lines, -4 lines 0 comments Download
M lib/compiler/implementation/universe.dart View 1 2 3 4 2 chunks +11 lines, -3 lines 3 comments Download
M lib/compiler/implementation/util/link.dart View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M lib/compiler/implementation/util/link_implementation.dart View 1 2 2 chunks +18 lines, -0 lines 2 comments Download

Messages

Total messages: 11 (0 generated)
karlklose
8 years, 3 months ago (2012-08-30 10:50:56 UTC) #1
ngeoffray
http://codereview.chromium.org/10911006/diff/11/lib/compiler/implementation/compiler.dart File lib/compiler/implementation/compiler.dart (right): http://codereview.chromium.org/10911006/diff/11/lib/compiler/implementation/compiler.dart#newcode347 lib/compiler/implementation/compiler.dart:347: // Register is-checks for all special classes. Why? Is ...
8 years, 3 months ago (2012-08-30 11:03:33 UTC) #2
karlklose
PTAL. http://codereview.chromium.org/10911006/diff/11/lib/compiler/implementation/compiler.dart File lib/compiler/implementation/compiler.dart (right): http://codereview.chromium.org/10911006/diff/11/lib/compiler/implementation/compiler.dart#newcode347 lib/compiler/implementation/compiler.dart:347: // Register is-checks for all special classes. Done. ...
8 years, 3 months ago (2012-08-30 13:04:30 UTC) #3
ngeoffray
http://codereview.chromium.org/10911006/diff/7001/lib/compiler/implementation/compiler.dart File lib/compiler/implementation/compiler.dart (right): http://codereview.chromium.org/10911006/diff/7001/lib/compiler/implementation/compiler.dart#newcode548 lib/compiler/implementation/compiler.dart:548: enqueuer.codegen.universe.computeRequiredTypes( Why is that here? The computation should be ...
8 years, 3 months ago (2012-08-30 13:17:46 UTC) #4
karlklose
PTAL. https://chromiumcodereview.appspot.com/10911006/diff/7001/lib/compiler/implementation/compiler.dart File lib/compiler/implementation/compiler.dart (right): https://chromiumcodereview.appspot.com/10911006/diff/7001/lib/compiler/implementation/compiler.dart#newcode548 lib/compiler/implementation/compiler.dart:548: enqueuer.codegen.universe.computeRequiredTypes( On 2012/08/30 13:17:46, ngeoffray wrote: > Why ...
8 years, 3 months ago (2012-09-05 09:36:01 UTC) #5
ngeoffray
LGTM! https://chromiumcodereview.appspot.com/10911006/diff/2011/lib/compiler/implementation/resolver.dart File lib/compiler/implementation/resolver.dart (right): https://chromiumcodereview.appspot.com/10911006/diff/2011/lib/compiler/implementation/resolver.dart#newcode1631 lib/compiler/implementation/resolver.dart:1631: if (compiler.enableTypeAssertions && type != null) { use ...
8 years, 3 months ago (2012-09-05 12:50:40 UTC) #6
karlklose
https://chromiumcodereview.appspot.com/10911006/diff/2011/lib/compiler/implementation/resolver.dart File lib/compiler/implementation/resolver.dart (right): https://chromiumcodereview.appspot.com/10911006/diff/2011/lib/compiler/implementation/resolver.dart#newcode1631 lib/compiler/implementation/resolver.dart:1631: if (compiler.enableTypeAssertions && type != null) { On 2012/09/05 ...
8 years, 3 months ago (2012-09-06 11:04:01 UTC) #7
ngeoffray
https://chromiumcodereview.appspot.com/10911006/diff/2011/lib/compiler/implementation/universe.dart File lib/compiler/implementation/universe.dart (right): https://chromiumcodereview.appspot.com/10911006/diff/2011/lib/compiler/implementation/universe.dart#newcode34 lib/compiler/implementation/universe.dart:34: // TODO(karlklose): add the set of instantiatedtypes as second ...
8 years, 3 months ago (2012-09-06 11:07:46 UTC) #8
karlklose
Yes. Eventually we also want to know for which of the instantiated types we need ...
8 years, 3 months ago (2012-09-06 11:32:44 UTC) #9
ngeoffray
On 2012/09/06 11:32:44, karlklose wrote: > Yes. Eventually we also want to know for which ...
8 years, 3 months ago (2012-09-06 11:35:49 UTC) #10
floitsch
8 years, 3 months ago (2012-09-06 13:02:02 UTC) #11
LGTM.

Powered by Google App Engine
This is Rietveld 408576698