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

Issue 1426633005: dart2js cps: Better side-effect tracking in loops. (Closed)

Created:
5 years, 1 month ago by asgerf
Modified:
5 years, 1 month 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: Better side-effect tracking in loops. This fixes an issue in the bounds checker that made it think a nested loop had side effects. In the first pass, the bounds checker would conservatively assume each loop had side effects, but then mark it as effect-free for the next pass if it did not see any effects in the loop. For nested loops however, the "conservative" side effect of the inner loop would prevent the outer loop from being marked as effect-free. A separate pass now analysis loops for side effects. BUG= R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/c861e4d28a7f36e7297683bd2a8b35e3e7acd9fd

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -31 lines) Patch
M pkg/compiler/lib/src/cps_ir/bounds_checker.dart View 7 chunks +7 lines, -14 lines 0 comments Download
A pkg/compiler/lib/src/cps_ir/loop_effects.dart View 1 chunk +176 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/loop_hierarchy.dart View 4 chunks +17 lines, -17 lines 1 comment Download

Messages

Total messages: 6 (3 generated)
asgerf
https://codereview.chromium.org/1426633005/diff/1/pkg/compiler/lib/src/cps_ir/loop_hierarchy.dart File pkg/compiler/lib/src/cps_ir/loop_hierarchy.dart (right): https://codereview.chromium.org/1426633005/diff/1/pkg/compiler/lib/src/cps_ir/loop_hierarchy.dart#newcode53 pkg/compiler/lib/src/cps_ir/loop_hierarchy.dart:53: return loopTarget[cont]; The only "change" here is that we ...
5 years, 1 month ago (2015-11-05 12:13:43 UTC) #4
Kevin Millikin (Google)
LGTM.
5 years, 1 month ago (2015-11-05 13:19:42 UTC) #5
asgerf
5 years, 1 month ago (2015-11-05 18:03:32 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
c861e4d28a7f36e7297683bd2a8b35e3e7acd9fd (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698