summaryrefslogtreecommitdiff
path: root/js/src/wasm/WasmTypes.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-09-18 16:57:09 +0200
committerMoonchild <moonchild@palemoon.org>2023-09-18 16:57:09 +0200
commit7003ea7dc4e6164fc2451e4255da0cc1a7b4d22f (patch)
tree3a098fa1b2914b1c7cd6eea39fc0fc53ce3b9fa1 /js/src/wasm/WasmTypes.cpp
parent8635073418a294520172bf5b05d886b35e4bcdc3 (diff)
downloaduxp-7003ea7dc4e6164fc2451e4255da0cc1a7b4d22f.tar.gz
Issue #2307 - Part 3: Remove SIMD.js support
This gets rid of the SIMD-specific scalar types in JS. This considerably deviates from Mozilla's work because of our divergent path.
Diffstat (limited to 'js/src/wasm/WasmTypes.cpp')
-rw-r--r--js/src/wasm/WasmTypes.cpp29
1 files changed, 1 insertions, 28 deletions
diff --git a/js/src/wasm/WasmTypes.cpp b/js/src/wasm/WasmTypes.cpp
index be8af3ada1..993c4903be 100644
--- a/js/src/wasm/WasmTypes.cpp
+++ b/js/src/wasm/WasmTypes.cpp
@@ -1,6 +1,7 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* Copyright 2015 Mozilla Foundation
+ * Copyright 2023 Moonchild Productions
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -52,15 +53,6 @@ Val::writePayload(uint8_t* dst) const
case ValType::F64:
memcpy(dst, &u.i64_, sizeof(u.i64_));
return;
- case ValType::I8x16:
- case ValType::I16x8:
- case ValType::I32x4:
- case ValType::F32x4:
- case ValType::B8x16:
- case ValType::B16x8:
- case ValType::B32x4:
- memcpy(dst, &u, jit::Simd128DataSize);
- return;
}
}
@@ -125,9 +117,6 @@ WasmReportTrap(int32_t trapIndex)
case Trap::IndirectCallBadSig:
errorNumber = JSMSG_WASM_IND_CALL_BAD_SIG;
break;
- case Trap::ImpreciseSimdConversion:
- errorNumber = JSMSG_SIMD_FAILED_CONVERSION;
- break;
case Trap::OutOfBounds:
errorNumber = JSMSG_WASM_OUT_OF_BOUNDS;
break;
@@ -463,14 +452,6 @@ IsImmediateType(ValType vt)
case ValType::F32:
case ValType::F64:
return true;
- case ValType::I8x16:
- case ValType::I16x8:
- case ValType::I32x4:
- case ValType::F32x4:
- case ValType::B8x16:
- case ValType::B16x8:
- case ValType::B32x4:
- return false;
}
MOZ_CRASH("bad ValType");
}
@@ -488,14 +469,6 @@ EncodeImmediateType(ValType vt)
return 2;
case ValType::F64:
return 3;
- case ValType::I8x16:
- case ValType::I16x8:
- case ValType::I32x4:
- case ValType::F32x4:
- case ValType::B8x16:
- case ValType::B16x8:
- case ValType::B32x4:
- break;
}
MOZ_CRASH("bad ValType");
}