Commit 2fd187d0 authored by lrn@chromium.org's avatar lrn@chromium.org

ByteArrayProvider increments free-pointer correctly.


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@914 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 291147e2
......@@ -64,7 +64,7 @@ ArraySlice ByteArrayProvider::GetBuffer(unsigned int size,
current_byte_array_ = Factory::NewByteArray(byte_array_size_, TENURED);
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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment