diff options
Diffstat (limited to 'src/tools/fuzzing.h')
-rw-r--r-- | src/tools/fuzzing.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h index c0f6ab335..abc0a4248 100644 --- a/src/tools/fuzzing.h +++ b/src/tools/fuzzing.h @@ -302,6 +302,7 @@ private: Expression* makeLoad(Type type); Expression* makeNonAtomicStore(Type type); Expression* makeStore(Type type); + // Makes a small change to a constant value. Literal tweak(Literal value); Literal makeLiteral(Type type); @@ -318,6 +319,11 @@ private: Expression* makeBasicRef(Type type); Expression* makeCompoundRef(Type type); + // Similar to makeBasic/CompoundRef, but indicates that this value will be + // used in a place that will trap on null. For example, the reference of a + // struct.get or array.set would use this. + Expression* makeTrappingRefUse(HeapType type); + Expression* buildUnary(const UnaryArgs& args); Expression* makeUnary(Type type); Expression* buildBinary(const BinaryArgs& args); |