Support stepping in functions called using CallFunction stub. When Debug::PrepareStep...
authoryurys@chromium.org <yurys@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 7 Sep 2009 07:20:05 +0000 (07:20 +0000)
committeryurys@chromium.org <yurys@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 7 Sep 2009 07:20:05 +0000 (07:20 +0000)
commitab54e95377943a4e1c0c2e14829f7537801d88c7
treefb3cce4c8ea7199fd303784fdec7ef7355731a4e
parentf1f61121ac4e9a2da4391632bd1f0d3910150f5b
Support 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.

BreakLocationIterator changed to treat 'debugger;' statements as a possible break location. Since 'debugger;' statement should always invoke debugger it is hanled in a special way.

Related Chromium issue:
http://code.google.com/p/chromium/issues/detail?id=17978
Review URL: http://codereview.chromium.org/195015

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2830 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/debug.cc
src/debug.h
test/mjsunit/debug-step-stub-callfunction.js
test/mjsunit/debug-stepin-call-function-stub.js [new file with mode: 0644]
test/mjsunit/mjsunit.status