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

Issue 1571433002: dart2js cps: Compute intercepted classes in optimize_interceptors. (Closed)

Created:
4 years, 11 months ago by asgerf
Modified:
4 years, 11 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

dart2js cps: Compute intercepted classes in optimize_interceptors. There was previously an optimization in type propagation that replaced getInterceptor(x) with x, but this depends on the set of intercepted classes (since null may or may not need interception). That optimization is now handled at the use-site of the interceptor, since each use knows if it needs null to be intercepted. BUG= R=kmillikin@google.com, sra@google.com Committed: https://github.com/dart-lang/sdk/commit/11c7ad4d6f457882dc41bcf751c1b29b6dc90fe8

Patch Set 1 #

Patch Set 2 : Clean up #

Patch Set 3 : Do not change CC on InvokeMethodDirectly #

Patch Set 4 : Cleanup #

Patch Set 5 : JSArray and JSInt are special #

Total comments: 8

Patch Set 6 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -262 lines) Patch
M pkg/compiler/lib/src/cps_ir/backward_null_check_remover.dart View 2 chunks +2 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart View 1 chunk +0 lines, -56 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/gvn.dart View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/cps_ir/optimize_interceptors.dart View 1 2 3 4 5 6 chunks +116 lines, -21 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/optimizers.dart View 2 chunks +7 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/type_propagation.dart View 1 2 3 4 5 5 chunks +35 lines, -165 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/codegen.dart View 1 2 3 4 5 1 chunk +7 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/task.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/unsugar.dart View 5 chunks +3 lines, -10 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
asgerf
4 years, 11 months ago (2016-01-07 20:32:22 UTC) #3
Kevin Millikin (Google)
STV! (LGTM)
4 years, 11 months ago (2016-01-08 01:13:29 UTC) #4
sra1
lgtm https://chromiumcodereview.appspot.com/1571433002/diff/80001/pkg/compiler/lib/src/cps_ir/optimize_interceptors.dart File pkg/compiler/lib/src/cps_ir/optimize_interceptors.dart (right): https://chromiumcodereview.appspot.com/1571433002/diff/80001/pkg/compiler/lib/src/cps_ir/optimize_interceptors.dart#newcode108 pkg/compiler/lib/src/cps_ir/optimize_interceptors.dart:108: bool includeClass(ClassElement elem) { perhaps change the name ...
4 years, 11 months ago (2016-01-08 03:24:05 UTC) #5
asgerf
https://chromiumcodereview.appspot.com/1571433002/diff/80001/pkg/compiler/lib/src/cps_ir/optimize_interceptors.dart File pkg/compiler/lib/src/cps_ir/optimize_interceptors.dart (right): https://chromiumcodereview.appspot.com/1571433002/diff/80001/pkg/compiler/lib/src/cps_ir/optimize_interceptors.dart#newcode108 pkg/compiler/lib/src/cps_ir/optimize_interceptors.dart:108: bool includeClass(ClassElement elem) { On 2016/01/08 03:24:04, sra1 wrote: ...
4 years, 11 months ago (2016-01-08 17:17:49 UTC) #6
asgerf
4 years, 11 months ago (2016-01-08 18:06:14 UTC) #8
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
11c7ad4d6f457882dc41bcf751c1b29b6dc90fe8 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698