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

Issue 8831: Remove unused maps during marking garbage collections. (Closed)

Created:
12 years, 1 month ago by William Hesse
Modified:
9 years, 7 months ago
Reviewers:
Kasper Lund
CC:
v8-dev
Visibility:
Public.

Description

Remove unused maps during marking garbage collections. Committed: http://code.google.com/p/v8/source/detail?r=637

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -21 lines) Patch
M src/flag-definitions.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/mark-compact.h View 1 2 2 chunks +18 lines, -0 lines 0 comments Download
M src/mark-compact.cc View 1 2 7 chunks +164 lines, -13 lines 0 comments Download
M src/objects.h View 1 2 3 chunks +17 lines, -2 lines 0 comments Download
M src/objects.cc View 1 2 2 chunks +62 lines, -1 line 0 comments Download
M src/objects-inl.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/property.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M src/runtime.cc View 1 2 1 chunk +12 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
William Hesse
Only change since last time is to add bounds of instance_type() >= FIRST_JS_OBJECT_TYPE and instance_type() ...
12 years, 1 month ago (2008-10-29 08:28:15 UTC) #1
Kasper Lund
Mostly a rubber stamp LGTM. In the future, it would be great if you could ...
12 years, 1 month ago (2008-10-29 09:58:21 UTC) #2
William Hesse
12 years, 1 month ago (2008-10-29 10:15:19 UTC) #3
OK, changes made.  It is a separate patch list because the reversions, merges,
and false starts put me in a different checked-out copy, but I'll try harder to
stay in the same copy in the future.

http://codereview.chromium.org/8831/diff/209/16
File src/mark-compact.cc (right):

http://codereview.chromium.org/8831/diff/209/16#newcode332
Line 332: // ASSERT(!obj->IsMap());  // Some maps are processed here.
On 2008/10/29 09:58:21, Kasper Lund wrote:
> We shouldn't need to carry code in comments. I guess the assertion doesn't
hold
> anymore?

Removed

http://codereview.chromium.org/8831/diff/209/14
File src/objects.h (right):

http://codereview.chromium.org/8831/diff/209/14#newcode1050
Line 1050: static inline Object* &RawField(HeapObject* obj, int offset);
On 2008/10/29 09:58:21, Kasper Lund wrote:
> This looks nasty with returning a reference. Can't you rewrite this with a
> RawFieldGet and RawFieldSet?

It looks beautiful where it is used.  It could be an Object**, but that requires
a dereference where
it is used.  But I'll change it to **.

Powered by Google App Engine
This is Rietveld 408576698