зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1757273 - wasm: Fix more uncovered bustage. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D139864
This commit is contained in:
Родитель
7d096ff514
Коммит
efd013f08f
|
@ -2149,12 +2149,12 @@ bool Instance::callExport(JSContext* cx, uint32_t funcIndex, CallArgs args,
|
|||
return true;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_WASM_EXCEPTIONS
|
||||
static JSObject* GetExceptionTag(JSObject* exn) {
|
||||
return exn->is<WasmExceptionObject>() ? &exn->as<WasmExceptionObject>().tag()
|
||||
: nullptr;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_WASM_EXCEPTIONS
|
||||
void Instance::setPendingException(HandleAnyRef exn) {
|
||||
tlsData()->pendingException = exn.get().asJSObject();
|
||||
tlsData()->pendingExceptionTag = GetExceptionTag(exn.get().asJSObject());
|
||||
|
|
|
@ -230,6 +230,8 @@ size_t TagType::sizeOfExcludingThis(MallocSizeOf mallocSizeOf) const {
|
|||
argOffsets_.sizeOfExcludingThis(mallocSizeOf);
|
||||
}
|
||||
|
||||
#ifdef ENABLE_WASM_EXCEPTIONS
|
||||
|
||||
size_t TagDesc::serializedSize() const {
|
||||
return sizeof(kind) + type.serializedSize() + sizeof(globalDataOffset) +
|
||||
sizeof(isExport);
|
||||
|
@ -256,6 +258,8 @@ size_t TagDesc::sizeOfExcludingThis(MallocSizeOf mallocSizeOf) const {
|
|||
return type.sizeOfExcludingThis(mallocSizeOf);
|
||||
}
|
||||
|
||||
#endif // ENABLE_WASM_EXCEPTIONS
|
||||
|
||||
size_t ElemSegment::serializedSize() const {
|
||||
return sizeof(kind) + sizeof(tableIndex) + sizeof(elemType) +
|
||||
SerializedMaybeSize(offsetIfActive) +
|
||||
|
|
Загрузка…
Ссылка в новой задаче