Lines Matching refs:section_code
184 SectionCode section_code() const { return section_code_; } in section_code() function in v8::internal::wasm::__anon81381c6b0211::WasmSectionIterator
237 uint8_t section_code = decoder_->consume_u8("section code"); in next() local
250 if (section_code == kUnknownSectionCode) { in next()
258 section_code = IdentifyUnknownSectionInternal(decoder_); in next()
263 } else if (!IsValidSectionCode(section_code)) { in next()
265 section_code); in next()
266 section_code = kUnknownSectionCode; in next()
269 : static_cast<SectionCode>(section_code); in next()
369 bool CheckSectionOrder(SectionCode section_code, in CheckSectionOrder() argument
374 SectionName(section_code), SectionName(next_section_code)); in CheckSectionOrder()
383 bool CheckUnorderedSection(SectionCode section_code) { in CheckUnorderedSection() argument
384 if (has_seen_unordered_section(section_code)) { in CheckUnorderedSection()
386 SectionName(section_code)); in CheckUnorderedSection()
389 set_seen_unordered_section(section_code); in CheckUnorderedSection()
393 void DecodeSection(SectionCode section_code, in DecodeSection() argument
398 TRACE("Section: %s\n", SectionName(section_code)); in DecodeSection()
402 if (section_code < next_ordered_section_ && in DecodeSection()
403 section_code < kFirstUnorderedSection) { in DecodeSection()
404 errorf(pc(), "unexpected section <%s>", SectionName(section_code)); in DecodeSection()
408 switch (section_code) { in DecodeSection()
412 if (!CheckUnorderedSection(section_code)) return; in DecodeSection()
416 !CheckSectionOrder(section_code, kElementSectionCode, in DecodeSection()
422 if (!CheckUnorderedSection(section_code)) return; in DecodeSection()
423 if (!CheckSectionOrder(section_code, kMemorySectionCode, in DecodeSection()
458 next_ordered_section_ = section_code + 1; in DecodeSection()
462 switch (section_code) { in DecodeSection()
541 SectionName(section_code)); in DecodeSection()
545 errorf(pc(), "unexpected section <%s>", SectionName(section_code)); in DecodeSection()
1517 if (section_iter.section_code() != SectionCode::kUnknownSectionCode) { in DecodeModule()
1518 DecodeSection(section_iter.section_code(), section_iter.payload(), in DecodeModule()
1606 bool has_seen_unordered_section(SectionCode section_code) { in has_seen_unordered_section() argument
1607 return seen_unordered_sections_ & (1 << section_code); in has_seen_unordered_section()
1610 void set_seen_unordered_section(SectionCode section_code) { in set_seen_unordered_section() argument
1611 seen_unordered_sections_ |= 1 << section_code; in set_seen_unordered_section()
2297 void ModuleDecoder::DecodeSection(SectionCode section_code, in DecodeSection() argument
2300 impl_->DecodeSection(section_code, bytes, offset, verify_functions); in DecodeSection()
2434 byte section_code = decoder.consume_u8("section code"); in DecodeCustomSections() local
2437 if (section_code != 0) { in DecodeCustomSections()
2470 section_iter.section_code() != kNameSectionCode) { in FindNameSection()