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

Issue 2835363002: Properly handle implicit closure function when a generic function. (Closed)

Created:
3 years, 8 months ago by regis
Modified:
3 years, 8 months ago
Reviewers:
rmacnak, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Properly handle implicit closure function when a generic function. The parent function of an implicit closure function is not the enclosing function, but the function being closurised. This requires special handling in a few places. R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/e4ff8df6e6875d1788c7e0e20fef61c17a26a7fb

Patch Set 1 #

Total comments: 2

Patch Set 2 : address comment #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -9 lines) Patch
M runtime/vm/flow_graph_compiler_x64.cc View 1 1 chunk +10 lines, -0 lines 3 comments Download
M runtime/vm/object.cc View 1 3 chunks +13 lines, -0 lines 0 comments Download
M runtime/vm/parser.cc View 3 chunks +36 lines, -9 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
regis
3 years, 8 months ago (2017-04-24 23:29:53 UTC) #2
rmacnak
https://codereview.chromium.org/2835363002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/2835363002/diff/1/runtime/vm/object.cc#newcode6365 runtime/vm/object.cc:6365: const Function& function = Function::Handle( I think this output ...
3 years, 8 months ago (2017-04-25 19:21:42 UTC) #3
regis
Thanks! PTAL https://codereview.chromium.org/2835363002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/2835363002/diff/1/runtime/vm/object.cc#newcode6365 runtime/vm/object.cc:6365: const Function& function = Function::Handle( On 2017/04/25 ...
3 years, 8 months ago (2017-04-25 19:57:26 UTC) #4
rmacnak
lgtm
3 years, 8 months ago (2017-04-25 20:04:22 UTC) #5
regis
Committed patchset #2 (id:20001) manually as e4ff8df6e6875d1788c7e0e20fef61c17a26a7fb (presubmit successful).
3 years, 8 months ago (2017-04-25 20:35:26 UTC) #7
siva
https://codereview.chromium.org/2835363002/diff/20001/runtime/vm/flow_graph_compiler_x64.cc File runtime/vm/flow_graph_compiler_x64.cc (right): https://codereview.chromium.org/2835363002/diff/20001/runtime/vm/flow_graph_compiler_x64.cc#newcode1100 runtime/vm/flow_graph_compiler_x64.cc:1100: } Should this assert also happen on other architectures?
3 years, 8 months ago (2017-04-25 21:58:06 UTC) #9
regis
https://codereview.chromium.org/2835363002/diff/20001/runtime/vm/flow_graph_compiler_x64.cc File runtime/vm/flow_graph_compiler_x64.cc (right): https://codereview.chromium.org/2835363002/diff/20001/runtime/vm/flow_graph_compiler_x64.cc#newcode1100 runtime/vm/flow_graph_compiler_x64.cc:1100: } On 2017/04/25 21:58:06, siva wrote: > Should this ...
3 years, 8 months ago (2017-04-25 22:08:34 UTC) #10
siva
3 years, 8 months ago (2017-04-25 22:31:33 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/2835363002/diff/20001/runtime/vm/flow_graph_c...
File runtime/vm/flow_graph_compiler_x64.cc (right):

https://codereview.chromium.org/2835363002/diff/20001/runtime/vm/flow_graph_c...
runtime/vm/flow_graph_compiler_x64.cc:1100: }
On 2017/04/25 22:08:33, regis wrote:
> On 2017/04/25 21:58:06, siva wrote:
> > Should this assert also happen on other architectures?
> 
> I should probably not have committed these asserts, especially since
> FLAG_reify_generic_functions is false by default and not working yet. They
help
> me verify my work in progress and are only temporary. Having them on x64 only
is
> good enough for now. Sorry for the sloppiness.

Sounds good, no need to add to other targets yet, was just wondering about it.

Powered by Google App Engine
This is Rietveld 408576698