I have addressed all comments,
Major changes include:
1- removing trace-event-common.h and put it in DEPS instead
2- removing "src/v8.h" from trace-event.h, and add trace-event.cc to be
used to
GetCurrentPlatform
3- Filing a bug for the local static variable and including it in the code
as a
TODO
4- Address styling comments.
https://codereview.chromium.org/988893003/diff/280001/include/v8-platform.h
File include/v8-platform.h (right):
https://codereview.chromium.org/988893003/diff/280001/include/v8-platform.h#newcode126
include/v8-platform.h:126: const char* name, uint64_t handle) = 0;
On 2015/10/07 at 18:31:54, noordhuis wrote:
These really need elucidating comments, either inline or as links to
online or in-repo documentation.
Style issue: I think V8 prefers snake_case over camelCase, i.e.,
category_enabled_flag instead of categoryEnabledFlag.
Done
https://codereview.chromium.org/988893003/diff/280001/src/libplatform/default-platform.cc
File src/libplatform/default-platform.cc (right):
https://codereview.chromium.org/988893003/diff/280001/src/libplatform/default-platform.cc#newcode190
src/libplatform/default-platform.cc:190: static const char* dummy =
"dummy";
On 2015/10/07 18:31:54, noordhuis wrote:
`static const char[] dummy = ...`?
Done.
https://codereview.chromium.org/988893003/diff/280001/src/log-inl.h
File src/log-inl.h (right):
https://codereview.chromium.org/988893003/diff/280001/src/log-inl.h#newcode42
src/log-inl.h:42: TRACE_EVENT_END_WITH_CONTEXT_ID0("v8", name,
(uint64_t)isolate);
On 2015/10/07 18:31:54, noordhuis wrote:
Style: use static_cast/reinterpret_cast here.
Should this block be hoisted to one of the outer if statements? It
currently
isn't reached when logging is disabled.
Done.
https://codereview.chromium.org/988893003/diff/280001/test/cctest/test-trace-event.cc
File test/cctest/test-trace-event.cc (right):
https://codereview.chromium.org/988893003/diff/280001/test/cctest/test-trace-event.cc#newcode29
test/cctest/test-trace-event.cc:29: int numArgs;
On 2015/10/07 18:31:54, noordhuis wrote:
Style nit: mildly inconsistent mix of camelCase and snake_case.
Done.
https://codereview.chromium.org/988893003/
--
--
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.