Fix leak in debug mirror cache.
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 26 May 2014 07:05:56 +0000 (07:05 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 26 May 2014 07:05:56 +0000 (07:05 +0000)
commit32f433c12e5af0bc2c23d8cc9cdefaff990dc469
tree902d188df617277f36dc7e3eba2af7dba72db62d
parentcdcee29ef755940ebd8bee2c5f6a0eaed629ff84
Fix leak in debug mirror cache.

When fetching loaded scripts, mirror objects are created and cached.
If the cache is not cleared, it holds script objects alive.

This also fixes a minor issue with script unloading.

R=ulan@chromium.org
BUG=376534
LOG=N

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21477 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/debug-debugger.js
src/debug.cc
test/mjsunit/debug-scripts-request.js
test/mjsunit/regress/regress-debug-context-load.js [new file with mode: 0644]
tools/generate-runtime-tests.py