Lines Matching refs:index

64   uint32_t func_index;     // index into the function table.
65 uint32_t sig_index; // index into the signature table.
101 static ConstantExpression RefFunc(uint32_t index) {
102 return ConstantExpression(ValueField::encode(index) |
119 uint32_t index() const {
176 uint32_t index;
229 // Construct a passive or declarative segment, which has no table index or
261 uint32_t index; // index into the respective space.
268 uint32_t index; // index into the respective space.
450 bool has_type(uint32_t index) const { return index < types.size(); }
456 bool has_signature(uint32_t index) const {
457 return index < types.size() &&
458 types[index].kind == TypeDefinition::kFunction;
460 const FunctionSig* signature(uint32_t index) const {
461 DCHECK(has_signature(index));
462 return types[index].function_sig;
469 bool has_struct(uint32_t index) const {
470 return index < types.size() && types[index].kind == TypeDefinition::kStruct;
472 const StructType* struct_type(uint32_t index) const {
473 DCHECK(has_struct(index));
474 return types[index].struct_type;
481 bool has_array(uint32_t index) const {
482 return index < types.size() && types[index].kind == TypeDefinition::kArray;
484 const ArrayType* array_type(uint32_t index) const {
485 DCHECK(has_array(index));
486 return types[index].array_type;
489 uint32_t supertype(uint32_t index) const {
490 DCHECK(index < types.size());
491 return types[index].supertype;
493 bool has_supertype(uint32_t index) const {
494 return supertype(index) != kNoSuperType;
497 std::vector<TypeDefinition> types; // by type index
499 // Maps each type index to a canonical index for purposes of call_indirect.
501 // Maps each type index to its global (cross-module) canonical index as per
564 // Returns the wrapper index for a function in {module} with signature {sig}
572 // Return the byte offset of the function identified by the given index.
574 // Returns -1 if the function index is invalid.
664 // Get the source position from a given function index and byte offset,
669 // Translate function index to the index relative to the first declared (i.e.