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

Issue 2628693004: TokenPositions on more nodes when running from Kernel (Closed)

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

Description

TokenPositions on more nodes when running from Kernel Utilize the offsets added in previous CLs. While this doesn't by it self give anything that resembles a good debugging experience, it should now be possible to set *some* breakpoints and actually break on them. Because of the way observatory works (and because of an unfinished Script::GenerateLineNumberArray (for kernel)) the formatting of the code you try to load up and 'debug' has to be quite specific (e.g. no indentation at all), and even then it mostly doesn't work. This is step #3 in introducing these things, next step(s) will be fixing stuff like the above. R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/b2b00e89092dc184786da08cc7ab60d69d11ebec

Patch Set 1 #

Total comments: 16

Patch Set 2 : Changes based on feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -111 lines) Patch
M runtime/vm/debugger.cc View 6 chunks +25 lines, -5 lines 0 comments Download
M runtime/vm/kernel.h View 7 chunks +27 lines, -5 lines 0 comments Download
M runtime/vm/kernel_binary.cc View 1 17 chunks +105 lines, -2 lines 0 comments Download
M runtime/vm/kernel_reader.cc View 6 chunks +9 lines, -6 lines 0 comments Download
M runtime/vm/kernel_to_il.h View 1 3 chunks +8 lines, -6 lines 0 comments Download
M runtime/vm/kernel_to_il.cc View 1 62 chunks +135 lines, -85 lines 1 comment Download
M runtime/vm/object.h View 1 chunk +4 lines, -1 line 0 comments Download
M runtime/vm/object.cc View 1 chunk +17 lines, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
jensj
3 years, 11 months ago (2017-01-11 10:18:10 UTC) #2
Kevin Millikin (Google)
LGTM in general, but please document new fields and (especially) classes. It might not be ...
3 years, 11 months ago (2017-01-12 13:43:04 UTC) #3
jensj
Thanks for the feedback. PTAL. https://codereview.chromium.org/2628693004/diff/1/runtime/vm/kernel_binary.cc File runtime/vm/kernel_binary.cc (right): https://codereview.chromium.org/2628693004/diff/1/runtime/vm/kernel_binary.cc#newcode379 runtime/vm/kernel_binary.cc:379: intptr_t value = ReadUInt(); ...
3 years, 11 months ago (2017-01-13 10:14:44 UTC) #4
Kevin Millikin (Google)
LGTM
3 years, 11 months ago (2017-01-13 12:08:04 UTC) #5
jensj
3 years, 11 months ago (2017-01-13 12:10:29 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
b2b00e89092dc184786da08cc7ab60d69d11ebec (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698