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

Issue 2783002: Better handling of stepping out of a function... (Closed)

Created:
10 years, 6 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Better handling of stepping out of a function With the change in r4820 all return statements are now breakable like any statement, so stepping will stop before the return statement actually returning from a function. With this change the position when breaking in the function return (after executing the return statement) will be the actual end of the function. At this point the return value is available as it saved to the stack by the debug break at return handling. Added information on the actual value returned from the function to the debugger. Committed: http://code.google.com/p/v8/source/detail?r=4835

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -22 lines) Patch
M src/arm/full-codegen-arm.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M src/debug.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/debug.cc View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M src/full-codegen.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M src/mips/full-codegen-mips.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/mirror-debugger.js View 1 2 3 4 10 chunks +46 lines, -4 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 6 chunks +49 lines, -6 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A test/mjsunit/debug-return-value.js View 1 2 1 chunk +163 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Søren Thygesen Gjesse
10 years, 6 months ago (2010-06-09 12:54:27 UTC) #1
yurys
LGTM http://codereview.chromium.org/2783002/diff/8001/9009 File src/runtime.cc (right): http://codereview.chromium.org/2783002/diff/8001/9009#newcode8358 src/runtime.cc:8358: // value to return on top. A debug ...
10 years, 6 months ago (2010-06-09 13:47:55 UTC) #2
Mads Ager (chromium)
LGTM! http://codereview.chromium.org/2783002/diff/8001/9009 File src/runtime.cc (right): http://codereview.chromium.org/2783002/diff/8001/9009#newcode8349 src/runtime.cc:8349: StackFrameIterator it2; it2 -> it? http://codereview.chromium.org/2783002/diff/8001/9011 File test/mjsunit/debug-return-value.js ...
10 years, 6 months ago (2010-06-09 15:26:30 UTC) #3
Søren Thygesen Gjesse
10 years, 6 months ago (2010-06-10 07:23:03 UTC) #4
http://codereview.chromium.org/2783002/diff/8001/9009
File src/runtime.cc (right):

http://codereview.chromium.org/2783002/diff/8001/9009#newcode8349
src/runtime.cc:8349: StackFrameIterator it2;
On 2010/06/09 15:26:31, Mads Ager wrote:
> it2 -> it?

This is to avoid confusing it with the JavaScriptFrameIterator named it in the
outer scope.

http://codereview.chromium.org/2783002/diff/8001/9009#newcode8358
src/runtime.cc:8358: // value to return on top. A debug break at return will
creates an
On 2010/06/09 13:47:55, Yury Semikhatsky wrote:
> typo: will creates -> will create

Done.

http://codereview.chromium.org/2783002/diff/8001/9011
File test/mjsunit/debug-return-value.js (right):

http://codereview.chromium.org/2783002/diff/8001/9011#newcode1
test/mjsunit/debug-return-value.js:1: // Copyright 2008 the V8 project authors.
All rights reserved.
On 2010/06/09 15:26:31, Mads Ager wrote:
> 2010

Done.

Powered by Google App Engine
This is Rietveld 408576698