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

Issue 15960016: Provide list of step-in source positions in JS Debug API (Closed)

Created:
7 years, 6 months ago by Peter.Rybin
Modified:
7 years, 6 months ago
Reviewers:
Yang
CC:
v8-dev
Visibility:
Public.

Description

Provide list of step-in source positions in JS Debug API R=yangguo@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=15322

Patch Set 1 #

Patch Set 2 : clean #

Patch Set 3 : rebase #

Patch Set 4 : space #

Total comments: 4

Patch Set 5 : follow code review #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -0 lines) Patch
M src/debug.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/debug.cc View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M src/mirror-debugger.js View 1 2 3 4 2 chunks +28 lines, -0 lines 0 comments Download
M src/runtime.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 5 6 7 1 chunk +52 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Peter.Rybin
7 years, 6 months ago (2013-05-28 22:33:29 UTC) #1
Peter.Rybin
ping
7 years, 6 months ago (2013-06-09 21:46:57 UTC) #2
Yang
LGTM with comments. https://chromiumcodereview.appspot.com/15960016/diff/8001/src/mirror-debugger.js File src/mirror-debugger.js (right): https://chromiumcodereview.appspot.com/15960016/diff/8001/src/mirror-debugger.js#newcode1686 src/mirror-debugger.js:1686: serializeLocationFields(script.locationFromPosition(funcOffset + stepInRaw[i], true), posStruct); 80 ...
7 years, 6 months ago (2013-06-14 13:41:11 UTC) #3
Peter.Rybin
https://chromiumcodereview.appspot.com/15960016/diff/8001/src/mirror-debugger.js File src/mirror-debugger.js (right): https://chromiumcodereview.appspot.com/15960016/diff/8001/src/mirror-debugger.js#newcode1686 src/mirror-debugger.js:1686: serializeLocationFields(script.locationFromPosition(funcOffset + stepInRaw[i], true), posStruct); On 2013/06/14 13:41:12, Yang ...
7 years, 6 months ago (2013-06-14 19:48:00 UTC) #4
Yang
7 years, 6 months ago (2013-06-25 11:17:41 UTC) #5
On 2013/06/14 19:48:00, peter.rybin wrote:
>
https://chromiumcodereview.appspot.com/15960016/diff/8001/src/mirror-debugger.js
> File src/mirror-debugger.js (right):
> 
>
https://chromiumcodereview.appspot.com/15960016/diff/8001/src/mirror-debugger...
> src/mirror-debugger.js:1686:
> serializeLocationFields(script.locationFromPosition(funcOffset + stepInRaw[i],
> true), posStruct);
> On 2013/06/14 13:41:12, Yang wrote:
> > 80 char limit.
> 
> Done.
> 
> https://chromiumcodereview.appspot.com/15960016/diff/8001/src/runtime.cc
> File src/runtime.cc (right):
> 
>
https://chromiumcodereview.appspot.com/15960016/diff/8001/src/runtime.cc#newc...
> src/runtime.cc:11613: }
> On 2013/06/14 13:41:12, Yang wrote:
> > Am I understanding this correctly that you are looking for the break
location
> at
> > current PC, and collecting all break locations after that in the current
> > function? Maybe add a comment to explain that. It's not too hard to
> understand,
> > but the debugger code is complicated enough and every hint to save time
> > understanding it is valuable.
> > 
> > I'm not entirely sure why you want to do that though, I mean, why do you
> ignore
> > the break locations before the current PC?
> 
> No, it's absolutely fine. The things is that in some teams comments are
> officially discouraged, so it's a cultural shift with me.
> 
> The algorithm is trying to find all step-in positions starting from the PC
till
> the end of the current statement.
> 
> Done

LGTM btw.

Powered by Google App Engine
This is Rietveld 408576698