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

Issue 7971009: Add kHeaderSize constant to SeqString. (Closed)

Created:
9 years, 3 months ago by Michael Starzinger
Modified:
9 years, 3 months ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Add kHeaderSize constant to SeqString. This prevents potential misuse of SeqString::kHeaderSize as in the case of live byte counting in incremental marking stub. All stubs picked up the undefined size constant SeqString::kHeaderSize, thus the computed size of all strings was off by two pointers slots. R=lrn@chromium.org BUG=v8:1672 TEST=mjsunit/object-seal.js,... Committed: http://code.google.com/p/v8/source/detail?r=9349

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comments by Lasse Reichstein. #

Total comments: 2

Patch Set 3 : Addressed comments by Lasse Reichstein. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -25 lines) Patch
M src/arm/code-stubs-arm.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/mips/code-stubs-mips.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/objects.h View 1 2 3 chunks +3 lines, -8 lines 0 comments Download
M src/runtime.cc View 1 4 chunks +5 lines, -7 lines 0 comments Download
M src/spaces.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Michael Starzinger
PTAL.
9 years, 3 months ago (2011-09-20 07:42:57 UTC) #1
Lasse Reichstein
I don't see any change to the incremental marking stub? (I'm also working on fixes ...
9 years, 3 months ago (2011-09-20 07:54:30 UTC) #2
Lasse Reichstein
http://codereview.chromium.org/7971009/diff/1/src/objects.h File src/objects.h (right): http://codereview.chromium.org/7971009/diff/1/src/objects.h#newcode6132 src/objects.h:6132: static const int kAlignedSize = POINTER_SIZE_ALIGN(kHeaderSize); I can see ...
9 years, 3 months ago (2011-09-20 07:57:11 UTC) #3
Michael Starzinger
Added new patch set. http://codereview.chromium.org/7971009/diff/1/src/objects.h File src/objects.h (right): http://codereview.chromium.org/7971009/diff/1/src/objects.h#newcode6132 src/objects.h:6132: static const int kAlignedSize = ...
9 years, 3 months ago (2011-09-20 08:19:08 UTC) #4
Lasse Reichstein
LGTM, but the description still talks about a change to the incremental marking stub, which ...
9 years, 3 months ago (2011-09-20 08:42:01 UTC) #5
Michael Starzinger
9 years, 3 months ago (2011-09-20 16:07:39 UTC) #6
Added new patch set. Updated the description to better reflect what this CL
changes. Enabled the rest of the test cases associated with the given issue.

http://codereview.chromium.org/7971009/diff/3004/src/objects.h
File src/objects.h (right):

http://codereview.chromium.org/7971009/diff/3004/src/objects.h#newcode6132
src/objects.h:6132: static const int kAlignedSize =
POINTER_SIZE_ALIGN(kHeaderSize);
On 2011/09/20 08:42:01, Lasse Reichstein wrote:
> Do we ever use kAlignedSize any more?
> Since we made the string length a Smi, it's always the same as kHeaderSize
(even
> on x64, where previously it was kIntSize less), so we could remove it now.

Done.

Powered by Google App Engine
This is Rietveld 408576698