闲来无事,看看了V8的代码,在V8.cc中有这么一段:
// Use a union type to avoid type-aliasing optimizations in GCC. typedef union { double double_value; uint64_t uint64_t_value; } double_int_union; Object* V8::FillHeapNumberWithRandom(Object* heap_number, Isolate* isolate) { uint64_t random_bits = Random(isolate); // Ma