diff options
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/fuzzing/fuzzing.cpp | 5 | ||||
-rw-r--r-- | src/tools/fuzzing/heap-types.cpp | 15 | ||||
-rw-r--r-- | src/tools/spec-wrapper.h | 3 |
3 files changed, 21 insertions, 2 deletions
diff --git a/src/tools/fuzzing/fuzzing.cpp b/src/tools/fuzzing/fuzzing.cpp index c828c84d0..5489e7638 100644 --- a/src/tools/fuzzing/fuzzing.cpp +++ b/src/tools/fuzzing/fuzzing.cpp @@ -3091,6 +3091,11 @@ HeapType TranslateToFuzzReader::getSubType(HeapType type) { case HeapType::data: // TODO: nontrivial types as well. return HeapType::data; + case HeapType::string: + case HeapType::stringview_wtf8: + case HeapType::stringview_wtf16: + case HeapType::stringview_iter: + WASM_UNREACHABLE("TODO: fuzz strings"); } } // TODO: nontrivial types as well. diff --git a/src/tools/fuzzing/heap-types.cpp b/src/tools/fuzzing/heap-types.cpp index 2e96087d7..77891ce53 100644 --- a/src/tools/fuzzing/heap-types.cpp +++ b/src/tools/fuzzing/heap-types.cpp @@ -303,6 +303,11 @@ struct HeapTypeGeneratorImpl { return generateSubEq(); case HeapType::data: return generateSubData(); + case HeapType::string: + case HeapType::stringview_wtf8: + case HeapType::stringview_wtf16: + case HeapType::stringview_iter: + WASM_UNREACHABLE("TODO: fuzz strings"); } WASM_UNREACHABLE("unexpected index"); } @@ -390,6 +395,11 @@ struct HeapTypeGeneratorImpl { return HeapType::i31; case HeapType::data: return pickSubData(); + case HeapType::string: + case HeapType::stringview_wtf8: + case HeapType::stringview_wtf16: + case HeapType::stringview_iter: + WASM_UNREACHABLE("TODO: fuzz strings"); } WASM_UNREACHABLE("unexpected kind"); } @@ -503,6 +513,11 @@ struct HeapTypeGeneratorImpl { } case HeapType::data: return DataKind{}; + case HeapType::string: + case HeapType::stringview_wtf8: + case HeapType::stringview_wtf16: + case HeapType::stringview_iter: + WASM_UNREACHABLE("TODO: fuzz strings"); } WASM_UNREACHABLE("unexpected kind"); } else { diff --git a/src/tools/spec-wrapper.h b/src/tools/spec-wrapper.h index 43c0e9353..c2a49c598 100644 --- a/src/tools/spec-wrapper.h +++ b/src/tools/spec-wrapper.h @@ -62,9 +62,8 @@ inline std::string generateSpecWrapper(Module& wasm) { ret += "(ref.null eq)"; break; case Type::i31ref: - WASM_UNREACHABLE("TODO: i31ref"); case Type::dataref: - WASM_UNREACHABLE("TODO: dataref"); + WASM_UNREACHABLE("TODO: reftypes"); case Type::none: case Type::unreachable: WASM_UNREACHABLE("unexpected type"); |