Lines Matching defs:WasmValue
73 // Macro for defining WasmValue methods for different types.
94 class WasmValue {
96 WasmValue() : type_(kWasmVoid), bit_pattern_{} {}
99 explicit WasmValue(ctype v) : type_(localtype), bit_pattern_{} { \
101 "size too big for WasmValue"); \
117 WasmValue(byte* raw_bytes, ValueType type) : type_(type), bit_pattern_{} {
122 WasmValue(Handle<Object> ref, ValueType type) : type_(type), bit_pattern_{} {
139 bool operator==(const WasmValue& other) const {
155 WasmValue Packed(ValueType packed_type) const {
158 return WasmValue(static_cast<int8_t>(to_i32()));
162 return WasmValue(static_cast<int16_t>(to_i32()));
173 static WasmValue ForUintPtr(uintptr_t value) {
176 return WasmValue{type{value}};
219 inline ctype WasmValue::to_unchecked() const { \
223 inline ctype WasmValue::to() const { \