Debugger: use a Map to cache mirrors.
authoryangguo <yangguo@chromium.org>
Thu, 13 Aug 2015 10:49:04 +0000 (03:49 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 13 Aug 2015 10:49:20 +0000 (10:49 +0000)
commit890b1dfca84d9dfecdcfc56517ef541076c6eb1d
treed09b4dbabb572cdbf2f11b2db9dc81f9937cdd7f
parentf9a3e6a6aacd53f13a1571a55bbb066b223295ff
Debugger: use a Map to cache mirrors.

This makes mirror cache lookup O(1) instead of O(n).
The downside is that the lookup via handle is O(n). This
is fine because handles are only used in the JSON api,
which is not used by Chrome and on death row.

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

Cr-Commit-Position: refs/heads/master@{#30150}
src/bootstrapper.cc
src/debug/mirrors.js