Filter out maps from different global context when collecting type feedback.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 14 Dec 2011 14:01:54 +0000 (14:01 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 14 Dec 2011 14:01:54 +0000 (14:01 +0000)
commitb6b4af9d89c84d97b7d8b747e3fea047496aca70
treee861bd49d1e00c3a46c23c5b11b230bcafc6f5e6
parent0438c7618599551b299b09d478a482905d970ff9
Filter out maps from different global context when collecting type feedback.

This avoid leaking memory because optimized code may hold on to maps
from different tabs otherwise.

BUG=v8:1823, 102895
Review URL: http://codereview.chromium.org/8892002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10257 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/stub-cache.cc
src/stub-cache.h
src/type-info.cc
src/type-info.h
test/cctest/test-heap.cc