v8/include/libplatform
Milad Farazmand f83b1b3beb [tracing] Fix endianness problem when using booleans
All the data types defined under ArgValue are 8 bytes
expect "bool as_bool". When casting to <uint64_t> under
"tracing/trace-event.h", boolean gets placed on the lower
byte of the memory on LE, and on the higher byte on BE machines.
When using a "Union" to read back the value as a boolean, only
the lower byte of the memory location is read which makes it
fine on LE machines, however the value will not be present on BE
machines.

Using an 8 byte data type as boolean will assure the entire filed
is read instead of only the lower byte.

Change-Id: I0740b9c019588c963a4c7878af60c6df04827141
TBR: petermarshall@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1896835
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: Junliang Yan <jyan@ca.ibm.com>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64859}
2019-11-08 13:35:41 +00:00
..
DEPS Turn libplatform into a component 2016-10-10 08:52:06 +00:00
libplatform-export.h Turn libplatform into a component 2016-10-10 08:52:06 +00:00
libplatform.h [api] Use C++14 [[deprecated]] attribute 2019-10-09 07:31:28 +00:00
v8-tracing.h [tracing] Fix endianness problem when using booleans 2019-11-08 13:35:41 +00:00