summaryrefslogtreecommitdiff
path: root/src/wasm-features.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-features.h')
-rw-r--r--src/wasm-features.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wasm-features.h b/src/wasm-features.h
index 5d05b6284..56436bd6a 100644
--- a/src/wasm-features.h
+++ b/src/wasm-features.h
@@ -36,7 +36,7 @@ struct FeatureSet {
TailCall = 1 << 7,
ReferenceTypes = 1 << 8,
Multivalue = 1 << 9,
- Anyref = 1 << 10,
+ GC = 1 << 10,
All = (1 << 11) - 1
};
@@ -62,8 +62,8 @@ struct FeatureSet {
return "reference-types";
case Multivalue:
return "multivalue";
- case Anyref:
- return "anyref";
+ case GC:
+ return "gc";
default:
WASM_UNREACHABLE("unexpected feature");
}
@@ -87,7 +87,7 @@ struct FeatureSet {
bool hasTailCall() const { return (features & TailCall) != 0; }
bool hasReferenceTypes() const { return (features & ReferenceTypes) != 0; }
bool hasMultivalue() const { return (features & Multivalue) != 0; }
- bool hasAnyref() const { return (features & Anyref) != 0; }
+ bool hasGC() const { return (features & GC) != 0; }
bool hasAll() const { return (features & All) != 0; }
void makeMVP() { features = MVP; }
@@ -104,7 +104,7 @@ struct FeatureSet {
void setTailCall(bool v = true) { set(TailCall, v); }
void setReferenceTypes(bool v = true) { set(ReferenceTypes, v); }
void setMultivalue(bool v = true) { set(Multivalue, v); }
- void setAnyref(bool v = true) { set(Anyref, v); }
+ void setGC(bool v = true) { set(GC, v); }
void setAll(bool v = true) { features = v ? All : MVP; }
void enable(const FeatureSet& other) { features |= other.features; }