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:
parent
291147e2f1
commit
2fd187d0cd
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user