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

Issue 2992323002: [kernel] Allow local initializers with redirecting constructors. (Closed)

Created:
3 years, 4 months ago by sjindel
Modified:
3 years, 4 months ago
Reviewers:
jensj
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[kernel] Allow local initializers with redirecting constructors. Summary: Previously, we had asserts in the kernel flowgraph builder than assumed redirecting initializers were not accompanied by any other initializers. This was to prevent the presence of field initializers alongside them. Now, we allow (only) local initializers to appear with redirecting initializers because it's safe and necessary for closure conversion. Test Plan: Re-ran pkg/kernel/test/closures_type_vars/suite.dart and pkg/kernel/test/closures/suite.dart -- all tests pass again. BUG= R=jensj@google.com Committed: https://github.com/dart-lang/sdk/commit/66fe821637f91a6f62dc5c7d5295bfb1213a879d

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -7 lines) Patch
M runtime/vm/kernel_binary_flowgraph.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/kernel_binary_flowgraph.cc View 6 chunks +37 lines, -7 lines 2 comments Download

Messages

Total messages: 11 (4 generated)
sjindel
3 years, 4 months ago (2017-08-07 09:05:12 UTC) #4
jensj
lgtm with small nit. If you have only run the closure tests you should probably ...
3 years, 4 months ago (2017-08-07 09:12:21 UTC) #5
sjindel
On 2017/08/07 09:12:21, jensj wrote: > lgtm with small nit. > > If you have ...
3 years, 4 months ago (2017-08-07 09:17:34 UTC) #6
sjindel
https://codereview.chromium.org/2992323002/diff/1/runtime/vm/kernel_binary_flowgraph.cc File runtime/vm/kernel_binary_flowgraph.cc (right): https://codereview.chromium.org/2992323002/diff/1/runtime/vm/kernel_binary_flowgraph.cc#newcode2825 runtime/vm/kernel_binary_flowgraph.cc:2825: if (PeekTag() == kRedirectingInitializer) On 2017/08/07 09:12:21, jensj wrote: ...
3 years, 4 months ago (2017-08-07 09:17:41 UTC) #7
jensj
On 2017/08/07 09:17:34, sjindel wrote: > On 2017/08/07 09:12:21, jensj wrote: > > lgtm with ...
3 years, 4 months ago (2017-08-07 09:18:37 UTC) #8
jensj
On 2017/08/07 09:18:37, jensj wrote: > On 2017/08/07 09:17:34, sjindel wrote: > > On 2017/08/07 ...
3 years, 4 months ago (2017-08-09 08:41:56 UTC) #9
sjindel
3 years, 4 months ago (2017-08-14 12:05:26 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
66fe821637f91a6f62dc5c7d5295bfb1213a879d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698