summaryrefslogtreecommitdiff
path: root/src/tools/fuzzing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/fuzzing.h')
-rw-r--r--src/tools/fuzzing.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h
index 24f08dc53..f055d7f44 100644
--- a/src/tools/fuzzing.h
+++ b/src/tools/fuzzing.h
@@ -124,6 +124,12 @@ private:
// Type => list of array types that have that type.
std::unordered_map<Type, std::vector<HeapType>> typeArrays;
+ // All struct fields that are mutable.
+ std::vector<StructField> mutableStructFields;
+
+ // All arrays that are mutable.
+ std::vector<HeapType> mutableArrays;
+
Index numAddedFunctions = 0;
// RAII helper for managing the state used to create a single function.
@@ -334,7 +340,9 @@ private:
Expression* makeRefTest(Type type);
Expression* makeRefCast(Type type);
Expression* makeStructGet(Type type);
+ Expression* makeStructSet(Type type);
Expression* makeArrayGet(Type type);
+ Expression* makeArraySet(Type type);
Expression* makeI31Get(Type type);
Expression* makeMemoryInit();
Expression* makeDataDrop();