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

Issue 356923006: Iterate over PcDescriptors only via iterators, not via an index. (preparation for more compression … (Closed)

Created:
6 years, 5 months ago by srdjan
Modified:
6 years, 5 months ago
Reviewers:
siva, hausner, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Iterate over PcDescriptors only via iterators, not via an index. (preparation for more compression of PcDescriptors). R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=38032

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Total comments: 4

Patch Set 14 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+460 lines, -413 lines) Patch
M runtime/vm/block_scheduler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/code_descriptors.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/code_descriptors.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/code_descriptors_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -3 lines 0 comments Download
M runtime/vm/coverage.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -6 lines 0 comments Download
M runtime/vm/debugger.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +5 lines, -6 lines 0 comments Download
M runtime/vm/debugger.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 11 chunks +64 lines, -70 lines 2 comments Download
M runtime/vm/debugger_arm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +8 lines, -8 lines 0 comments Download
M runtime/vm/debugger_arm64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +8 lines, -8 lines 0 comments Download
M runtime/vm/debugger_ia32.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +8 lines, -8 lines 0 comments Download
M runtime/vm/debugger_mips.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +8 lines, -8 lines 0 comments Download
M runtime/vm/debugger_x64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +8 lines, -8 lines 0 comments Download
M runtime/vm/deopt_instructions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_compiler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_compiler_arm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 13 chunks +15 lines, -13 lines 0 comments Download
M runtime/vm/flow_graph_compiler_arm64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 13 chunks +14 lines, -13 lines 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 13 chunks +14 lines, -13 lines 0 comments Download
M runtime/vm/flow_graph_compiler_mips.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 13 chunks +14 lines, -13 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 13 chunks +14 lines, -13 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 chunks +15 lines, -15 lines 0 comments Download
M runtime/vm/intermediate_language_arm64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 chunks +14 lines, -14 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 16 chunks +16 lines, -16 lines 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 11 chunks +11 lines, -11 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 chunks +14 lines, -14 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +34 lines, -40 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +73 lines, -56 lines 0 comments Download
M runtime/vm/object_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +30 lines, -16 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +19 lines, -4 lines 0 comments Download
M runtime/vm/simulator_arm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -6 lines 0 comments Download
M runtime/vm/stack_frame.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
srdjan
6 years, 5 months ago (2014-06-27 16:59:08 UTC) #1
srdjan
On 2014/06/27 16:59:08, srdjan wrote: FYI, planned work includes: - NextPc(uword pc) => iterates until ...
6 years, 5 months ago (2014-06-27 17:07:41 UTC) #2
siva
LGTM with one comment about the need to move the kind description from Object to ...
6 years, 5 months ago (2014-07-01 18:37:11 UTC) #3
srdjan
https://chromiumcodereview.appspot.com/356923006/diff/220001/runtime/vm/code_descriptors_test.cc File runtime/vm/code_descriptors_test.cc (right): https://chromiumcodereview.appspot.com/356923006/diff/220001/runtime/vm/code_descriptors_test.cc#newcode260 runtime/vm/code_descriptors_test.cc:260: PcDescriptors::Iterator iter(descriptors); On 2014/07/01 18:37:11, siva wrote: > Not ...
6 years, 5 months ago (2014-07-07 18:01:26 UTC) #4
srdjan
Committed patchset #14 manually as r38032 (presubmit successful).
6 years, 5 months ago (2014-07-07 18:26:01 UTC) #5
Ivan Posva
DBC -ip https://codereview.chromium.org/356923006/diff/230001/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): https://codereview.chromium.org/356923006/diff/230001/runtime/vm/debugger.cc#newcode366 runtime/vm/debugger.cc:366: desc_rec_ = &rec; What is the lifetime ...
6 years, 5 months ago (2014-07-16 08:08:49 UTC) #6
hausner
6 years, 5 months ago (2014-07-16 16:14:08 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/356923006/diff/230001/runtime/vm/debugger.cc
File runtime/vm/debugger.cc (right):

https://codereview.chromium.org/356923006/diff/230001/runtime/vm/debugger.cc#...
runtime/vm/debugger.cc:366: desc_rec_ = &rec;
On 2014/07/16 08:08:49, Ivan Posva wrote:
> What is the lifetime of this PcDescriptorRec? Or asked differently: When is
the
> desc_rec_ pointer within the ActivationFrame accessed and how to we ensure
that
> the iterator has not been deleted or has not moved forward since we captured
the
> value here?

Good call. It seems that desc_rec_ is pointing into a RawPcDescriptor object.
Srdjan just confirmed that this is a bug. He'll fix it.

Powered by Google App Engine
This is Rietveld 408576698