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

Issue 7839030: Support for precise stepping in functions compiled before debugging was started (step 1) (Closed)

Created:
9 years, 3 months ago by Søren Thygesen Gjesse
Modified:
9 years, 3 months ago
Reviewers:
Sven Panne
CC:
v8-dev
Visibility:
Public.

Description

Support for precise stepping in functions compiled before debugging was started (step 1) This change will ensure that all non-optimized code will be compiled with debug break slots when debugging is initiated. This is handled by scanning the heap for non-optimized functions without debug break slots and setting their code to be lazy recomplied. When the lazy recompilation happens the code will ge generated with debug break slots (if debugging is still active at that point in time). R=svenpanne@chromium.org Currently this is only implemented for functions which do not have activations on the stack. BUG= TEST= Committed: http://code.google.com/p/v8/source/detail?r=9250

Patch Set 1 #

Patch Set 2 : Fixed presubmit errors #

Total comments: 8

Patch Set 3 : Addressed review comments #

Patch Set 4 : Rebase to r9245 #

Patch Set 5 : Updated to use BitFields and fixed const presubmit warning #

Patch Set 6 : Removed #if 0 / #endif #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -12 lines) Patch
M src/debug.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/debug.cc View 1 2 7 chunks +62 lines, -7 lines 0 comments Download
M src/full-codegen.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/list.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M src/list-inl.h View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 2 chunks +12 lines, -3 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 1 chunk +20 lines, -2 lines 0 comments Download
M src/runtime.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
A test/mjsunit/debug-step-2.js View 1 chunk +89 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Søren Thygesen Gjesse
9 years, 3 months ago (2011-09-07 14:50:49 UTC) #1
Sven Panne
http://codereview.chromium.org/7839030/diff/2001/src/debug.cc File src/debug.cc (right): http://codereview.chromium.org/7839030/diff/2001/src/debug.cc#newcode1686 src/debug.cc:1686: bool SortedListContains(List<JSFunction*>* functions, JSFunction* function) { Perhaps this should ...
9 years, 3 months ago (2011-09-08 08:07:59 UTC) #2
Søren Thygesen Gjesse
PTAL http://codereview.chromium.org/7839030/diff/2001/src/debug.cc File src/debug.cc (right): http://codereview.chromium.org/7839030/diff/2001/src/debug.cc#newcode1686 src/debug.cc:1686: bool SortedListContains(List<JSFunction*>* functions, JSFunction* function) { On 2011/09/08 ...
9 years, 3 months ago (2011-09-13 07:31:18 UTC) #3
Sven Panne
http://codereview.chromium.org/7839030/diff/2001/src/objects-inl.h File src/objects-inl.h (right): http://codereview.chromium.org/7839030/diff/2001/src/objects-inl.h#newcode2950 src/objects-inl.h:2950: kFullCodeFlagsHasDeoptimizationSupportShift) == 1; On 2011/09/13 07:31:19, Søren Gjesse wrote: ...
9 years, 3 months ago (2011-09-13 07:51:51 UTC) #4
Søren Thygesen Gjesse
http://codereview.chromium.org/7839030/diff/2001/src/objects-inl.h File src/objects-inl.h (right): http://codereview.chromium.org/7839030/diff/2001/src/objects-inl.h#newcode2950 src/objects-inl.h:2950: kFullCodeFlagsHasDeoptimizationSupportShift) == 1; On 2011/09/13 07:51:51, Sven wrote: > ...
9 years, 3 months ago (2011-09-13 08:06:29 UTC) #5
Sven Panne
9 years, 3 months ago (2011-09-13 08:11:41 UTC) #6
lgtm

Powered by Google App Engine
This is Rietveld 408576698