Lines Matching defs:code
2 // Use of this source code is governed by a BSD-style license that can be
40 constexpr char kBranchHintsString[] = "metadata.code.branch_hint";
62 const char* SectionName(SectionCode code) {
63 switch (code) {
229 // Reads the section code/name at the current position and sets up
237 uint8_t section_code = decoder_->consume_u8("section code");
264 decoder_->errorf(decoder_->pc(), "unknown section code #0x%02x",
447 // first occurrence after function section and before code section are
454 // first occurrence after function section and before code section are
608 super_type.code());
621 super_type.code());
634 super_type.code());
803 {0, 0}, // code
894 {0, 0}, // code
1145 function->code = {offset, length};
1270 // All except first occurrence after function section and before code
1456 // decoding the code section, but we have to check it here too in case the
1457 // code section is absent.
1460 // We know that the code section has been decoded if the first
1461 // non-imported function has its code set.
1462 if (!module_->functions[module_->num_imported_functions].code.is_set()) {
1463 errorf(pc(), "function count is %u, but code section is absent",
1480 // global section and code section that would have triggered the
1495 module_->code = {offset, size};
1545 function->code = {off(pc_), static_cast<uint32_t>(end_ - pc_)};
1662 // Verifies the body (code) of a given function.
1672 function->sig, function->code.offset(),
1673 start_ + GetBufferRelativeOffset(function->code.offset()),
1674 start_ + GetBufferRelativeOffset(function->code.end_offset())};
1680 // If the decode failed and this is the first error, set error code and
1877 error("Beyond end of code");
2434 byte section_code = decoder.consume_u8("section code");