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

Issue 3029033: Fix 'step in' after live edit stack manipulation (Closed)

Created:
10 years, 5 months ago by Peter Rybin
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix 'step in' after live edit stack manipulation Committed: http://code.google.com/p/v8/source/detail?r=5150

Patch Set 1 #

Patch Set 2 : rename field #

Patch Set 3 : clean #

Patch Set 4 : clean #

Patch Set 5 : other archs #

Total comments: 18

Patch Set 6 : follow codereview #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -45 lines) Patch
M src/arm/debug-arm.cc View 5 1 chunk +3 lines, -2 lines 0 comments Download
M src/debug.h View 1 2 3 4 5 6 chunks +32 lines, -3 lines 0 comments Download
M src/debug.cc View 1 2 3 4 5 4 chunks +48 lines, -30 lines 0 comments Download
M src/debug-debugger.js View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/ia32/debug-ia32.cc View 1 2 3 4 5 3 chunks +11 lines, -2 lines 0 comments Download
M src/liveedit.cc View 1 2 3 4 5 4 chunks +11 lines, -4 lines 0 comments Download
M src/mips/debug-mips.cc View 5 1 chunk +3 lines, -2 lines 0 comments Download
M src/x64/debug-x64.cc View 5 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Peter Rybin
Hi Mads It's stack manipulations again. This time I think it should be more modest ...
10 years, 5 months ago (2010-07-27 17:49:32 UTC) #1
Peter Rybin
Mads, I guess Soren may have returned from his vacation. Do you think it's better ...
10 years, 4 months ago (2010-07-28 12:57:29 UTC) #2
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/3029033/diff/8001/9003 File src/debug.cc (right): http://codereview.chromium.org/3029033/diff/8001/9003#newcode1304 src/debug.cc:1304: // to function it is goint to restart. ...
10 years, 4 months ago (2010-07-28 15:29:09 UTC) #3
Peter Rybin
10 years, 4 months ago (2010-07-28 17:03:15 UTC) #4
I'm sorry for those long lines, I got used to check them on web page, but the
limit was reset to 100 characters.

http://codereview.chromium.org/3029033/diff/8001/9003
File src/debug.cc (right):

http://codereview.chromium.org/3029033/diff/8001/9003#newcode1304
src/debug.cc:1304: // to function it is goint to restart.
On 2010/07/28 15:29:10, Søren Gjesse wrote:
> function it -> the function which
> goint to -> going to be

Done.

http://codereview.chromium.org/3029033/diff/8001/9003#newcode1311
src/debug.cc:1311: // If it's CallFunction stub ensure target function is
compiled and flood
On 2010/07/28 15:29:10, Søren Gjesse wrote:
> This comment should be inside the else if body.

Done.

http://codereview.chromium.org/3029033/diff/8001/9003#newcode1788
src/debug.cc:1788: thread_local_.restarter_frame_function_pointer_ =
restarter_frame_function_pointer;
On 2010/07/28 15:29:10, Søren Gjesse wrote:
> Long line.

Done.

http://codereview.chromium.org/3029033/diff/8001/9004
File src/debug.h (right):

http://codereview.chromium.org/3029033/diff/8001/9004#newcode428
src/debug.h:428: //  b. being compatible with regular stack structure for
various stack iterators.
On 2010/07/28 15:29:10, Søren Gjesse wrote:
> Long line.

Done.

http://codereview.chromium.org/3029033/diff/8001/9004#newcode429
src/debug.h:429: // Returns address of stack allocated pointer to restarted
function,
On 2010/07/28 15:29:10, Søren Gjesse wrote:
> Stack allocated here means stored in the JavaScript stack?

Yes.

http://codereview.chromium.org/3029033/diff/8001/9004#newcode430
src/debug.h:430: // the value that is called 'restarter_frame_function_pointer'.
On 2010/07/28 15:29:10, Søren Gjesse wrote:
> Maybe mention where this return value is used.

Done.

http://codereview.chromium.org/3029033/diff/8001/9004#newcode979
src/debug.h:979: return
reinterpret_cast<Address>(Debug::restarter_frame_function_pointer_address());
On 2010/07/28 15:29:10, Søren Gjesse wrote:
> Long line.

Done.

http://codereview.chromium.org/3029033/diff/8001/9005
File src/ia32/debug-ia32.cc (right):

http://codereview.chromium.org/3029033/diff/8001/9005#newcode299
src/ia32/debug-ia32.cc:299: Address fp = bottom_js_frame->fp();
On 2010/07/28 15:29:10, Søren Gjesse wrote:
> Would it be possible to use some of the existing constants or (frames-ia32.h)
> here instead of 1, 2, 3, 4 and 5? Or possibly add more constants?

I would like to reimplement this function and probably make it
platform-independent.

http://codereview.chromium.org/3029033/diff/8001/9006
File src/liveedit.cc (right):

http://codereview.chromium.org/3029033/diff/8001/9006#newcode1242
src/liveedit.cc:1242: *restarter_frame_function_pointer =
Debug::SetUpFrameDropperFrame(bottom_js_frame, code);
On 2010/07/28 15:29:10, Søren Gjesse wrote:
> Long line.

Done.

Powered by Google App Engine
This is Rietveld 408576698