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

Issue 159703: Allow stepping in functions called using CallFunction stub (Closed)

Created:
11 years, 4 months ago by yurys
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Allow stepping in functions called using CallFunction stub. When Debug::PrepareStep is called to prepare 'step in' and current code target is CallFunction stub, the debugger will find function being called on the expression stack and flood it with one shot breakpoints.Related Chromium issue: http://code.google.com/p/chromium/issues/detail?id=17978 Committed: http://code.google.com/p/v8/source/detail?r=2745

Patch Set 1 #

Total comments: 10

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -7 lines) Patch
M src/debug.cc View 1 6 chunks +76 lines, -5 lines 0 comments Download
M test/mjsunit/debug-step-stub-callfunction.js View 2 chunks +2 lines, -2 lines 0 comments Download
A test/mjsunit/debug-stepin-call-function-stub.js View 1 chunk +115 lines, -0 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
yurys
11 years, 4 months ago (2009-07-31 15:17:05 UTC) #1
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/159703/diff/1/4 File src/debug.cc (right): http://codereview.chromium.org/159703/diff/1/4#newcode321 Line 321: // construct call. Please update this comment ...
11 years, 4 months ago (2009-08-03 07:36:19 UTC) #2
yurys
11 years, 4 months ago (2009-08-24 15:15:05 UTC) #3
http://codereview.chromium.org/159703/diff/1/4
File src/debug.cc (right):

http://codereview.chromium.org/159703/diff/1/4#newcode321
Line 321: // construct call.
On 2009/08/03 07:36:19, Søren Gjesse wrote:
> Please update this comment to reflect the CallFunction stub as well.

Done.

http://codereview.chromium.org/159703/diff/1/4#newcode324
Line 324: if (code->is_call_stub()) {
On 2009/08/03 07:36:19, Søren Gjesse wrote:
> Please add a Handle here to avoid unexpected GC issues when changing the code
(I
> know it is not your code).

Done.

http://codereview.chromium.org/159703/diff/1/4#newcode339
Line 339: if (IsDebugBreak()) {
On 2009/08/03 07:36:19, Søren Gjesse wrote:
> And here.

Done.

http://codereview.chromium.org/159703/diff/1/4#newcode1169
Line 1169: Object* obj =
Heap::code_stubs()->SlowReverseLookup(*call_function_stub);
On 2009/08/03 07:36:19, Søren Gjesse wrote:
> Please use a Handle here even though not strictly required.

Done.

http://codereview.chromium.org/159703/diff/1/4#newcode1190
Line 1190: JSFunction* js_function = JSFunction::cast(fun);
On 2009/08/03 07:36:19, Søren Gjesse wrote:
> And here.

Done.

Powered by Google App Engine
This is Rietveld 408576698