Debugger: use list to find shared function info in a script.
authoryangguo <yangguo@chromium.org>
Thu, 25 Jun 2015 14:27:36 +0000 (07:27 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 25 Jun 2015 14:27:43 +0000 (14:27 +0000)
commitcfe89a71a332ef9ed481c8210bc3ad6d2822034b
treede75867f4bb305f711cddee2893d81b64e677c7b
parent4eed4970fdb89fc8d3ffff1184350b345325d965
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

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

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