ByteArrayProvider increments free-pointer correctly.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@914 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
lrn@chromium.org 2008-12-04 08:33:32 +00:00
parent 291147e2f1
commit 2fd187d0cd

View File

@ -64,7 +64,7 @@ ArraySlice ByteArrayProvider::GetBuffer(unsigned int size,
current_byte_array_ = Factory::NewByteArray(byte_array_size_, TENURED); current_byte_array_ = Factory::NewByteArray(byte_array_size_, TENURED);
free_offset = 0; free_offset = 0;
} }
current_byte_array_free_offset_ = free_offset + size; current_byte_array_free_offset_ = free_offset + byte_size;
return ArraySlice(current_byte_array_, free_offset); return ArraySlice(current_byte_array_, free_offset);
} }