From 26f49b7e27076e689541b9e13a1b54f60a4ee5c2 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 11 Jul 2024 02:57:23 +0900 Subject: feat: organize namespaces --- src/Structure/Instructions/Instr.php | 971 --------------------- .../Instructions/Instrs/Control/Block.php | 24 - .../Instructions/Instrs/Control/BlockType.php | 25 - .../Instrs/Control/BlockTypes/TypeIdx.php | 14 - .../Instrs/Control/BlockTypes/ValType.php | 20 - src/Structure/Instructions/Instrs/Control/Br.php | 20 - src/Structure/Instructions/Instrs/Control/BrIf.php | 20 - .../Instructions/Instrs/Control/BrTable.php | 24 - src/Structure/Instructions/Instrs/Control/Call.php | 20 - .../Instructions/Instrs/Control/CallIndirect.php | 21 - .../Instructions/Instrs/Control/Else_.php | 15 - src/Structure/Instructions/Instrs/Control/End.php | 15 - src/Structure/Instructions/Instrs/Control/If_.php | 26 - src/Structure/Instructions/Instrs/Control/Loop.php | 24 - src/Structure/Instructions/Instrs/Control/Nop.php | 15 - .../Instructions/Instrs/Control/Return_.php | 15 - .../Instructions/Instrs/Control/Unreachable.php | 15 - .../Instructions/Instrs/Memory/DataDrop.php | 20 - .../Instructions/Instrs/Memory/F32Load.php | 25 - .../Instructions/Instrs/Memory/F32Store.php | 25 - .../Instructions/Instrs/Memory/F64Load.php | 25 - .../Instructions/Instrs/Memory/F64Store.php | 25 - .../Instructions/Instrs/Memory/I32Load.php | 25 - .../Instructions/Instrs/Memory/I32Load16S.php | 25 - .../Instructions/Instrs/Memory/I32Load16U.php | 25 - .../Instructions/Instrs/Memory/I32Load8S.php | 25 - .../Instructions/Instrs/Memory/I32Load8U.php | 25 - .../Instructions/Instrs/Memory/I32Store.php | 25 - .../Instructions/Instrs/Memory/I32Store16.php | 25 - .../Instructions/Instrs/Memory/I32Store8.php | 25 - .../Instructions/Instrs/Memory/I64Load.php | 25 - .../Instructions/Instrs/Memory/I64Load16S.php | 25 - .../Instructions/Instrs/Memory/I64Load16U.php | 25 - .../Instructions/Instrs/Memory/I64Load32S.php | 25 - .../Instructions/Instrs/Memory/I64Load32U.php | 25 - .../Instructions/Instrs/Memory/I64Load8S.php | 25 - .../Instructions/Instrs/Memory/I64Load8U.php | 25 - .../Instructions/Instrs/Memory/I64Store.php | 25 - .../Instructions/Instrs/Memory/I64Store16.php | 25 - .../Instructions/Instrs/Memory/I64Store32.php | 25 - .../Instructions/Instrs/Memory/I64Store8.php | 25 - .../Instructions/Instrs/Memory/MemoryCopy.php | 15 - .../Instructions/Instrs/Memory/MemoryFill.php | 15 - .../Instructions/Instrs/Memory/MemoryGrow.php | 15 - .../Instructions/Instrs/Memory/MemoryInit.php | 20 - .../Instructions/Instrs/Memory/MemorySize.php | 15 - .../Instructions/Instrs/Numeric/F32Abs.php | 15 - .../Instructions/Instrs/Numeric/F32Add.php | 15 - .../Instructions/Instrs/Numeric/F32Ceil.php | 15 - .../Instructions/Instrs/Numeric/F32Const.php | 23 - .../Instructions/Instrs/Numeric/F32ConvertI32S.php | 15 - .../Instructions/Instrs/Numeric/F32ConvertI32U.php | 15 - .../Instructions/Instrs/Numeric/F32ConvertI64S.php | 15 - .../Instructions/Instrs/Numeric/F32ConvertI64U.php | 15 - .../Instructions/Instrs/Numeric/F32CopySign.php | 15 - .../Instructions/Instrs/Numeric/F32DemoteF64.php | 15 - .../Instructions/Instrs/Numeric/F32Div.php | 15 - .../Instructions/Instrs/Numeric/F32Eq.php | 15 - .../Instructions/Instrs/Numeric/F32Floor.php | 15 - .../Instructions/Instrs/Numeric/F32Ge.php | 15 - .../Instructions/Instrs/Numeric/F32Gt.php | 15 - .../Instructions/Instrs/Numeric/F32Le.php | 15 - .../Instructions/Instrs/Numeric/F32Lt.php | 15 - .../Instructions/Instrs/Numeric/F32Max.php | 15 - .../Instructions/Instrs/Numeric/F32Min.php | 15 - .../Instructions/Instrs/Numeric/F32Mul.php | 15 - .../Instructions/Instrs/Numeric/F32Ne.php | 15 - .../Instructions/Instrs/Numeric/F32Nearest.php | 15 - .../Instructions/Instrs/Numeric/F32Neg.php | 15 - .../Instrs/Numeric/F32ReinterpretI32.php | 15 - .../Instrs/Numeric/F32ReinterpretI64.php | 15 - .../Instructions/Instrs/Numeric/F32Sqrt.php | 15 - .../Instructions/Instrs/Numeric/F32Sub.php | 15 - .../Instructions/Instrs/Numeric/F32Trunc.php | 15 - .../Instructions/Instrs/Numeric/F64Abs.php | 15 - .../Instructions/Instrs/Numeric/F64Add.php | 15 - .../Instructions/Instrs/Numeric/F64Ceil.php | 15 - .../Instructions/Instrs/Numeric/F64Const.php | 23 - .../Instructions/Instrs/Numeric/F64ConvertI32S.php | 15 - .../Instructions/Instrs/Numeric/F64ConvertI32U.php | 15 - .../Instructions/Instrs/Numeric/F64ConvertI64S.php | 15 - .../Instructions/Instrs/Numeric/F64ConvertI64U.php | 15 - .../Instructions/Instrs/Numeric/F64CopySign.php | 15 - .../Instructions/Instrs/Numeric/F64Div.php | 15 - .../Instructions/Instrs/Numeric/F64Eq.php | 15 - .../Instructions/Instrs/Numeric/F64Floor.php | 15 - .../Instructions/Instrs/Numeric/F64Ge.php | 15 - .../Instructions/Instrs/Numeric/F64Gt.php | 15 - .../Instructions/Instrs/Numeric/F64Le.php | 15 - .../Instructions/Instrs/Numeric/F64Lt.php | 15 - .../Instructions/Instrs/Numeric/F64Max.php | 15 - .../Instructions/Instrs/Numeric/F64Min.php | 15 - .../Instructions/Instrs/Numeric/F64Mul.php | 15 - .../Instructions/Instrs/Numeric/F64Ne.php | 15 - .../Instructions/Instrs/Numeric/F64Nearest.php | 15 - .../Instructions/Instrs/Numeric/F64Neg.php | 15 - .../Instructions/Instrs/Numeric/F64PromoteF32.php | 15 - .../Instrs/Numeric/F64ReinterpretI32.php | 15 - .../Instrs/Numeric/F64ReinterpretI64.php | 15 - .../Instructions/Instrs/Numeric/F64Sqrt.php | 15 - .../Instructions/Instrs/Numeric/F64Sub.php | 15 - .../Instructions/Instrs/Numeric/F64Trunc.php | 15 - .../Instructions/Instrs/Numeric/I32Add.php | 15 - .../Instructions/Instrs/Numeric/I32And.php | 15 - .../Instructions/Instrs/Numeric/I32Clz.php | 15 - .../Instructions/Instrs/Numeric/I32Const.php | 23 - .../Instructions/Instrs/Numeric/I32Ctz.php | 15 - .../Instructions/Instrs/Numeric/I32DivS.php | 15 - .../Instructions/Instrs/Numeric/I32DivU.php | 15 - .../Instructions/Instrs/Numeric/I32Eq.php | 15 - .../Instructions/Instrs/Numeric/I32Eqz.php | 15 - .../Instructions/Instrs/Numeric/I32Extend16S.php | 15 - .../Instructions/Instrs/Numeric/I32Extend8S.php | 15 - .../Instructions/Instrs/Numeric/I32GeS.php | 15 - .../Instructions/Instrs/Numeric/I32GeU.php | 15 - .../Instructions/Instrs/Numeric/I32GtS.php | 15 - .../Instructions/Instrs/Numeric/I32GtU.php | 15 - .../Instructions/Instrs/Numeric/I32LeS.php | 15 - .../Instructions/Instrs/Numeric/I32LeU.php | 15 - .../Instructions/Instrs/Numeric/I32LtS.php | 15 - .../Instructions/Instrs/Numeric/I32LtU.php | 15 - .../Instructions/Instrs/Numeric/I32Mul.php | 15 - .../Instructions/Instrs/Numeric/I32Ne.php | 15 - .../Instructions/Instrs/Numeric/I32Or.php | 15 - .../Instructions/Instrs/Numeric/I32Popcnt.php | 15 - .../Instrs/Numeric/I32ReinterpretF32.php | 15 - .../Instrs/Numeric/I32ReinterpretF64.php | 15 - .../Instructions/Instrs/Numeric/I32RemS.php | 15 - .../Instructions/Instrs/Numeric/I32RemU.php | 15 - .../Instructions/Instrs/Numeric/I32RotL.php | 15 - .../Instructions/Instrs/Numeric/I32RotR.php | 15 - .../Instructions/Instrs/Numeric/I32Shl.php | 15 - .../Instructions/Instrs/Numeric/I32ShrS.php | 15 - .../Instructions/Instrs/Numeric/I32ShrU.php | 15 - .../Instructions/Instrs/Numeric/I32Sub.php | 15 - .../Instructions/Instrs/Numeric/I32TruncF32S.php | 15 - .../Instructions/Instrs/Numeric/I32TruncF32U.php | 15 - .../Instructions/Instrs/Numeric/I32TruncF64S.php | 15 - .../Instructions/Instrs/Numeric/I32TruncF64U.php | 15 - .../Instrs/Numeric/I32TruncSatF32S.php | 15 - .../Instrs/Numeric/I32TruncSatF32U.php | 15 - .../Instrs/Numeric/I32TruncSatF64S.php | 15 - .../Instrs/Numeric/I32TruncSatF64U.php | 15 - .../Instructions/Instrs/Numeric/I32WrapI64.php | 15 - .../Instructions/Instrs/Numeric/I32Xor.php | 15 - .../Instructions/Instrs/Numeric/I64Add.php | 15 - .../Instructions/Instrs/Numeric/I64And.php | 15 - .../Instructions/Instrs/Numeric/I64Clz.php | 15 - .../Instructions/Instrs/Numeric/I64Const.php | 23 - .../Instructions/Instrs/Numeric/I64Ctz.php | 15 - .../Instructions/Instrs/Numeric/I64DivS.php | 15 - .../Instructions/Instrs/Numeric/I64DivU.php | 15 - .../Instructions/Instrs/Numeric/I64Eq.php | 15 - .../Instructions/Instrs/Numeric/I64Eqz.php | 15 - .../Instructions/Instrs/Numeric/I64Extend16S.php | 15 - .../Instructions/Instrs/Numeric/I64Extend32S.php | 15 - .../Instructions/Instrs/Numeric/I64Extend8S.php | 15 - .../Instructions/Instrs/Numeric/I64ExtendI32S.php | 15 - .../Instructions/Instrs/Numeric/I64ExtendI32U.php | 15 - .../Instructions/Instrs/Numeric/I64GeS.php | 15 - .../Instructions/Instrs/Numeric/I64GeU.php | 15 - .../Instructions/Instrs/Numeric/I64GtS.php | 15 - .../Instructions/Instrs/Numeric/I64GtU.php | 15 - .../Instructions/Instrs/Numeric/I64LeS.php | 15 - .../Instructions/Instrs/Numeric/I64LeU.php | 15 - .../Instructions/Instrs/Numeric/I64LtS.php | 15 - .../Instructions/Instrs/Numeric/I64LtU.php | 15 - .../Instructions/Instrs/Numeric/I64Mul.php | 15 - .../Instructions/Instrs/Numeric/I64Ne.php | 15 - .../Instructions/Instrs/Numeric/I64Or.php | 15 - .../Instructions/Instrs/Numeric/I64Popcnt.php | 15 - .../Instrs/Numeric/I64ReinterpretF32.php | 15 - .../Instrs/Numeric/I64ReinterpretF64.php | 15 - .../Instructions/Instrs/Numeric/I64RemS.php | 15 - .../Instructions/Instrs/Numeric/I64RemU.php | 15 - .../Instructions/Instrs/Numeric/I64RotL.php | 15 - .../Instructions/Instrs/Numeric/I64RotR.php | 15 - .../Instructions/Instrs/Numeric/I64Shl.php | 15 - .../Instructions/Instrs/Numeric/I64ShrS.php | 15 - .../Instructions/Instrs/Numeric/I64ShrU.php | 15 - .../Instructions/Instrs/Numeric/I64Sub.php | 15 - .../Instructions/Instrs/Numeric/I64TruncF32S.php | 15 - .../Instructions/Instrs/Numeric/I64TruncF32U.php | 15 - .../Instructions/Instrs/Numeric/I64TruncF64S.php | 15 - .../Instructions/Instrs/Numeric/I64TruncF64U.php | 15 - .../Instrs/Numeric/I64TruncSatF32S.php | 15 - .../Instrs/Numeric/I64TruncSatF32U.php | 15 - .../Instrs/Numeric/I64TruncSatF64S.php | 15 - .../Instrs/Numeric/I64TruncSatF64U.php | 15 - .../Instructions/Instrs/Numeric/I64Xor.php | 15 - .../Instructions/Instrs/Parametric/Drop.php | 15 - .../Instructions/Instrs/Parametric/Select.php | 24 - .../Instructions/Instrs/Reference/RefFunc.php | 20 - .../Instructions/Instrs/Reference/RefIsNull.php | 15 - .../Instructions/Instrs/Reference/RefNull.php | 21 - .../Instructions/Instrs/Table/ElemDrop.php | 20 - .../Instructions/Instrs/Table/TableCopy.php | 21 - .../Instructions/Instrs/Table/TableFill.php | 20 - .../Instructions/Instrs/Table/TableGet.php | 20 - .../Instructions/Instrs/Table/TableGrow.php | 20 - .../Instructions/Instrs/Table/TableInit.php | 21 - .../Instructions/Instrs/Table/TableSet.php | 20 - .../Instructions/Instrs/Table/TableSize.php | 20 - .../Instructions/Instrs/Variable/GlobalGet.php | 20 - .../Instructions/Instrs/Variable/GlobalSet.php | 20 - .../Instructions/Instrs/Variable/LocalGet.php | 20 - .../Instructions/Instrs/Variable/LocalSet.php | 20 - .../Instructions/Instrs/Variable/LocalTee.php | 20 - src/Structure/Modules/Data.php | 17 - src/Structure/Modules/DataMode.php | 25 - src/Structure/Modules/DataModes/Active.php | 20 - src/Structure/Modules/DataModes/Passive.php | 14 - src/Structure/Modules/Elem.php | 21 - src/Structure/Modules/ElemMode.php | 30 - src/Structure/Modules/ElemModes/Active.php | 20 - src/Structure/Modules/ElemModes/Declarative.php | 14 - src/Structure/Modules/ElemModes/Passive.php | 14 - src/Structure/Modules/Export.php | 17 - src/Structure/Modules/ExportDesc.php | 28 - src/Structure/Modules/ExportDescs/Func.php | 15 - src/Structure/Modules/ExportDescs/Global_.php | 15 - src/Structure/Modules/ExportDescs/Mem.php | 15 - src/Structure/Modules/ExportDescs/Table.php | 15 - src/Structure/Modules/Func.php | 21 - src/Structure/Modules/Global_.php | 20 - src/Structure/Modules/Import.php | 19 - src/Structure/Modules/ImportDesc.php | 32 - src/Structure/Modules/ImportDescs/Func.php | 15 - src/Structure/Modules/ImportDescs/Global_.php | 16 - src/Structure/Modules/ImportDescs/Mem.php | 16 - src/Structure/Modules/ImportDescs/Table.php | 16 - src/Structure/Modules/Local.php | 15 - src/Structure/Modules/Mem.php | 15 - src/Structure/Modules/Module.php | 35 - src/Structure/Modules/Start.php | 13 - src/Structure/Modules/Table.php | 15 - src/Structure/Types/ExternType.php | 28 - src/Structure/Types/ExternTypes/Func.php | 16 - src/Structure/Types/ExternTypes/Global_.php | 16 - src/Structure/Types/ExternTypes/Mem.php | 16 - src/Structure/Types/ExternTypes/Table.php | 16 - src/Structure/Types/FuncType.php | 20 - src/Structure/Types/GlobalType.php | 14 - src/Structure/Types/Limits.php | 24 - src/Structure/Types/MemType.php | 13 - src/Structure/Types/Mut.php | 11 - src/Structure/Types/NumType.php | 13 - src/Structure/Types/RefType.php | 11 - src/Structure/Types/ResultType.php | 31 - src/Structure/Types/TableType.php | 14 - src/Structure/Types/ValType.php | 25 - src/Structure/Types/ValTypes/NumType.php | 21 - src/Structure/Types/ValTypes/RefType.php | 21 - src/Structure/Types/ValTypes/VecType.php | 21 - src/Structure/Types/VecType.php | 10 - 255 files changed, 5377 deletions(-) delete mode 100644 src/Structure/Instructions/Instr.php delete mode 100644 src/Structure/Instructions/Instrs/Control/Block.php delete mode 100644 src/Structure/Instructions/Instrs/Control/BlockType.php delete mode 100644 src/Structure/Instructions/Instrs/Control/BlockTypes/TypeIdx.php delete mode 100644 src/Structure/Instructions/Instrs/Control/BlockTypes/ValType.php delete mode 100644 src/Structure/Instructions/Instrs/Control/Br.php delete mode 100644 src/Structure/Instructions/Instrs/Control/BrIf.php delete mode 100644 src/Structure/Instructions/Instrs/Control/BrTable.php delete mode 100644 src/Structure/Instructions/Instrs/Control/Call.php delete mode 100644 src/Structure/Instructions/Instrs/Control/CallIndirect.php delete mode 100644 src/Structure/Instructions/Instrs/Control/Else_.php delete mode 100644 src/Structure/Instructions/Instrs/Control/End.php delete mode 100644 src/Structure/Instructions/Instrs/Control/If_.php delete mode 100644 src/Structure/Instructions/Instrs/Control/Loop.php delete mode 100644 src/Structure/Instructions/Instrs/Control/Nop.php delete mode 100644 src/Structure/Instructions/Instrs/Control/Return_.php delete mode 100644 src/Structure/Instructions/Instrs/Control/Unreachable.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/DataDrop.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/F32Load.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/F32Store.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/F64Load.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/F64Store.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I32Load.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I32Load16S.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I32Load16U.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I32Load8S.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I32Load8U.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I32Store.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I32Store16.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I32Store8.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I64Load.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I64Load16S.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I64Load16U.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I64Load32S.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I64Load32U.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I64Load8S.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I64Load8U.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I64Store.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I64Store16.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I64Store32.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/I64Store8.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/MemoryCopy.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/MemoryFill.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/MemoryGrow.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/MemoryInit.php delete mode 100644 src/Structure/Instructions/Instrs/Memory/MemorySize.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Abs.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Add.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Ceil.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Const.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32ConvertI32S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32ConvertI32U.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32ConvertI64S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32ConvertI64U.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32CopySign.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32DemoteF64.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Div.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Eq.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Floor.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Ge.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Gt.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Le.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Lt.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Max.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Min.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Mul.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Ne.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Nearest.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Neg.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32ReinterpretI32.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32ReinterpretI64.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Sqrt.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Sub.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F32Trunc.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Abs.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Add.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Ceil.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Const.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64ConvertI32S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64ConvertI32U.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64ConvertI64S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64ConvertI64U.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64CopySign.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Div.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Eq.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Floor.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Ge.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Gt.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Le.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Lt.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Max.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Min.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Mul.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Ne.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Nearest.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Neg.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64PromoteF32.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64ReinterpretI32.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64ReinterpretI64.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Sqrt.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Sub.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/F64Trunc.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32Add.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32And.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32Clz.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32Const.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32Ctz.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32DivS.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32DivU.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32Eq.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32Eqz.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32Extend16S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32Extend8S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32GeS.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32GeU.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32GtS.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32GtU.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32LeS.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32LeU.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32LtS.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32LtU.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32Mul.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32Ne.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32Or.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32Popcnt.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32ReinterpretF32.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32ReinterpretF64.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32RemS.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32RemU.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32RotL.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32RotR.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32Shl.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32ShrS.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32ShrU.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32Sub.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32TruncF32S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32TruncF32U.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32TruncF64S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32TruncF64U.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32TruncSatF32S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32TruncSatF32U.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32TruncSatF64S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32TruncSatF64U.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32WrapI64.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I32Xor.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Add.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64And.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Clz.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Const.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Ctz.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64DivS.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64DivU.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Eq.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Eqz.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Extend16S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Extend32S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Extend8S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64ExtendI32S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64ExtendI32U.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64GeS.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64GeU.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64GtS.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64GtU.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64LeS.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64LeU.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64LtS.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64LtU.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Mul.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Ne.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Or.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Popcnt.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64ReinterpretF32.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64ReinterpretF64.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64RemS.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64RemU.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64RotL.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64RotR.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Shl.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64ShrS.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64ShrU.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Sub.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64TruncF32S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64TruncF32U.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64TruncF64S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64TruncF64U.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64TruncSatF32S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64TruncSatF32U.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64TruncSatF64S.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64TruncSatF64U.php delete mode 100644 src/Structure/Instructions/Instrs/Numeric/I64Xor.php delete mode 100644 src/Structure/Instructions/Instrs/Parametric/Drop.php delete mode 100644 src/Structure/Instructions/Instrs/Parametric/Select.php delete mode 100644 src/Structure/Instructions/Instrs/Reference/RefFunc.php delete mode 100644 src/Structure/Instructions/Instrs/Reference/RefIsNull.php delete mode 100644 src/Structure/Instructions/Instrs/Reference/RefNull.php delete mode 100644 src/Structure/Instructions/Instrs/Table/ElemDrop.php delete mode 100644 src/Structure/Instructions/Instrs/Table/TableCopy.php delete mode 100644 src/Structure/Instructions/Instrs/Table/TableFill.php delete mode 100644 src/Structure/Instructions/Instrs/Table/TableGet.php delete mode 100644 src/Structure/Instructions/Instrs/Table/TableGrow.php delete mode 100644 src/Structure/Instructions/Instrs/Table/TableInit.php delete mode 100644 src/Structure/Instructions/Instrs/Table/TableSet.php delete mode 100644 src/Structure/Instructions/Instrs/Table/TableSize.php delete mode 100644 src/Structure/Instructions/Instrs/Variable/GlobalGet.php delete mode 100644 src/Structure/Instructions/Instrs/Variable/GlobalSet.php delete mode 100644 src/Structure/Instructions/Instrs/Variable/LocalGet.php delete mode 100644 src/Structure/Instructions/Instrs/Variable/LocalSet.php delete mode 100644 src/Structure/Instructions/Instrs/Variable/LocalTee.php delete mode 100644 src/Structure/Modules/Data.php delete mode 100644 src/Structure/Modules/DataMode.php delete mode 100644 src/Structure/Modules/DataModes/Active.php delete mode 100644 src/Structure/Modules/DataModes/Passive.php delete mode 100644 src/Structure/Modules/Elem.php delete mode 100644 src/Structure/Modules/ElemMode.php delete mode 100644 src/Structure/Modules/ElemModes/Active.php delete mode 100644 src/Structure/Modules/ElemModes/Declarative.php delete mode 100644 src/Structure/Modules/ElemModes/Passive.php delete mode 100644 src/Structure/Modules/Export.php delete mode 100644 src/Structure/Modules/ExportDesc.php delete mode 100644 src/Structure/Modules/ExportDescs/Func.php delete mode 100644 src/Structure/Modules/ExportDescs/Global_.php delete mode 100644 src/Structure/Modules/ExportDescs/Mem.php delete mode 100644 src/Structure/Modules/ExportDescs/Table.php delete mode 100644 src/Structure/Modules/Func.php delete mode 100644 src/Structure/Modules/Global_.php delete mode 100644 src/Structure/Modules/Import.php delete mode 100644 src/Structure/Modules/ImportDesc.php delete mode 100644 src/Structure/Modules/ImportDescs/Func.php delete mode 100644 src/Structure/Modules/ImportDescs/Global_.php delete mode 100644 src/Structure/Modules/ImportDescs/Mem.php delete mode 100644 src/Structure/Modules/ImportDescs/Table.php delete mode 100644 src/Structure/Modules/Local.php delete mode 100644 src/Structure/Modules/Mem.php delete mode 100644 src/Structure/Modules/Module.php delete mode 100644 src/Structure/Modules/Start.php delete mode 100644 src/Structure/Modules/Table.php delete mode 100644 src/Structure/Types/ExternType.php delete mode 100644 src/Structure/Types/ExternTypes/Func.php delete mode 100644 src/Structure/Types/ExternTypes/Global_.php delete mode 100644 src/Structure/Types/ExternTypes/Mem.php delete mode 100644 src/Structure/Types/ExternTypes/Table.php delete mode 100644 src/Structure/Types/FuncType.php delete mode 100644 src/Structure/Types/GlobalType.php delete mode 100644 src/Structure/Types/Limits.php delete mode 100644 src/Structure/Types/MemType.php delete mode 100644 src/Structure/Types/Mut.php delete mode 100644 src/Structure/Types/NumType.php delete mode 100644 src/Structure/Types/RefType.php delete mode 100644 src/Structure/Types/ResultType.php delete mode 100644 src/Structure/Types/TableType.php delete mode 100644 src/Structure/Types/ValType.php delete mode 100644 src/Structure/Types/ValTypes/NumType.php delete mode 100644 src/Structure/Types/ValTypes/RefType.php delete mode 100644 src/Structure/Types/ValTypes/VecType.php delete mode 100644 src/Structure/Types/VecType.php (limited to 'src/Structure') diff --git a/src/Structure/Instructions/Instr.php b/src/Structure/Instructions/Instr.php deleted file mode 100644 index cb4b3b8..0000000 --- a/src/Structure/Instructions/Instr.php +++ /dev/null @@ -1,971 +0,0 @@ - $types - */ - final public static function Select(array $types): Parametric\Select - { - return new Parametric\Select($types); - } - - // Variable instructions - final public static function GlobalGet(int $var): Variable\GlobalGet - { - return new Variable\GlobalGet($var); - } - final public static function GlobalSet(int $var): Variable\GlobalSet - { - return new Variable\GlobalSet($var); - } - final public static function LocalGet(int $var): Variable\LocalGet - { - return new Variable\LocalGet($var); - } - final public static function LocalSet(int $var): Variable\LocalSet - { - return new Variable\LocalSet($var); - } - final public static function LocalTee(int $var): Variable\LocalTee - { - return new Variable\LocalTee($var); - } - - // Table instructions - final public static function ElemDrop(int $elem): Table\ElemDrop - { - return new Table\ElemDrop($elem); - } - final public static function TableCopy(int $to, int $from): Table\TableCopy - { - return new Table\TableCopy($to, $from); - } - final public static function TableFill(int $table): Table\TableFill - { - return new Table\TableFill($table); - } - final public static function TableGet(int $table): Table\TableGet - { - return new Table\TableGet($table); - } - final public static function TableGrow(int $table): Table\TableGrow - { - return new Table\TableGrow($table); - } - final public static function TableInit(int $to, int $from): Table\TableInit - { - return new Table\TableInit($to, $from); - } - final public static function TableSet(int $table): Table\TableSet - { - return new Table\TableSet($table); - } - final public static function TableSize(int $table): Table\TableSize - { - return new Table\TableSize($table); - } - - // Memory instructions - final public static function DataDrop(int $data): Memory\DataDrop - { - return new Memory\DataDrop($data); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function F32Load(int $offset, int $align): Memory\F32Load - { - return new Memory\F32Load($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function F32Store(int $offset, int $align): Memory\F32Store - { - return new Memory\F32Store($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function F64Load(int $offset, int $align): Memory\F64Load - { - return new Memory\F64Load($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function F64Store(int $offset, int $align): Memory\F64Store - { - return new Memory\F64Store($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I32Load(int $offset, int $align): Memory\I32Load - { - return new Memory\I32Load($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I32Load16S(int $offset, int $align): Memory\I32Load16S - { - return new Memory\I32Load16S($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I32Load16U(int $offset, int $align): Memory\I32Load16U - { - return new Memory\I32Load16U($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I32Load8S(int $offset, int $align): Memory\I32Load8S - { - return new Memory\I32Load8S($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I32Load8U(int $offset, int $align): Memory\I32Load8U - { - return new Memory\I32Load8U($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I32Store(int $offset, int $align): Memory\I32Store - { - return new Memory\I32Store($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I32Store16(int $offset, int $align): Memory\I32Store16 - { - return new Memory\I32Store16($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I32Store8(int $offset, int $align): Memory\I32Store8 - { - return new Memory\I32Store8($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I64Load(int $offset, int $align): Memory\I64Load - { - return new Memory\I64Load($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I64Load16S(int $offset, int $align): Memory\I64Load16S - { - return new Memory\I64Load16S($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I64Load16U(int $offset, int $align): Memory\I64Load16U - { - return new Memory\I64Load16U($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I64Load32S(int $offset, int $align): Memory\I64Load32S - { - return new Memory\I64Load32S($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I64Load32U(int $offset, int $align): Memory\I64Load32U - { - return new Memory\I64Load32U($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I64Load8S(int $offset, int $align): Memory\I64Load8S - { - return new Memory\I64Load8S($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I64Load8U(int $offset, int $align): Memory\I64Load8U - { - return new Memory\I64Load8U($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I64Store(int $offset, int $align): Memory\I64Store - { - return new Memory\I64Store($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I64Store16(int $offset, int $align): Memory\I64Store16 - { - return new Memory\I64Store16($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I64Store32(int $offset, int $align): Memory\I64Store32 - { - return new Memory\I64Store32($offset, $align); - } - /** - * @param U32 $offset - * @param U32 $align - */ - final public static function I64Store8(int $offset, int $align): Memory\I64Store8 - { - return new Memory\I64Store8($offset, $align); - } - final public static function MemoryCopy(): Memory\MemoryCopy - { - return new Memory\MemoryCopy(); - } - final public static function MemoryFill(): Memory\MemoryFill - { - return new Memory\MemoryFill(); - } - final public static function MemoryGrow(): Memory\MemoryGrow - { - return new Memory\MemoryGrow(); - } - final public static function MemoryInit(int $data): Memory\MemoryInit - { - return new Memory\MemoryInit($data); - } - final public static function MemorySize(): Memory\MemorySize - { - return new Memory\MemorySize(); - } - - // Control instructions - /** - * @param list $body - */ - final public static function Block(BlockType $type, array $body): Control\Block - { - return new Control\Block($type, $body); - } - final public static function Br(int $label): Control\Br - { - return new Control\Br($label); - } - final public static function BrIf(int $label): Control\BrIf - { - return new Control\BrIf($label); - } - /** - * @param list $labelTable - */ - final public static function BrTable(array $labelTable, int $defaultLabel): Control\BrTable - { - return new Control\BrTable($labelTable, $defaultLabel); - } - final public static function Call(int $func): Control\Call - { - return new Control\Call($func); - } - final public static function CallIndirect(int $funcTable, int $type): Control\CallIndirect - { - return new Control\CallIndirect($funcTable, $type); - } - final public static function Else_(): Control\Else_ - { - return new Control\Else_(); - } - final public static function End(): Control\End - { - return new Control\End(); - } - /** - * @param list $thenBody - * @param list $elseBody - */ - final public static function If_(BlockType $type, array $thenBody, array $elseBody): Control\If_ - { - return new Control\If_($type, $thenBody, $elseBody); - } - /** - * @param list $body - */ - final public static function Loop(BlockType $type, array $body): Control\Loop - { - return new Control\Loop($type, $body); - } - final public static function Nop(): Control\Nop - { - return new Control\Nop(); - } - final public static function Return_(): Control\Return_ - { - return new Control\Return_(); - } - final public static function Unreachable(): Control\Unreachable - { - return new Control\Unreachable(); - } - - abstract public static function opName(): string; -} diff --git a/src/Structure/Instructions/Instrs/Control/Block.php b/src/Structure/Instructions/Instrs/Control/Block.php deleted file mode 100644 index 29e68fd..0000000 --- a/src/Structure/Instructions/Instrs/Control/Block.php +++ /dev/null @@ -1,24 +0,0 @@ - $body - */ - protected function __construct( - public BlockType $type, - public array $body, - ) { - } - - public static function opName(): string - { - return "block"; - } -} diff --git a/src/Structure/Instructions/Instrs/Control/BlockType.php b/src/Structure/Instructions/Instrs/Control/BlockType.php deleted file mode 100644 index a90389b..0000000 --- a/src/Structure/Instructions/Instrs/Control/BlockType.php +++ /dev/null @@ -1,25 +0,0 @@ - $labelTable - */ - protected function __construct( - public array $labelTable, - public int $defaultLabel, - ) { - } - - public static function opName(): string - { - return "br_table"; - } -} diff --git a/src/Structure/Instructions/Instrs/Control/Call.php b/src/Structure/Instructions/Instrs/Control/Call.php deleted file mode 100644 index 9ee14be..0000000 --- a/src/Structure/Instructions/Instrs/Control/Call.php +++ /dev/null @@ -1,20 +0,0 @@ - $thenBody - * @param list $elseBody - */ - protected function __construct( - public BlockType $type, - public array $thenBody, - public array $elseBody, - ) { - } - - public static function opName(): string - { - return "if"; - } -} diff --git a/src/Structure/Instructions/Instrs/Control/Loop.php b/src/Structure/Instructions/Instrs/Control/Loop.php deleted file mode 100644 index 1572e4b..0000000 --- a/src/Structure/Instructions/Instrs/Control/Loop.php +++ /dev/null @@ -1,24 +0,0 @@ - $body - */ - protected function __construct( - public BlockType $type, - public array $body, - ) { - } - - public static function opName(): string - { - return "loop"; - } -} diff --git a/src/Structure/Instructions/Instrs/Control/Nop.php b/src/Structure/Instructions/Instrs/Control/Nop.php deleted file mode 100644 index 3aaeb4d..0000000 --- a/src/Structure/Instructions/Instrs/Control/Nop.php +++ /dev/null @@ -1,15 +0,0 @@ - $types - */ - protected function __construct( - public array $types, - ) { - } - - public static function opName(): string - { - return "select"; - } -} diff --git a/src/Structure/Instructions/Instrs/Reference/RefFunc.php b/src/Structure/Instructions/Instrs/Reference/RefFunc.php deleted file mode 100644 index 97f11b5..0000000 --- a/src/Structure/Instructions/Instrs/Reference/RefFunc.php +++ /dev/null @@ -1,20 +0,0 @@ - $init - */ - public function __construct( - public array $init, - public DataMode $mode, - ) { - } -} diff --git a/src/Structure/Modules/DataMode.php b/src/Structure/Modules/DataMode.php deleted file mode 100644 index e9b5a72..0000000 --- a/src/Structure/Modules/DataMode.php +++ /dev/null @@ -1,25 +0,0 @@ - $offset - */ - final public static function Active( - int $memory, - array $offset, - ): DataModes\Active { - return new DataModes\Active($memory, $offset); - } -} diff --git a/src/Structure/Modules/DataModes/Active.php b/src/Structure/Modules/DataModes/Active.php deleted file mode 100644 index de52861..0000000 --- a/src/Structure/Modules/DataModes/Active.php +++ /dev/null @@ -1,20 +0,0 @@ - $offset - */ - protected function __construct( - public int $memory, - public array $offset, - ) { - } -} diff --git a/src/Structure/Modules/DataModes/Passive.php b/src/Structure/Modules/DataModes/Passive.php deleted file mode 100644 index 3686cdc..0000000 --- a/src/Structure/Modules/DataModes/Passive.php +++ /dev/null @@ -1,14 +0,0 @@ -> $init - */ - public function __construct( - public RefType $type, - public array $init, - public ElemMode $mode, - ) { - } -} diff --git a/src/Structure/Modules/ElemMode.php b/src/Structure/Modules/ElemMode.php deleted file mode 100644 index e3e7693..0000000 --- a/src/Structure/Modules/ElemMode.php +++ /dev/null @@ -1,30 +0,0 @@ - $offset - */ - final public static function Active( - int $table, - array $offset, - ): ElemModes\Active { - return new ElemModes\Active($table, $offset); - } - - final public static function Declarative(): ElemModes\Declarative - { - return new ElemModes\Declarative(); - } -} diff --git a/src/Structure/Modules/ElemModes/Active.php b/src/Structure/Modules/ElemModes/Active.php deleted file mode 100644 index 5487542..0000000 --- a/src/Structure/Modules/ElemModes/Active.php +++ /dev/null @@ -1,20 +0,0 @@ - $offset - */ - protected function __construct( - public int $table, - public array $offset, - ) { - } -} diff --git a/src/Structure/Modules/ElemModes/Declarative.php b/src/Structure/Modules/ElemModes/Declarative.php deleted file mode 100644 index 7c68331..0000000 --- a/src/Structure/Modules/ElemModes/Declarative.php +++ /dev/null @@ -1,14 +0,0 @@ - $locals - * @param list $body - */ - public function __construct( - public int $type, - public array $locals, - public array $body, - ) { - } -} diff --git a/src/Structure/Modules/Global_.php b/src/Structure/Modules/Global_.php deleted file mode 100644 index aae1706..0000000 --- a/src/Structure/Modules/Global_.php +++ /dev/null @@ -1,20 +0,0 @@ - $init - */ - public function __construct( - public GlobalType $type, - public array $init, - ) { - } -} diff --git a/src/Structure/Modules/Import.php b/src/Structure/Modules/Import.php deleted file mode 100644 index 4609a3f..0000000 --- a/src/Structure/Modules/Import.php +++ /dev/null @@ -1,19 +0,0 @@ - $types - * @param list $funcs - * @param list $tables - * @param list $mems - * @param list $globals - * @param list $elems - * @param list $datas - * @param list $imports - * @param list $exports - */ - public function __construct( - public array $types, - public array $funcs, - public array $tables, - public array $mems, - public array $globals, - public array $elems, - public array $datas, - public ?Start $start, - public array $imports, - public array $exports, - ) { - } -} diff --git a/src/Structure/Modules/Start.php b/src/Structure/Modules/Start.php deleted file mode 100644 index 1ef75df..0000000 --- a/src/Structure/Modules/Start.php +++ /dev/null @@ -1,13 +0,0 @@ -params->equals($other->params) - && $this->results->equals($other->results); - } -} diff --git a/src/Structure/Types/GlobalType.php b/src/Structure/Types/GlobalType.php deleted file mode 100644 index 182b761..0000000 --- a/src/Structure/Types/GlobalType.php +++ /dev/null @@ -1,14 +0,0 @@ -min && - ($this->max === null || $this->min <= $this->max); - } -} diff --git a/src/Structure/Types/MemType.php b/src/Structure/Types/MemType.php deleted file mode 100644 index d4c9009..0000000 --- a/src/Structure/Types/MemType.php +++ /dev/null @@ -1,13 +0,0 @@ - $types - */ - public function __construct( - public array $types, - ) { - } - - public function equals(ResultType $other): bool - { - if (count($this->types) !== count($other->types)) { - return false; - } - foreach ($this->types as $i => $type) { - if (!$type->equals($other->types[$i])) { - return false; - } - } - return true; - } -} diff --git a/src/Structure/Types/TableType.php b/src/Structure/Types/TableType.php deleted file mode 100644 index 619ad25..0000000 --- a/src/Structure/Types/TableType.php +++ /dev/null @@ -1,14 +0,0 @@ -inner === $other->inner; - } -} diff --git a/src/Structure/Types/ValTypes/RefType.php b/src/Structure/Types/ValTypes/RefType.php deleted file mode 100644 index fc48dfb..0000000 --- a/src/Structure/Types/ValTypes/RefType.php +++ /dev/null @@ -1,21 +0,0 @@ -inner === $other->inner; - } -} diff --git a/src/Structure/Types/ValTypes/VecType.php b/src/Structure/Types/ValTypes/VecType.php deleted file mode 100644 index a28081f..0000000 --- a/src/Structure/Types/ValTypes/VecType.php +++ /dev/null @@ -1,21 +0,0 @@ -inner === $other->inner; // @phpstan-ignore-line - } -} diff --git a/src/Structure/Types/VecType.php b/src/Structure/Types/VecType.php deleted file mode 100644 index ae8a0f6..0000000 --- a/src/Structure/Types/VecType.php +++ /dev/null @@ -1,10 +0,0 @@ -