Add kHeaderSize constant to SeqString.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 20 Sep 2011 16:33:03 +0000 (16:33 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 20 Sep 2011 16:33:03 +0000 (16:33 +0000)
commit3fabe323f21edec80be321cc2e12eca3f27f20e8
tree496f89bde94613536643a098fb1c6796522bf3e7
parentbffbcefffbda8a9dbc64fea23cba104cccb54ecd
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,...

Review URL: http://codereview.chromium.org/7971009

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9349 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/arm/code-stubs-arm.cc
src/mips/code-stubs-mips.cc
src/objects.h
src/runtime.cc
src/spaces.cc
test/mjsunit/mjsunit.status