Support for precise stepping in functions compiled before debugging was started ...
authorsgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 13 Sep 2011 08:31:21 +0000 (08:31 +0000)
committersgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 13 Sep 2011 08:31:21 +0000 (08:31 +0000)
commit81df4a42e47e5ab4a1f6a0f177ee72ed8a6b6502
tree102fcb23098766e13150be64d624484d514575d8
parentf6887702fbd88c4abf3ee3707fe3964da09c099d
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=

Review URL: http://codereview.chromium.org//7839030

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9250 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/debug.cc
src/debug.h
src/full-codegen.cc
src/list-inl.h
src/list.h
src/objects-inl.h
src/objects.h
src/runtime.cc
test/mjsunit/debug-step-2.js [new file with mode: 0644]