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

Issue 8068026: Begin to handlify the stub cache. (Closed)

Created:
9 years, 2 months ago by Kevin Millikin (Chromium)
Modified:
9 years, 2 months ago
CC:
v8-dev
Visibility:
Public.

Description

Begin to handlify the stub cache. Handlify the first layer of the stub cache functions for looking up LoadICs, and make them able to perform GC on allocation failures. There was an implicit handle scope created in by the stub compilers in the cache of a stub cache lookup miss. This is replaced by an explicit handle scope so that it can be moved earlier in the case of LoadICs.

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -262 lines) Patch
M src/ic.h View 1 chunk +4 lines, -6 lines 0 comments Download
M src/ic.cc View 7 chunks +44 lines, -57 lines 3 comments Download
M src/runtime.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/stub-cache.h View 10 chunks +39 lines, -41 lines 0 comments Download
M src/stub-cache.cc View 28 chunks +267 lines, -157 lines 3 comments Download

Messages

Total messages: 5 (0 generated)
Kevin Millikin (Chromium)
Request for comments. Consider this a proof of concept to see if we can convert ...
9 years, 2 months ago (2011-09-29 09:21:32 UTC) #1
danno
I agree that having the code Handle-based would cause less grief overall, and handle-ifying the ...
9 years, 2 months ago (2011-09-29 11:00:05 UTC) #2
fschneider
+1 for handlifying the stub compiler code. Maybe we can just do this in one ...
9 years, 2 months ago (2011-10-12 13:11:18 UTC) #3
ulan
http://codereview.chromium.org/8068026/diff/1/src/ic.cc File src/ic.cc (right): http://codereview.chromium.org/8068026/diff/1/src/ic.cc#newcode947 src/ic.cc:947: UpdateCaches(&lookup, state, object, name); Can lookup.holder() become stale if ...
9 years, 2 months ago (2011-10-13 17:36:09 UTC) #4
fschneider
9 years, 2 months ago (2011-10-14 07:42:11 UTC) #5
http://codereview.chromium.org/8068026/diff/1/src/ic.cc
File src/ic.cc (right):

http://codereview.chromium.org/8068026/diff/1/src/ic.cc#newcode947
src/ic.cc:947: UpdateCaches(&lookup, state, object, name);
On 2011/10/13 17:36:10, ulan wrote:
> Can lookup.holder() become stale if this call causes GC?
> 
> I've been getting flaky craches until I handlified it.

I think you're right, because LookupResult has a raw pointer to the object and
it is used after this call (e.g. passed into GetProperty)

Powered by Google App Engine
This is Rietveld 408576698