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

Issue 2979763002: [VM generic function types] Properly set the scope function after parsing a (Closed)

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

Description

[VM generic function types] Properly set the scope function after parsing a result type that may contain a generic function type. Add a regression test demonstrating the fixed problem. Rename ResolveType to ResolveTypeParameters in the parser to clarify that only type parameters get resolved. Rename ResolveSignature to ResolveSignatureTypeParameters for the same reason. Correctly propagate the finalization mode when finalizing signatures. R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/c98989f0d7cc8c1d1520b3202e18476cc33b5691

Patch Set 1 #

Patch Set 2 : work in progress #

Patch Set 3 : work in progress #

Total comments: 8

Patch Set 4 : address comments, move new test from language to language_2, sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -112 lines) Patch
M runtime/vm/class_finalizer.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M runtime/vm/clustered_snapshot.cc View 1 2 3 2 chunks +10 lines, -3 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 11 chunks +25 lines, -9 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 12 chunks +73 lines, -63 lines 0 comments Download
M runtime/vm/parser.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 33 chunks +55 lines, -32 lines 0 comments Download
A tests/language_2/generic_methods_generic_function_result_test.dart View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
regis
3 years, 5 months ago (2017-07-18 20:23:46 UTC) #2
rmacnak
What's the size change on flutter_gallery? Do the dead functions dragged into or the scope ...
3 years, 5 months ago (2017-07-18 22:06:49 UTC) #3
siva
DBC https://codereview.chromium.org/2979763002/diff/40001/runtime/vm/clustered_snapshot.cc File runtime/vm/clustered_snapshot.cc (right): https://codereview.chromium.org/2979763002/diff/40001/runtime/vm/clustered_snapshot.cc#newcode1605 runtime/vm/clustered_snapshot.cc:1605: } the empty if statement seems like a ...
3 years, 5 months ago (2017-07-18 23:52:25 UTC) #4
regis
Thanks! I still have trouble getting the numbers Ryan asked for. https://codereview.chromium.org/2979763002/diff/40001/runtime/vm/clustered_snapshot.cc File runtime/vm/clustered_snapshot.cc (right): ...
3 years, 5 months ago (2017-07-18 23:59:08 UTC) #5
rmacnak
lgtm https://codereview.chromium.org/2979763002/diff/40001/runtime/vm/clustered_snapshot.cc File runtime/vm/clustered_snapshot.cc (right): https://codereview.chromium.org/2979763002/diff/40001/runtime/vm/clustered_snapshot.cc#newcode1605 runtime/vm/clustered_snapshot.cc:1605: } On 2017/07/18 23:59:07, regis wrote: > On ...
3 years, 5 months ago (2017-07-19 19:56:39 UTC) #6
regis
Thanks! For the record, here are the snapshot sizes before the change: VMIsolate(CodeSize): 4593 Isolate(CodeSize): ...
3 years, 5 months ago (2017-07-19 20:14:24 UTC) #7
regis
3 years, 5 months ago (2017-07-19 20:32:30 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
c98989f0d7cc8c1d1520b3202e18476cc33b5691 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698