Support stepping out for recursive functions.Simply flooding JS function from the...
authoryurys@chromium.org <yurys@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 9 Sep 2009 08:40:59 +0000 (08:40 +0000)
committeryurys@chromium.org <yurys@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 9 Sep 2009 08:40:59 +0000 (08:40 +0000)
commitbbc3c97c2cc5040384be8c2ebacc72a2fc25d434
tree7f5819b261e38bd78806d75889cf3d215f1e0c6f
parente6b926f19d7d148bd6c359169e940dc8e5822547
Support stepping out for recursive functions.Simply flooding JS function from the calling stack frame with one shot breakpoints is not enough to support step out action in all cases since the function on top of the stack may be turn recursive and we may end up flooding itself. To overcome this a pointer to the stack frame where the debugger should be invoked after stepping out is strored in the debugger.Chromium bug:code.google.com/p/chromium/issues/detail?id=17967
Review URL: http://codereview.chromium.org/200041

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2850 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/debug.cc
src/debug.h
src/runtime.cc
test/mjsunit/debug-stepout-recursive-function.js [new file with mode: 0644]
test/mjsunit/debug-stepout-to-builtin.js [new file with mode: 0644]
test/mjsunit/mjsunit.status