зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1721001 - wasm: Fix bustage due to missing ifdefs. r=yury
Differential Revision: https://phabricator.services.mozilla.com/D120382
This commit is contained in:
Родитель
6f6b4a5e21
Коммит
31e9f276ce
|
@ -8633,6 +8633,8 @@ class BaseCompiler final : public BaseCompilerInterface {
|
|||
[[nodiscard]] bool emitTableGrow();
|
||||
[[nodiscard]] bool emitTableSet();
|
||||
[[nodiscard]] bool emitTableSize();
|
||||
|
||||
#ifdef ENABLE_WASM_GC
|
||||
[[nodiscard]] bool emitStructNewWithRtt();
|
||||
[[nodiscard]] bool emitStructNewDefaultWithRtt();
|
||||
[[nodiscard]] bool emitStructGet(FieldExtension extension);
|
||||
|
@ -8661,6 +8663,7 @@ class BaseCompiler final : public BaseCompilerInterface {
|
|||
const StructField& field, AnyReg value);
|
||||
[[nodiscard]] bool emitGcArraySet(RegRef object, RegPtr data, RegI32 index,
|
||||
const ArrayType& array, AnyReg value);
|
||||
#endif // ENABLE_WASM_GC
|
||||
|
||||
#ifdef ENABLE_WASM_SIMD
|
||||
void emitVectorAndNot();
|
||||
|
@ -13421,6 +13424,8 @@ bool BaseCompiler::emitTableInit() {
|
|||
});
|
||||
}
|
||||
|
||||
#ifdef ENABLE_WASM_GC
|
||||
|
||||
void BaseCompiler::emitGcCanon(uint32_t typeIndex) {
|
||||
const TypeIdDesc& typeId = moduleEnv_.typeIds[typeIndex];
|
||||
RegRef rp = needRef();
|
||||
|
@ -14244,6 +14249,8 @@ bool BaseCompiler::emitBrOnCast() {
|
|||
return true;
|
||||
}
|
||||
|
||||
#endif // ENABLE_WASM_GC
|
||||
|
||||
#ifdef ENABLE_WASM_SIMD
|
||||
|
||||
// Emitter trampolines used by abstracted SIMD operations. Naming here follows
|
||||
|
|
|
@ -606,6 +606,8 @@ class MOZ_STACK_CLASS OpIter : private Policy {
|
|||
Value* value);
|
||||
|
||||
[[nodiscard]] bool readTableSize(uint32_t* tableIndex);
|
||||
|
||||
#ifdef ENABLE_WASM_GC
|
||||
[[nodiscard]] bool readStructNewWithRtt(uint32_t* typeIndex, Value* rtt,
|
||||
ValueVector* argValues);
|
||||
[[nodiscard]] bool readStructNewDefaultWithRtt(uint32_t* typeIndex,
|
||||
|
@ -633,6 +635,7 @@ class MOZ_STACK_CLASS OpIter : private Policy {
|
|||
uint32_t* rttTypeIndex, uint32_t* rttDepth,
|
||||
ResultType* branchTargetType,
|
||||
ValueVector* values);
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_WASM_SIMD
|
||||
[[nodiscard]] bool readLaneIndex(uint32_t inputLanes, uint32_t* laneIndex);
|
||||
|
@ -2864,6 +2867,8 @@ inline bool OpIter<Policy>::readFieldIndex(uint32_t* fieldIndex,
|
|||
return true;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_WASM_GC
|
||||
|
||||
template <typename Policy>
|
||||
inline bool OpIter<Policy>::readStructNewWithRtt(uint32_t* typeIndex,
|
||||
Value* rtt,
|
||||
|
@ -3220,6 +3225,8 @@ inline bool OpIter<Policy>::readBrOnCast(uint32_t* relativeDepth, Value* rtt,
|
|||
branchTargetType, values);
|
||||
}
|
||||
|
||||
#endif // ENABLE_WASM_GC
|
||||
|
||||
#ifdef ENABLE_WASM_SIMD
|
||||
|
||||
template <typename Policy>
|
||||
|
|
Загрузка…
Ссылка в новой задаче