Debugger: use list to find shared function info in a script.
authoryangguo <yangguo@chromium.org>
Fri, 26 Jun 2015 13:53:26 +0000 (06:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 26 Jun 2015 13:53:33 +0000 (13:53 +0000)
commit058deb27132c97c62a99826455abc2bc87fae1b7
tree2cc87137d318fcd3256a7099ddb7abb2b217c788
parent8c72792b6dcbc8b223347d8256ffedceef045500
Debugger: use list to find shared function info in a script.

Now that we keep tabs on shared function infos from a script, we can speed up finding shared function infos for debugging. However, in case we have to compile a function that cannot be lazily compiled without context, we fall back to the slow heap iteration.

R=mstarzinger@chromium.org
BUG=v8:4132,v8:4052
LOG=N

Committed: https://crrev.com/cfe89a71a332ef9ed481c8210bc3ad6d2822034b
Cr-Commit-Position: refs/heads/master@{#29296}

Review URL: https://codereview.chromium.org/1206573004

Cr-Commit-Position: refs/heads/master@{#29327}
src/compiler.cc
src/debug.cc
src/debug.h