Home
last modified time | relevance | path

Searched refs:bit_pattern_ (Results 1 – 2 of 2) sorted by relevance

/third_party/node/deps/v8/src/utils/
Dboxed-float.h25 explicit Float32(float value) : bit_pattern_(bit_cast<uint32_t>(value)) { in Float32()
31 uint32_t get_bits() const { return bit_pattern_; } in get_bits()
33 float get_scalar() const { return bit_cast<float>(bit_pattern_); } in get_scalar()
43 uint32_t* get_bits_address() { return &bit_pattern_; } in get_bits_address()
48 uint32_t bit_pattern_ = 0;
51 : bit_pattern_(bit_pattern) {} in Float32()
65 explicit Float64(double value) : bit_pattern_(bit_cast<uint64_t>(value)) { in Float64()
71 uint64_t get_bits() const { return bit_pattern_; } in get_bits()
72 double get_scalar() const { return bit_cast<double>(bit_pattern_); } in get_scalar()
73 bool is_hole_nan() const { return bit_pattern_ == kHoleNanInt64; } in is_hole_nan()
[all …]
/third_party/node/deps/v8/src/wasm/
Dwasm-value.h96 WasmValue() : type_(kWasmVoid), bit_pattern_{} {} in WasmValue()
99 explicit WasmValue(ctype v) : type_(localtype), bit_pattern_{} { \
100 static_assert(sizeof(ctype) <= sizeof(bit_pattern_), \
102 base::WriteUnalignedValue<ctype>(reinterpret_cast<Address>(bit_pattern_), \
111 reinterpret_cast<Address>(bit_pattern_)); \
117 WasmValue(byte* raw_bytes, ValueType type) : type_(type), bit_pattern_{} { in WasmValue()
119 memcpy(bit_pattern_, raw_bytes, type.value_kind_size());
122 WasmValue(Handle<Object> ref, ValueType type) : type_(type), bit_pattern_{} { in WasmValue()
123 static_assert(sizeof(Handle<Object>) <= sizeof(bit_pattern_),
127 reinterpret_cast<Address>(bit_pattern_), ref);
[all …]