https://codereview.chromium.org/325553002/diff/1/src/d8.cc
File src/d8.cc (right):

https://codereview.chromium.org/325553002/diff/1/src/d8.cc#newcode292
src/d8.cc:292: // performance.now() returns a time stamp as double,
measured in milliseconds.
Please adjust the comment, i.e. say what it returns in predictable mode.

https://codereview.chromium.org/325553002/diff/1/src/flag-definitions.h
File src/flag-definitions.h (right):

https://codereview.chromium.org/325553002/diff/1/src/flag-definitions.h#newcode877
src/flag-definitions.h:877: DEFINE_bool(allocations_digest, false,
Do we need both, verify_predictable and allocations_digest? It seems
like that unifying both modes in verify_predictable is good enough?

https://codereview.chromium.org/325553002/diff/1/src/heap.h
File src/heap.h (right):

https://codereview.chromium.org/325553002/diff/1/src/heap.h#newcode979
src/heap.h:979: // Number of allocations done so far.
"runtime allocations"

https://codereview.chromium.org/325553002/diff/1/src/heap.h#newcode1563
src/heap.h:1563: uint32_t allocations_count_;  // how many allocations
happened
Style guide: Each comment should start in a new line, upper case, ending
with a ".".  Since you are here you can also change ms_count_ and
gc_count_.

https://codereview.chromium.org/325553002/diff/1/src/spaces-inl.h
File src/spaces-inl.h (right):

https://codereview.chromium.org/325553002/diff/1/src/spaces-inl.h#newcode274
src/spaces-inl.h:274: heap()->OnAllocationEvent(object, size_in_bytes);
See my comment about  Heap::AllocateRaw.

https://codereview.chromium.org/325553002/diff/1/src/spaces-inl.h#newcode299
src/spaces-inl.h:299: heap()->OnAllocationEvent(obj, size_in_bytes);
See my comment about  Heap::AllocateRaw.

https://codereview.chromium.org/325553002/diff/1/src/spaces.cc
File src/spaces.cc (right):

https://codereview.chromium.org/325553002/diff/1/src/spaces.cc#newcode2901
src/spaces.cc:2901: heap()->OnAllocationEvent(object, object_size);
The event call should be in Heap::AllocateRaw. There is actually already
a call to profiler->AllocationEvent. This is catching the same event for
a different purpose. I guess we can refactor there.

https://codereview.chromium.org/325553002/

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to