• Home
  • Raw
  • Download

Lines Matching refs:section_code

174   inline SectionCode section_code() const { return section_code_; }  in section_code()  function in v8::internal::wasm::__anonbb7684740211::WasmSectionIterator
227 uint8_t section_code = decoder_->consume_u8("section code"); in next() local
240 if (section_code == kUnknownSectionCode) { in next()
248 section_code = IdentifyUnknownSectionInternal(decoder_); in next()
253 } else if (!IsValidSectionCode(section_code)) { in next()
255 section_code); in next()
256 section_code = kUnknownSectionCode; in next()
259 : static_cast<SectionCode>(section_code); in next()
359 bool CheckSectionOrder(SectionCode section_code, in CheckSectionOrder() argument
364 SectionName(section_code), SectionName(next_section_code)); in CheckSectionOrder()
373 bool CheckUnorderedSection(SectionCode section_code) { in CheckUnorderedSection() argument
374 if (has_seen_unordered_section(section_code)) { in CheckUnorderedSection()
376 SectionName(section_code)); in CheckUnorderedSection()
379 set_seen_unordered_section(section_code); in CheckUnorderedSection()
383 void DecodeSection(SectionCode section_code, Vector<const uint8_t> bytes, in DecodeSection() argument
387 TRACE("Section: %s\n", SectionName(section_code)); in DecodeSection()
391 if (section_code < next_ordered_section_ && in DecodeSection()
392 section_code < kFirstUnorderedSection) { in DecodeSection()
393 errorf(pc(), "unexpected section <%s>", SectionName(section_code)); in DecodeSection()
397 switch (section_code) { in DecodeSection()
401 if (!CheckUnorderedSection(section_code)) return; in DecodeSection()
402 if (!CheckSectionOrder(section_code, kElementSectionCode, in DecodeSection()
407 if (!CheckUnorderedSection(section_code)) return; in DecodeSection()
408 if (!CheckSectionOrder(section_code, kMemorySectionCode, in DecodeSection()
435 next_ordered_section_ = section_code + 1; in DecodeSection()
439 switch (section_code) { in DecodeSection()
504 errorf(pc(), "unexpected section <%s>", SectionName(section_code)); in DecodeSection()
511 errorf(pc(), "unexpected section <%s>", SectionName(section_code)); in DecodeSection()
515 errorf(pc(), "unexpected section <%s>", SectionName(section_code)); in DecodeSection()
1243 if (section_iter.section_code() != SectionCode::kUnknownSectionCode) { in DecodeModule()
1244 DecodeSection(section_iter.section_code(), section_iter.payload(), in DecodeModule()
1376 bool has_seen_unordered_section(SectionCode section_code) { in has_seen_unordered_section() argument
1377 return seen_unordered_sections_ & (1 << section_code); in has_seen_unordered_section()
1380 void set_seen_unordered_section(SectionCode section_code) { in set_seen_unordered_section() argument
1381 seen_unordered_sections_ |= 1 << section_code; in set_seen_unordered_section()
2232 void ModuleDecoder::DecodeSection(SectionCode section_code, in DecodeSection() argument
2235 impl_->DecodeSection(section_code, bytes, offset, verify_functions); in DecodeSection()
2367 byte section_code = decoder.consume_u8("section code"); in DecodeCustomSections() local
2370 if (section_code != 0) { in DecodeCustomSections()
2403 section_iter.section_code() != kNameSectionCode) { in FindNameSection()