18 const uint8_t**
end)
const {
32 uint8_t*
pos = buffer;
35 uint32_t locals_count = local_decl.first;
36 ValueType locals_type = local_decl.second;
53 return static_cast<size_t>(
pos - buffer);
58 static_cast<uint32_t
>(
total + (
sig ?
sig->parameter_count() : 0));
75 (p.second.encoding_needs_shared() ? 1 : 0) +
76 (p.second.encoding_needs_exact() ? 1 : 0) +
77 (p.second.encoding_needs_heap_type()
T * AllocateArray(size_t length)
static void write_i32v(uint8_t **dest, int32_t val)
static size_t sizeof_u32v(size_t val)
static size_t sizeof_i32v(int32_t val)
static void write_u32v(uint8_t **dest, uint32_t val)
void Prepend(Zone *zone, const uint8_t **start, const uint8_t **end) const
size_t Emit(uint8_t *buffer) const
ZoneVector< std::pair< uint32_t, ValueType > > local_decls
uint32_t AddLocals(uint32_t count, ValueType type)
constexpr bool encoding_needs_shared() const
constexpr bool encoding_needs_exact() const
constexpr bool encoding_needs_heap_type() const
ValueTypeCode value_type_code() const
constexpr HeapType heap_type() const
ZoneVector< RpoNumber > & result
constexpr uint8_t kSharedFlagCode
#define DCHECK_EQ(v1, v2)