diff options
Diffstat (limited to 'src/literal.h')
-rw-r--r-- | src/literal.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/literal.h b/src/literal.h index 0438e0686..555f89e5c 100644 --- a/src/literal.h +++ b/src/literal.h @@ -63,8 +63,8 @@ class Literal { // To support the experimental RttFreshSub instruction, we not only store // the type, but also a reference to an allocation. std::unique_ptr<RttSupers> rttSupers; - // TODO: Literals of type `externref` can only be `null` currently but we - // will need to represent extern values eventually, to + // TODO: Literals of type `anyref` can only be `null` currently but we + // will need to represent external values eventually, to // 1) run the spec tests and fuzzer with reference types enabled and // 2) avoid bailing out when seeing a reference typed value in precompute }; @@ -765,8 +765,7 @@ template<> struct hash<wasm::Literal> { return digest; } // other non-null reference type literals cannot represent concrete - // values, i.e. there is no concrete externref, anyref or eqref other than - // null. + // values, i.e. there is no concrete anyref or eqref other than null. WASM_UNREACHABLE("unexpected type"); }; if (a.type.isBasic()) { @@ -790,7 +789,6 @@ template<> struct hash<wasm::Literal> { wasm::rehash(digest, chunks[1]); return digest; case wasm::Type::funcref: - case wasm::Type::externref: case wasm::Type::anyref: case wasm::Type::eqref: case wasm::Type::dataref: |