Fix FindSharedFunctionInfoInScript to not optimize.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 3 Sep 2012 14:23:00 +0000 (14:23 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 3 Sep 2012 14:23:00 +0000 (14:23 +0000)
commit74aa15bfa0dba720e6af92434bdd45e23efb0159
tree1bf656d389c97b444f30ee41e3a0fabaaafc6ef4
parent996c84fb51aea568400fa0a79a840c0361c069c2
Fix FindSharedFunctionInfoInScript to not optimize.

This prevents a corner case in FindSharedFunctionInfoInScript that would cause
functions to be optimized because an intermittent GC would clear the flag
indicating whether breakpoints are present. Above method was also moved into the
Debug class because it is only used by the debugger.

R=verwaest@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10914065

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12428 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/compiler.cc
src/debug.cc
src/debug.h
src/runtime.cc
src/runtime.h
test/cctest/test-func-name-inference.cc