diff options
Diffstat (limited to 'src/tools/fuzzing.h')
-rw-r--r-- | src/tools/fuzzing.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h index 92e997913..69fee656c 100644 --- a/src/tools/fuzzing.h +++ b/src/tools/fuzzing.h @@ -104,6 +104,10 @@ private: Name funcrefTableName; + std::unordered_map<Type, Name> logImportNames; + + Name throwImportName; + std::unordered_map<Type, std::vector<Name>> globalsByType; std::unordered_map<Type, std::vector<Name>> mutableGlobalsByType; std::unordered_map<Type, std::vector<Name>> immutableGlobalsByType; @@ -220,12 +224,16 @@ private: void finalizeTable(); void prepareHangLimitSupport(); void addHangLimitSupport(); + // Imports that we call to log out values. void addImportLoggingSupport(); + // An import that we call to throw an exception from outside. + void addImportThrowingSupport(); void addHashMemorySupport(); // Special expression makers Expression* makeHangLimitCheck(); - Expression* makeLogging(); + Expression* makeImportLogging(); + Expression* makeImportThrowing(Type type); Expression* makeMemoryHashLogging(); // Function creation |