diff options
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r-- | src/wasm-type.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h index 4c401be6b..1f6c5a7de 100644 --- a/src/wasm-type.h +++ b/src/wasm-type.h @@ -390,6 +390,10 @@ public: // `TypeSystem::Equirecursive` mode. std::optional<HeapType> getSuperType() const; + // Return the depth of this heap type in the nominal type hierarchy, i.e. the + // number of supertypes in its supertype chain. + size_t getDepth() const; + // Whether this is a nominal type in the sense of being a GC Milestone 4 // nominal type. Although all non-basic HeapTypes are nominal in // `TypeSystem::Nominal` mode, this will still return false unless the type is |