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

Issue 2670843006: Encode inlining information in CodeSourceMap and remove inlining interval arrays. (Closed)

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

Description

Encode inlining information in CodeSourceMap and remove inlining interval arrays. CodeSourceMap now contains a small bytecode that describes changes to the token position and inlining stack as one moves through a function. This information is used by the disassembler to display inlining comments and by the profiler to properly blame ticks against source code. Slightly shrinks the total size of code metadata; on dart2js compiling hello world, the final heap is before 59.6MB total, 12.8MB List, 1.1MB CodeSourceMap after 59.4MB total, 12.1MB List, 1.5MB CodeSourceMap To be filtered and included in AOT code to expand inline frames in stack traces. R=johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/909ce02b124430bc452dc8822107dd4f5f92c784

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 4

Patch Set 8 : . #

Total comments: 2

Patch Set 9 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+606 lines, -893 lines) Patch
M runtime/vm/clustered_snapshot.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M runtime/vm/code_descriptors.h View 1 2 3 4 5 6 7 8 2 chunks +96 lines, -21 lines 0 comments Download
M runtime/vm/code_descriptors.cc View 1 2 3 4 5 6 3 chunks +341 lines, -19 lines 0 comments Download
M runtime/vm/code_descriptors_test.cc View 1 chunk +0 lines, -48 lines 0 comments Download
M runtime/vm/compiler.cc View 4 chunks +1 line, -54 lines 0 comments Download
M runtime/vm/datastream.h View 3 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/disassembler.cc View 1 2 3 4 chunks +9 lines, -4 lines 0 comments Download
M runtime/vm/flow_graph_compiler.h View 1 2 5 chunks +2 lines, -22 lines 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 4 5 6 7 9 chunks +43 lines, -152 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 6 7 4 chunks +20 lines, -83 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 5 chunks +49 lines, -378 lines 0 comments Download
M runtime/vm/object_service.cc View 1 2 3 4 1 chunk +2 lines, -41 lines 0 comments Download
M runtime/vm/precompiler.cc View 1 2 3 4 5 2 chunks +1 line, -16 lines 0 comments Download
M runtime/vm/profiler_service.cc View 1 2 3 4 5 6 7 8 10 chunks +17 lines, -20 lines 0 comments Download
M runtime/vm/profiler_test.cc View 1 2 2 chunks +14 lines, -24 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
rmacnak
3 years, 10 months ago (2017-02-06 22:01:00 UTC) #5
Cutch
https://codereview.chromium.org/2670843006/diff/120001/runtime/vm/flow_graph_compiler.cc File runtime/vm/flow_graph_compiler.cc (right): https://codereview.chromium.org/2670843006/diff/120001/runtime/vm/flow_graph_compiler.cc#newcode1052 runtime/vm/flow_graph_compiler.cc:1052: // Force simulation through the last pc offset. what ...
3 years, 10 months ago (2017-02-07 17:14:24 UTC) #6
rmacnak
Replies also added comments in the code. https://codereview.chromium.org/2670843006/diff/120001/runtime/vm/flow_graph_compiler.cc File runtime/vm/flow_graph_compiler.cc (right): https://codereview.chromium.org/2670843006/diff/120001/runtime/vm/flow_graph_compiler.cc#newcode1052 runtime/vm/flow_graph_compiler.cc:1052: // Force ...
3 years, 10 months ago (2017-02-07 18:04:13 UTC) #7
Cutch
This is nice! LGTM https://codereview.chromium.org/2670843006/diff/140001/runtime/vm/code_descriptors.h File runtime/vm/code_descriptors.h (right): https://codereview.chromium.org/2670843006/diff/140001/runtime/vm/code_descriptors.h#newcode149 runtime/vm/code_descriptors.h:149: static const TokenPosition kInitialPosition; Maybe ...
3 years, 10 months ago (2017-02-07 18:27:05 UTC) #8
rmacnak
https://codereview.chromium.org/2670843006/diff/140001/runtime/vm/code_descriptors.h File runtime/vm/code_descriptors.h (right): https://codereview.chromium.org/2670843006/diff/140001/runtime/vm/code_descriptors.h#newcode149 runtime/vm/code_descriptors.h:149: static const TokenPosition kInitialPosition; On 2017/02/07 18:27:04, Cutch wrote: ...
3 years, 10 months ago (2017-02-07 20:50:45 UTC) #9
rmacnak
3 years, 10 months ago (2017-02-07 20:52:28 UTC) #11
Message was sent while issue was closed.
Committed patchset #9 (id:160001) manually as
909ce02b124430bc452dc8822107dd4f5f92c784 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698