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

Issue 149324: * Move almost all roots into an array ready for use by a constant-pool... (Closed)

Created:
11 years, 5 months ago by Erik Corry
Modified:
9 years, 7 months ago
Reviewers:
Kasper Lund
CC:
v8-dev
Visibility:
Public.

Description

* Move almost all roots into an array ready for use by a constant-pool register on ARM. * Make some compile-time loops into run-time loops for compactness. Committed: http://code.google.com/p/v8/source/detail?r=2398

Patch Set 1 #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+473 lines, -312 lines) Patch
M src/factory.h View 2 chunks +10 lines, -3 lines 0 comments Download
M src/heap.h View 4 chunks +152 lines, -109 lines 6 comments Download
M src/heap.cc View 18 chunks +131 lines, -130 lines 2 comments Download
M src/heap-inl.h View 1 chunk +1 line, -1 line 0 comments Download
M src/mark-compact.cc View 6 chunks +11 lines, -7 lines 4 comments Download
M src/objects.h View 1 chunk +153 lines, -48 lines 0 comments Download
M src/objects.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/objects-inl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/spaces.cc View 5 chunks +9 lines, -9 lines 0 comments Download
M src/stub-cache.cc View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Erik Corry
11 years, 5 months ago (2009-07-08 12:19:53 UTC) #1
Kasper Lund
LGTM, but maybe you should get Lars' feedback too? http://codereview.chromium.org/149324/diff/1/2 File src/heap.cc (right): http://codereview.chromium.org/149324/diff/1/2#newcode1063 Line ...
11 years, 5 months ago (2009-07-08 12:42:37 UTC) #2
Erik Corry
11 years, 5 months ago (2009-07-08 14:19:50 UTC) #3
http://codereview.chromium.org/149324/diff/1/2
File src/heap.cc (right):

http://codereview.chromium.org/149324/diff/1/2#newcode1063
Line 1063: roots_[kMetaMapRootIndex] = new_meta_map;
On 2009/07/08 12:42:37, Kasper Lund wrote:
> How about automagically generating a private setter for all these?

Done.

http://codereview.chromium.org/149324/diff/1/11
File src/heap.h (right):

http://codereview.chromium.org/149324/diff/1/11#newcode38
Line 38: V(Map, meta_map, MetaMap)                                              
     \
On 2009/07/08 12:42:37, Kasper Lund wrote:
> Is it really worth giving everything two names to comply with the style guide
> for the index constant? I think I'd prefer just having one name...

I think I'll stick with both names because the camel case names will be natural
to use in the ARM code generator.

http://codereview.chromium.org/149324/diff/1/11#newcode137
Line 137: V(Object, symbol_table, SymbolTable)
On 2009/07/08 12:42:37, Kasper Lund wrote:
> Why isn't this of type SymbolTable*?

It is now.

http://codereview.chromium.org/149324/diff/1/11#newcode918
Line 918: kRootListLength};
On 2009/07/08 12:42:37, Kasper Lund wrote:
> Put }; on a new line.

OK

http://codereview.chromium.org/149324/diff/1/10
File src/mark-compact.cc (right):

http://codereview.chromium.org/149324/diff/1/10#newcode227
Line 227: if (reinterpret_cast<String*>(second) !=
On 2009/07/08 12:42:37, Kasper Lund wrote:
> Why is the reinterpret_cast necessary here? It's really an Object* identity
> check, right? It should fit nicely on a single line.

It wasn't necessary.

Powered by Google App Engine
This is Rietveld 408576698