Lines Matching defs:length
190 uint32_t* const length, const WasmModule* module,
192 int64_t heap_index = decoder->read_i33v<validate>(pc, length, "heap type");
255 // The length of the read value type is written in {length}.
260 uint32_t* const length, const WasmModule* module,
262 *length = 1;
265 *length = 0;
311 read_heap_type<validate>(decoder, pc + 1, length, module, enabled);
312 *length += 1;
327 uint32_t depth = decoder->read_u32v<validate>(pc + 1, length, "depth");
328 *length += 1;
340 decoder->read_u32v<validate>(pc + *length, &type_index_length);
341 *length += type_index_length;
397 uint32_t length;
399 value = decoder->read_i32v<validate>(pc, &length, "immi32");
406 uint32_t length;
408 value = decoder->read_i64v<validate>(pc, &length, "immi64");
415 uint32_t length = 4;
428 uint32_t length = 8;
440 uint32_t length = 1;
451 uint32_t length;
454 index = decoder->read_u32v<validate>(pc, &length, name);
499 uint32_t length;
505 decoder->read_u32v<validate>(pc, &length, "number of select types");
514 decoder, pc + length, &type_length, module, enabled);
515 length += type_length;
521 uint32_t length = 1;
529 decoder->read_i33v<validate>(pc, &length, "block type");
531 // All valid negative types are 1 byte in length, so we check against the
540 type = value_type_reader::read_value_type<validate>(decoder, pc, &length,
572 uint32_t length;
574 depth = decoder->read_u32v<validate>(pc, &length, "branch depth");
582 uint32_t length;
585 field_imm(decoder, pc + struct_imm.length, "field index"),
586 length(struct_imm.length + field_imm.length) {}
593 uint32_t length;
597 table_imm(decoder, pc + sig_imm.length, "table index"),
598 length(sig_imm.length + table_imm.length) {}
623 uint32_t length;
625 decoder_->read_u32v<validate>(pc_, &length, "branch table entry");
626 pc_ += length;
629 // length, including the length of the {BranchTableImmediate}, but not the
631 uint32_t length() {
660 uint32_t length = 0;
678 length = alignment_length + offset_length;
686 uint32_t length = 1;
709 uint32_t length;
713 memory(decoder, pc + data_segment.length),
714 length(data_segment.length + memory.length) {}
721 uint32_t length;
725 memory_dst(decoder, pc + memory_src.length),
726 length(memory_src.length + memory_dst.length) {}
733 uint32_t length;
737 table(decoder, pc + element_segment.length, "table index"),
738 length(element_segment.length + table.length) {}
745 uint32_t length;
749 table_src(decoder, pc + table_dst.length, "table index"),
750 length(table_src.length + table_dst.length) {}
755 uint32_t length = 1;
759 : type(value_type_reader::read_heap_type<validate>(decoder, pc, &length,
926 const Value& length, const Value& rtt, Value* result) \
1029 const Value& length, const Value& initial_value, const Value& rtt, \
1032 const Value& length, const Value& rtt, Value* result) \
1041 const Value& dst_index, const Value& length) \
1108 // Writes the total length of decoded locals in {total_length}.
1113 uint32_t length;
1123 uint32_t entries = read_u32v<validate>(pc, &length, "local decls count");
1128 *total_length += length;
1139 read_u32v<validate>(pc + *total_length, &length, "local count");
1149 *total_length += length;
1152 this, pc + *total_length, &length, this->module_, enabled_);
1154 *total_length += length;
1176 // Returns a BitVector of length {locals_count + 1} representing the set of
1213 pc + 1 + imm.length, &locals_length, base::Optional<uint32_t>());
1295 DecodeError(pc + imm.struct_imm.length, "invalid field index: %u",
1331 if (!ValidateTable(pc + imm.sig_imm.length, imm.table_imm)) {
1468 Validate(pc + imm.data_segment.length, imm.memory);
1473 Validate(pc + imm.memory_src.length, imm.memory_dst);
1478 if (!ValidateTable(pc + imm.element_segment.length, imm.table)) {
1494 if (!ValidateTable(pc + imm.table_src.length, imm.table_dst)) return false;
1508 if (imm.index > 0 || imm.length > 1) {
1571 // Returns the length of the opcode under {pc}.
1594 return 1 + imm.length;
1603 return 1 + imm.length;
1608 return 1 + iterator.length();
1613 return 1 + imm.length;
1620 pc + 1 + imm.length, &locals_length, base::Optional<uint32_t>());
1621 return 1 + imm.length + ((new_locals_count >= 0) ? locals_length : 0);
1628 return 1 + imm.length;
1633 return 1 + imm.length;
1644 return 1 + imm.length;
1651 return 1 + imm.length;
1656 return 1 + imm.length;
1661 return 1 + imm.length;
1665 return 1 + imm.length;
1669 return 1 + imm.length;
1678 return 1 + imm.length;
1685 return 1 + imm.length;
1700 return 1 + imm.length;
1706 return 1 + imm.length;
1711 uint32_t length = 0;
1712 opcode = decoder->read_prefixed_opcode<validate>(pc, &length);
1722 return length;
1724 MemoryInitImmediate<validate> imm(decoder, pc + length);
1725 return length + imm.length;
1728 IndexImmediate<validate> imm(decoder, pc + length,
1730 return length + imm.length;
1733 MemoryCopyImmediate<validate> imm(decoder, pc + length);
1734 return length + imm.length;
1737 MemoryIndexImmediate<validate> imm(decoder, pc + length);
1738 return length + imm.length;
1741 TableInitImmediate<validate> imm(decoder, pc + length);
1742 return length + imm.length;
1745 IndexImmediate<validate> imm(decoder, pc + length,
1747 return length + imm.length;
1750 TableCopyImmediate<validate> imm(decoder, pc + length);
1751 return length + imm.length;
1756 IndexImmediate<validate> imm(decoder, pc + length, "table index");
1757 return length + imm.length;
1763 return length;
1767 uint32_t length = 0;
1768 opcode = decoder->read_prefixed_opcode<validate>(pc, &length);
1772 return length;
1774 return length + 1;
1776 MemoryAccessImmediate<validate> imm(decoder, pc + length,
1779 return length + imm.length;
1783 decoder, pc + length, UINT32_MAX,
1786 return length + imm.length + 1;
1792 return length + kSimd128Size;
1797 return length;
1801 uint32_t length = 0;
1802 opcode = decoder->read_prefixed_opcode<validate>(pc, &length,
1806 MemoryAccessImmediate<validate> imm(decoder, pc + length,
1809 return length + imm.length;
1812 return length + 1;
1818 return length;
1822 uint32_t length = 0;
1824 decoder->read_prefixed_opcode<validate>(pc, &length, "gc_index");
1830 StructIndexImmediate<validate> imm(decoder, pc + length);
1831 return length + imm.length;
1837 FieldImmediate<validate> imm(decoder, pc + length);
1838 return length + imm.length;
1849 ArrayIndexImmediate<validate> imm(decoder, pc + length);
1850 return length + imm.length;
1854 ArrayIndexImmediate<validate> array_imm(decoder, pc + length);
1856 decoder, pc + length + array_imm.length, "array length");
1857 return length + array_imm.length + length_imm.length;
1860 ArrayIndexImmediate<validate> dst_imm(decoder, pc + length);
1862 pc + length + dst_imm.length);
1863 return length + dst_imm.length + src_imm.length;
1867 ArrayIndexImmediate<validate> array_imm(decoder, pc + length);
1869 decoder, pc + length + array_imm.length, "data segment index");
1870 return length + array_imm.length + data_imm.length;
1877 BranchDepthImmediate<validate> imm(decoder, pc + length);
1878 return length + imm.length;
1885 IndexImmediate<validate> imm(decoder, pc + length, "type index");
1886 return length + imm.length;
1899 return length;
1905 return length;
2094 IndexImmediate<validate> length_imm(this, pc + 2 + array_imm.length,
2095 "array length");
2584 Control* block = PushControl(kControlBlock, 0, args.length());
2589 return 1 + imm.length;
2603 return 1 + imm.length;
2614 return 1 + imm.length;
2623 Control* try_block = PushControl(kControlTry, 0, args.length());
2630 return 1 + imm.length;
2661 return 1 + imm.length;
2687 return 1 + imm.length;
2747 return 1 + imm.length;
2792 return 1 + imm.length;
2804 this->DecodeLocals(this->pc() + 1 + imm.length, &locals_length, 0);
2812 let_local_values.length() + args.length());
2820 return 1 + imm.length + locals_length;
2828 Control* block = PushControl(kControlLoop, 0, args.length());
2833 return 1 + imm.length;
2843 Control* if_block = PushControl(kControlIf, 0, 1 + args.length());
2849 return 1 + imm.length;
2958 return 1 + imm.length;
2971 return 1 + imm.length;
2985 return 1 + imm.length;
3035 return 1 + iterator.length();
3053 return 1 + imm.length;
3061 return 1 + imm.length;
3069 return 1 + imm.length;
3077 return 1 + imm.length;
3089 return 1 + imm.length;
3131 return 1 + imm.length;
3171 return 1 + imm.length;
3181 return 1 + imm.length;
3194 return 1 + imm.length;
3210 return 1 + imm.length;
3223 return 1 + imm.length;
3235 return 1 + imm.length;
3246 return 1 + imm.length;
3294 return 1 + imm.length;
3304 return 1 + imm.length;
3316 return 1 + imm.length;
3331 return 1 + imm.length;
3347 return 1 + imm.length;
3367 return 1 + imm.length;
3771 return prefix_len + imm.length;
3789 return opcode_length + imm.length;
3797 this, this->pc_ + opcode_length + mem_imm.length);
3807 return opcode_length + mem_imm.length + lane_imm.length;
3816 this, this->pc_ + opcode_length + mem_imm.length);
3824 return opcode_length + mem_imm.length + lane_imm.length;
3836 return prefix_len + imm.length;
3858 return opcode_length + imm.length;
3872 return opcode_length + imm.length;
4073 return opcode_length + imm.length;
4102 return opcode_length + imm.length;
4125 return opcode_length + field.length;
4149 return opcode_length + field.length;
4168 return opcode_length + field.length;
4182 Value length = Peek(1, 1, kWasmI32);
4186 CALL_INTERFACE_IF_OK_AND_REACHABLE(ArrayNewWithRtt, imm, length,
4188 Drop(3); // rtt, length, initial_value.
4190 return opcode_length + imm.length;
4211 Value length = Peek(1, 0, kWasmI32);
4213 CALL_INTERFACE_IF_OK_AND_REACHABLE(ArrayNewDefault, imm, length, rtt,
4215 Drop(2); // rtt, length
4217 return opcode_length + imm.length;
4241 this->pc_ + opcode_length + array_imm.length;
4255 Value length = Peek(1, 1, kWasmI32);
4261 data_segment, offset, length, rtt,
4263 Drop(3); // rtt, length, offset
4265 return opcode_length + array_imm.length + data_segment.length;
4287 return opcode_length + imm.length;
4307 return opcode_length + imm.length;
4324 return opcode_length + imm.length;
4337 return opcode_length + imm.length;
4350 this, this->pc_ + opcode_length + dst_imm.length);
4351 if (!this->Validate(this->pc_ + opcode_length + dst_imm.length,
4363 // [dst, dst_index, src, src_index, length]
4368 Value length = Peek(0, 4, kWasmI32);
4370 src_index, length);
4372 return opcode_length + dst_imm.length + src_imm.length;
4380 this, this->pc_ + opcode_length + array_imm.length,
4381 "array.init length");
4385 "Requested length %u for array.init too large, maximum is %zu",
4407 return opcode_length + array_imm.length + length_imm.length;
4443 return opcode_length + imm.length;
4454 opcode_length += imm.length;
4510 opcode_length += imm.length;
4576 uint32_t pc_offset = opcode_length + branch_depth.length;
4582 pc_offset += imm.length;
4661 uint32_t pc_offset = opcode_length + branch_depth.length;
4667 pc_offset += imm.length;
4868 return opcode_length + branch_depth.length;
4919 return opcode_length + branch_depth.length;
4988 return opcode_length + imm.length;
5014 return opcode_length + imm.length;
5023 return opcode_length + imm.length;
5034 return opcode_length + imm.length;
5045 return opcode_length + imm.length;
5054 return opcode_length + imm.length;
5063 return opcode_length + imm.length;
5072 return opcode_length + imm.length;
5085 return opcode_length + imm.length;
5094 return opcode_length + imm.length;
5105 return opcode_length + imm.length;