Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1030)

Issue 8892002: Filter out maps from different global context when collecting type feedback. (Closed)

Created:
9 years ago by fschneider
Modified:
9 years ago
CC:
v8-dev
Visibility:
Public.

Description

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 Committed: http://code.google.com/p/v8/source/detail?r=10257

Patch Set 1 #

Patch Set 2 : Fixed bug: check for builtins object #

Patch Set 3 : fixed indentation #

Total comments: 2

Patch Set 4 : Added cctest + filter out foreign JSFunction objects too #

Patch Set 5 : Traverse prototype chain to refine filtering of maps #

Patch Set 6 : Fixed bug with non-object prototypes #

Total comments: 2

Patch Set 7 : addressed latest comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -7 lines) Patch
M src/stub-cache.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M src/stub-cache.cc View 1 2 3 4 5 6 3 chunks +6 lines, -3 lines 0 comments Download
M src/type-info.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M src/type-info.cc View 1 2 3 4 5 6 3 chunks +44 lines, -3 lines 0 comments Download
M test/cctest/test-heap.cc View 1 2 3 4 1 chunk +80 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
fschneider
9 years ago (2011-12-12 13:17:45 UTC) #1
Vyacheslav Egorov (Chromium)
LGTM with comments addressed Please also add cctest that ensures that we are not leaking ...
9 years ago (2011-12-12 13:34:44 UTC) #2
Vyacheslav Egorov (Chromium)
still LGTM http://codereview.chromium.org/8892002/diff/22001/src/type-info.cc File src/type-info.cc (right): http://codereview.chromium.org/8892002/diff/22001/src/type-info.cc#newcode452 src/type-info.cc:452: bool TypeFeedbackOracle::InSameContext(Map* map, I would call it ...
9 years ago (2011-12-14 13:34:46 UTC) #3
fschneider
9 years ago (2011-12-14 14:01:42 UTC) #4
http://codereview.chromium.org/8892002/diff/22001/src/type-info.cc
File src/type-info.cc (right):

http://codereview.chromium.org/8892002/diff/22001/src/type-info.cc#newcode452
src/type-info.cc:452: bool TypeFeedbackOracle::InSameContext(Map* map,
On 2011/12/14 13:34:46, Vyacheslav Egorov wrote:
> I would call it IsLikelyToRetainOtherContext.
> 
> It's very approximate (and can be easily fooled).  

Done.

Powered by Google App Engine
This is Rietveld 408576698