Fix Windows compilation after r15750
BUG=None TBR=yangguo@chromium.org Review URL: https://codereview.chromium.org/19778003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15753 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
b5fa92eb0a
commit
56cc999f93
@ -35,7 +35,7 @@ namespace internal {
|
|||||||
|
|
||||||
SamplingCircularQueue::SamplingCircularQueue(size_t record_size_in_bytes,
|
SamplingCircularQueue::SamplingCircularQueue(size_t record_size_in_bytes,
|
||||||
size_t desired_chunk_size_in_bytes,
|
size_t desired_chunk_size_in_bytes,
|
||||||
int buffer_size_in_chunks)
|
unsigned buffer_size_in_chunks)
|
||||||
: record_size_(record_size_in_bytes / sizeof(Cell)),
|
: record_size_(record_size_in_bytes / sizeof(Cell)),
|
||||||
chunk_size_in_bytes_(desired_chunk_size_in_bytes / record_size_in_bytes *
|
chunk_size_in_bytes_(desired_chunk_size_in_bytes / record_size_in_bytes *
|
||||||
record_size_in_bytes + sizeof(Cell)),
|
record_size_in_bytes + sizeof(Cell)),
|
||||||
@ -46,7 +46,7 @@ SamplingCircularQueue::SamplingCircularQueue(size_t record_size_in_bytes,
|
|||||||
ASSERT(chunk_size_ * sizeof(Cell) == chunk_size_in_bytes_);
|
ASSERT(chunk_size_ * sizeof(Cell) == chunk_size_in_bytes_);
|
||||||
ASSERT(buffer_size_in_chunks > 2);
|
ASSERT(buffer_size_in_chunks > 2);
|
||||||
// Mark all chunks as clear.
|
// Mark all chunks as clear.
|
||||||
for (int i = 0; i < buffer_size_; i += chunk_size_) {
|
for (size_t i = 0; i < buffer_size_; i += chunk_size_) {
|
||||||
buffer_[i] = kClear;
|
buffer_[i] = kClear;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ class SamplingCircularQueue {
|
|||||||
// Executed on the application thread.
|
// Executed on the application thread.
|
||||||
SamplingCircularQueue(size_t record_size_in_bytes,
|
SamplingCircularQueue(size_t record_size_in_bytes,
|
||||||
size_t desired_chunk_size_in_bytes,
|
size_t desired_chunk_size_in_bytes,
|
||||||
int buffer_size_in_chunks);
|
unsigned buffer_size_in_chunks);
|
||||||
~SamplingCircularQueue();
|
~SamplingCircularQueue();
|
||||||
|
|
||||||
// Enqueue returns a pointer to a memory location for storing the next
|
// Enqueue returns a pointer to a memory location for storing the next
|
||||||
@ -88,10 +88,10 @@ class SamplingCircularQueue {
|
|||||||
|
|
||||||
INLINE(void WrapPositionIfNeeded(Cell** pos));
|
INLINE(void WrapPositionIfNeeded(Cell** pos));
|
||||||
|
|
||||||
const int record_size_;
|
const size_t record_size_;
|
||||||
const size_t chunk_size_in_bytes_;
|
const size_t chunk_size_in_bytes_;
|
||||||
const int chunk_size_;
|
const size_t chunk_size_;
|
||||||
const int buffer_size_;
|
const size_t buffer_size_;
|
||||||
Cell* buffer_;
|
Cell* buffer_;
|
||||||
byte* positions_;
|
byte* positions_;
|
||||||
ProducerPosition* producer_pos_;
|
ProducerPosition* producer_pos_;
|
||||||
|
Loading…
Reference in New Issue
Block a user