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

Issue 2961253005: Added for-loop variable tracking and regular closures/initializers captured variable tracking. (Closed)

Created:
3 years, 5 months ago by Emily Fortuna
Modified:
3 years, 5 months ago
CC:
reviews_dartlang.org, sra1
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Added for-loop variable tracking and regular closures/initializers captured variable tracking. This whole thing is hanging together by a thread. A BUNCH of tests and more implementation coming next once the KernelClosureClass is truly functional. BUG= R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/d40f84fbf8fbe13ab37a62959ec20a924bd82d88

Patch Set 1 : . #

Total comments: 61

Patch Set 2 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+536 lines, -137 lines) Patch
M pkg/compiler/lib/src/closure.dart View 1 8 chunks +32 lines, -25 lines 0 comments Download
M pkg/compiler/lib/src/js_model/closure.dart View 1 4 chunks +179 lines, -88 lines 0 comments Download
A pkg/compiler/lib/src/js_model/closure_visitors.dart View 1 1 chunk +278 lines, -0 lines 1 comment Download
M pkg/compiler/lib/src/js_model/js_strategy.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/kernel/element_map_impl.dart View 1 2 chunks +7 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/ssa/locals_handler.dart View 1 6 chunks +14 lines, -15 lines 0 comments Download
M tests/compiler/dart2js/closure/closure_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/forloop_box_test.dart View 1 3 chunks +23 lines, -5 lines 1 comment Download

Messages

Total messages: 9 (3 generated)
Emily Fortuna
https://codereview.chromium.org/2961253005/diff/20001/pkg/compiler/lib/src/js_model/closure.dart File pkg/compiler/lib/src/js_model/closure.dart (right): https://codereview.chromium.org/2961253005/diff/20001/pkg/compiler/lib/src/js_model/closure.dart#newcode265 pkg/compiler/lib/src/js_model/closure.dart:265: bool get isClosure => false; what's this? you may ...
3 years, 5 months ago (2017-06-30 17:58:40 UTC) #3
Siggi Cherem (dart-lang)
looking nice! Just a few comments below https://codereview.chromium.org/2961253005/diff/20001/pkg/compiler/lib/src/js_model/closure.dart File pkg/compiler/lib/src/js_model/closure.dart (right): https://codereview.chromium.org/2961253005/diff/20001/pkg/compiler/lib/src/js_model/closure.dart#newcode12 pkg/compiler/lib/src/js_model/closure.dart:12: import '../js_model/elements.dart'; ...
3 years, 5 months ago (2017-06-30 22:02:10 UTC) #4
Emily Fortuna
PTAL https://codereview.chromium.org/2961253005/diff/20001/pkg/compiler/lib/src/js_model/closure.dart File pkg/compiler/lib/src/js_model/closure.dart (right): https://codereview.chromium.org/2961253005/diff/20001/pkg/compiler/lib/src/js_model/closure.dart#newcode12 pkg/compiler/lib/src/js_model/closure.dart:12: import '../js_model/elements.dart'; On 2017/06/30 22:02:08, Siggi Cherem (dart-lang) ...
3 years, 5 months ago (2017-06-30 23:48:10 UTC) #5
Siggi Cherem (dart-lang)
lgtm! woohoo! https://codereview.chromium.org/2961253005/diff/40001/pkg/compiler/lib/src/js_model/closure_visitors.dart File pkg/compiler/lib/src/js_model/closure_visitors.dart (right): https://codereview.chromium.org/2961253005/diff/40001/pkg/compiler/lib/src/js_model/closure_visitors.dart#newcode212 pkg/compiler/lib/src/js_model/closure_visitors.dart:212: // field, constsructor, or method that is ...
3 years, 5 months ago (2017-07-01 00:39:43 UTC) #6
Emily Fortuna
Committed patchset #2 (id:40001) manually as d40f84fbf8fbe13ab37a62959ec20a924bd82d88 (presubmit successful).
3 years, 5 months ago (2017-07-01 14:12:44 UTC) #8
Johnni Winther
3 years, 5 months ago (2017-07-03 07:36:57 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/2961253005/diff/20001/pkg/compiler/lib/src/ke...
File pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart (right):

https://codereview.chromium.org/2961253005/diff/20001/pkg/compiler/lib/src/ke...
pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart:81: _compiler.measurer,
elementMap, null, _globalLocalsMap);
On 2017/06/30 17:58:40, Emily Fortuna wrote:
> This seems... super sketchy. Johnni, I don't understand the distinction
between
> this strategy and the js_strategy? I mean, I understand conceptually, but is
> this particular strategy actually being exercised anywhere? It just seemed
less
> implemented.

KernelBackendStrategy is to be replaced by JsStrategy

Powered by Google App Engine
This is Rietveld 408576698