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

Issue 2973633002: [kernel] Change how TypeParameterType is calculated. (Closed)

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

Description

[kernel] Change how TypeParameterType is calculated. Prior to this CL we carried around information about the containing class and member, both of which was fetched by reading out-of-line in the binary (i.e. while reading the current member, start reading something from the parent member etc). It had also required the introduction of extra fields in the kernel binary file (dill file). This CL cleans that up, by a) Setting type parameters on functions as needed (in kernel_reader.cc) b) Using the VM Class and VM Function to get the required information (with a above the information is all available). (in kernel_binary_flowgraph.cc.) This means that c) We don't have to read the binary out-of-line (for TypeParameterType to work at least), and that d) We can remove the previously introduced extra fields from the kernel binary file (dill file). R=dmitryas@google.com, kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/fb745e6e1ba41ebdba74e3bc507ebb18651e0ad0

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebased #

Total comments: 20

Patch Set 3 : Review comments #

Patch Set 4 : longjmp instead of UNREACHABLE (+ rebase) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -314 lines) Patch
M pkg/kernel/binary.md View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M pkg/kernel/lib/binary/ast_from_binary.dart View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M pkg/kernel/lib/binary/ast_to_binary.dart View 1 2 3 2 chunks +0 lines, -7 lines 0 comments Download
M runtime/vm/kernel_binary_flowgraph.h View 1 2 3 3 chunks +9 lines, -14 lines 0 comments Download
M runtime/vm/kernel_binary_flowgraph.cc View 1 2 3 10 chunks +50 lines, -177 lines 0 comments Download
M runtime/vm/kernel_reader.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/kernel_reader.cc View 1 2 3 9 chunks +82 lines, -67 lines 0 comments Download
M runtime/vm/kernel_to_il.h View 1 2 2 chunks +34 lines, -40 lines 0 comments Download
M runtime/vm/kernel_to_il.cc View 1 2 2 chunks +20 lines, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
jensj
So I was actually moving method bodies to the VMs heap when I ran into ...
3 years, 5 months ago (2017-07-05 13:33:56 UTC) #2
Dmitry Stefantsov
I'm not familiar with this part of VM, but I did my best to study ...
3 years, 5 months ago (2017-07-07 09:23:54 UTC) #3
sivachandra
A drive by comment as I am trying to understand the code in this area. ...
3 years, 4 months ago (2017-07-28 22:50:25 UTC) #5
Kevin Millikin (Google)
LGTM when the comments below are addressed. https://codereview.chromium.org/2973633002/diff/20001/runtime/vm/kernel_binary_flowgraph.cc File runtime/vm/kernel_binary_flowgraph.cc (right): https://codereview.chromium.org/2973633002/diff/20001/runtime/vm/kernel_binary_flowgraph.cc#newcode1574 runtime/vm/kernel_binary_flowgraph.cc:1574: if (class_types.Length() ...
3 years, 4 months ago (2017-08-08 14:08:52 UTC) #6
jensj
If there are no objections I will land soon. https://codereview.chromium.org/2973633002/diff/1/runtime/vm/kernel_reader.cc File runtime/vm/kernel_reader.cc (right): https://codereview.chromium.org/2973633002/diff/1/runtime/vm/kernel_reader.cc#newcode642 runtime/vm/kernel_reader.cc:642: ...
3 years, 4 months ago (2017-08-09 08:39:47 UTC) #7
jensj
3 years, 4 months ago (2017-08-09 09:45:07 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
fb745e6e1ba41ebdba74e3bc507ebb18651e0ad0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698