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

Issue 7204003: Refactor the way we collect the information for associating type-related infos (Closed)

Created:
9 years, 6 months ago by Sven Panne
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Refactor the way we collect the information for associating type-related infos with AST IDs. Previously 3 different places had to match in how they handle a given case, now we are down to 2, with an even simpler logic. The downside is that due to this simpler logic the allocated dictionary could be larger than before, but test have shown that this happens *very* rarely, because its capacity is rounded to the next power of 2, anyway. Furthermore, the oracle doesn't live long enough that we should really care. The whole oracle is probably still a bit too tricky in its details, but this is at least a step into the right direction. Committed: http://code.google.com/p/v8/source/detail?r=8330

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -90 lines) Patch
M src/type-info.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -5 lines 0 comments Download
M src/type-info.cc View 1 2 3 4 5 6 7 2 chunks +90 lines, -85 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Sven Panne
9 years, 6 months ago (2011-06-17 15:02:15 UTC) #1
Mads Ager (chromium)
LGTM if the extra size and extra traversal (you are also relocating the extra entries) ...
9 years, 6 months ago (2011-06-20 08:57:38 UTC) #2
Søren Thygesen Gjesse
LGTM
9 years, 6 months ago (2011-06-20 09:24:21 UTC) #3
Sven Panne
http://codereview.chromium.org/7204003/diff/1/src/type-info.cc File src/type-info.cc (right): http://codereview.chromium.org/7204003/diff/1/src/type-info.cc#newcode421 src/type-info.cc:421: byte* old_start = (*code)->instruction_start(); On 2011/06/20 08:57:38, Mads Ager ...
9 years, 6 months ago (2011-06-20 10:16:19 UTC) #4
fschneider
drive-by comment: http://codereview.chromium.org/7204003/diff/5/src/type-info.cc File src/type-info.cc (right): http://codereview.chromium.org/7204003/diff/5/src/type-info.cc#newcode400 src/type-info.cc:400: List<RelocInfo> infos(16); Maybe use a ZoneList here ...
9 years, 6 months ago (2011-06-20 10:28:54 UTC) #5
Sven Panne
On 2011/06/20 10:28:54, fschneider wrote: > drive-by comment: > > http://codereview.chromium.org/7204003/diff/5/src/type-info.cc > File src/type-info.cc (right): ...
9 years, 6 months ago (2011-06-20 11:41:37 UTC) #6
Mads Ager (chromium)
On 2011/06/20 11:41:37, Sven wrote: > On 2011/06/20 10:28:54, fschneider wrote: > > drive-by comment: ...
9 years, 6 months ago (2011-06-20 11:57:50 UTC) #7
Sven Panne
9 years, 6 months ago (2011-06-20 12:13:18 UTC) #8
On 2011/06/20 11:57:50, Mads Ager wrote:
> On 2011/06/20 11:41:37, Sven wrote:
> > On 2011/06/20 10:28:54, fschneider wrote:
> > > drive-by comment:
> > > 
> > > http://codereview.chromium.org/7204003/diff/5/src/type-info.cc
> > > File src/type-info.cc (right):
> > > 
> > > http://codereview.chromium.org/7204003/diff/5/src/type-info.cc#newcode400
> > > src/type-info.cc:400: List<RelocInfo> infos(16);
> > > Maybe use a ZoneList here instead because List<> are malloc'ed.
> > 
> > The list of RelocInfos is malloc'ed for a very good reason: The
RelocIterator
> > and the RelocInfos are not GC-safe. If we really want to get rid of the
> mallocs,
> > we would have to do another pass over the relocation infos to find out how
big
> > the ZoneList has to be. I am not sure if we really want that (comments?), so
I
> > propose to leave this out of the current change.
> 
> Zone memory is not in the heap either. It is just managed by us explicitly and
> everything is freed up in one go at the end of a zone scope. So I think a
> ZoneList would be fine here.

OK, I didn't know that, so I'll simply use ZoneList instead of List...

Powered by Google App Engine
This is Rietveld 408576698