summaryrefslogtreecommitdiff
path: root/src/wasm/wasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r--src/wasm/wasm.cpp53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp
index 82ddd553f..22ea4d86f 100644
--- a/src/wasm/wasm.cpp
+++ b/src/wasm/wasm.cpp
@@ -1289,35 +1289,6 @@ void StringEq::finalize() {
}
}
-void StringAs::finalize() {
- if (ref->type == Type::unreachable) {
- type = Type::unreachable;
- } else {
- switch (op) {
- case StringAsWTF8:
- type = Type(HeapType::stringview_wtf8, NonNullable);
- break;
- case StringAsWTF16:
- type = Type(HeapType::stringview_wtf16, NonNullable);
- break;
- case StringAsIter:
- type = Type(HeapType::stringview_iter, NonNullable);
- break;
- default:
- WASM_UNREACHABLE("bad string.as");
- }
- }
-}
-
-void StringWTF8Advance::finalize() {
- if (ref->type == Type::unreachable || pos->type == Type::unreachable ||
- bytes->type == Type::unreachable) {
- type = Type::unreachable;
- } else {
- type = Type::i32;
- }
-}
-
void StringWTF16Get::finalize() {
if (ref->type == Type::unreachable || pos->type == Type::unreachable) {
type = Type::unreachable;
@@ -1326,22 +1297,6 @@ void StringWTF16Get::finalize() {
}
}
-void StringIterNext::finalize() {
- if (ref->type == Type::unreachable) {
- type = Type::unreachable;
- } else {
- type = Type::i32;
- }
-}
-
-void StringIterMove::finalize() {
- if (ref->type == Type::unreachable || num->type == Type::unreachable) {
- type = Type::unreachable;
- } else {
- type = Type::i32;
- }
-}
-
void StringSliceWTF::finalize() {
if (ref->type == Type::unreachable || start->type == Type::unreachable ||
end->type == Type::unreachable) {
@@ -1351,14 +1306,6 @@ void StringSliceWTF::finalize() {
}
}
-void StringSliceIter::finalize() {
- if (ref->type == Type::unreachable || num->type == Type::unreachable) {
- type = Type::unreachable;
- } else {
- type = Type(HeapType::string, NonNullable);
- }
-}
-
void ContBind::finalize() {
if (cont->type == Type::unreachable) {
type = Type::unreachable;