├── .github └── workflows │ └── test.yml ├── .gitignore ├── .swiftpm └── xcode │ └── package.xcworkspace │ └── contents.xcworkspacedata ├── Fixtures ├── .gitignore ├── Entrypoints │ ├── I64ImportTransformerTests.swift │ └── StackOverflowSanitizerTests.swift ├── Makefile ├── build │ └── .gitkeep ├── index.js ├── package-lock.json ├── package.json ├── stack_sanitizer_support.c └── webpack.config.js ├── IntegrationTests ├── .gitignore ├── .swiftpm │ └── xcode │ │ └── package.xcworkspace │ │ └── contents.xcworkspacedata ├── Package.resolved ├── Package.swift ├── README.md └── Tests │ └── IntegrationTests │ ├── I64ImportTransformerTests.swift │ ├── StackOverflowSanitizerTests.swift │ └── misc.swift ├── LICENSE ├── Makefile ├── Package.swift ├── README.md ├── Sources ├── WasmTransformer │ ├── BinaryFormat.swift │ ├── ByteEncodable.swift │ ├── InputByteStream.swift │ ├── LEB128.swift │ ├── OutputWriter.swift │ ├── Readers │ │ ├── CodeSectionReader.swift │ │ ├── ElementSectionReader.swift │ │ ├── FunctionSectionReader.swift │ │ ├── ImportSectionReader.swift │ │ ├── ModuleReader.swift │ │ ├── TypeSectionReader.swift │ │ └── VectorSectionReader.swift │ ├── Sections.swift │ ├── Trampoline.swift │ ├── Transformers │ │ ├── CustomSectionStripper.swift │ │ ├── I64ImportTransformer.swift │ │ ├── SizeProfiler.swift │ │ ├── StackOverflowSanitizer+Fixtures.swift │ │ └── StackOverflowSanitizer.swift │ └── WasmTransformer.swift └── wasm-trans │ └── main.swift ├── Tests ├── LinuxMain.swift └── WasmTransformerTests │ ├── CustomSectionStripperTests.swift │ ├── I64ImportTransformerTests.swift │ ├── InputByteStreamTests.swift │ ├── IntegrationTests.swift │ ├── SectionsInfoTests.swift │ ├── StackOverflowSanitizerTests.swift │ └── misc.swift └── Tools └── GenerateStackOverflowSanitizerSupport.swift /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/.gitignore -------------------------------------------------------------------------------- /.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /Fixtures/.gitignore: -------------------------------------------------------------------------------- 1 | /build/* 2 | !.gitkeep 3 | /node_modules 4 | -------------------------------------------------------------------------------- /Fixtures/Entrypoints/I64ImportTransformerTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Fixtures/Entrypoints/I64ImportTransformerTests.swift -------------------------------------------------------------------------------- /Fixtures/Entrypoints/StackOverflowSanitizerTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Fixtures/Entrypoints/StackOverflowSanitizerTests.swift -------------------------------------------------------------------------------- /Fixtures/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Fixtures/Makefile -------------------------------------------------------------------------------- /Fixtures/build/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Fixtures/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Fixtures/index.js -------------------------------------------------------------------------------- /Fixtures/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Fixtures/package-lock.json -------------------------------------------------------------------------------- /Fixtures/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Fixtures/package.json -------------------------------------------------------------------------------- /Fixtures/stack_sanitizer_support.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Fixtures/stack_sanitizer_support.c -------------------------------------------------------------------------------- /Fixtures/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Fixtures/webpack.config.js -------------------------------------------------------------------------------- /IntegrationTests/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | xcuserdata/ 6 | -------------------------------------------------------------------------------- /IntegrationTests/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/IntegrationTests/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /IntegrationTests/Package.resolved: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/IntegrationTests/Package.resolved -------------------------------------------------------------------------------- /IntegrationTests/Package.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/IntegrationTests/Package.swift -------------------------------------------------------------------------------- /IntegrationTests/README.md: -------------------------------------------------------------------------------- 1 | # IntegrationTests 2 | 3 | A description of this package. 4 | -------------------------------------------------------------------------------- /IntegrationTests/Tests/IntegrationTests/I64ImportTransformerTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/IntegrationTests/Tests/IntegrationTests/I64ImportTransformerTests.swift -------------------------------------------------------------------------------- /IntegrationTests/Tests/IntegrationTests/StackOverflowSanitizerTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/IntegrationTests/Tests/IntegrationTests/StackOverflowSanitizerTests.swift -------------------------------------------------------------------------------- /IntegrationTests/Tests/IntegrationTests/misc.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/IntegrationTests/Tests/IntegrationTests/misc.swift -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Makefile -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Package.swift -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/README.md -------------------------------------------------------------------------------- /Sources/WasmTransformer/BinaryFormat.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/BinaryFormat.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/ByteEncodable.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/ByteEncodable.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/InputByteStream.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/InputByteStream.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/LEB128.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/LEB128.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/OutputWriter.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/OutputWriter.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/Readers/CodeSectionReader.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/Readers/CodeSectionReader.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/Readers/ElementSectionReader.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/Readers/ElementSectionReader.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/Readers/FunctionSectionReader.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/Readers/FunctionSectionReader.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/Readers/ImportSectionReader.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/Readers/ImportSectionReader.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/Readers/ModuleReader.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/Readers/ModuleReader.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/Readers/TypeSectionReader.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/Readers/TypeSectionReader.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/Readers/VectorSectionReader.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/Readers/VectorSectionReader.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/Sections.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/Sections.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/Trampoline.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/Trampoline.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/Transformers/CustomSectionStripper.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/Transformers/CustomSectionStripper.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/Transformers/I64ImportTransformer.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/Transformers/I64ImportTransformer.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/Transformers/SizeProfiler.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/Transformers/SizeProfiler.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/Transformers/StackOverflowSanitizer+Fixtures.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/Transformers/StackOverflowSanitizer+Fixtures.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/Transformers/StackOverflowSanitizer.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/Transformers/StackOverflowSanitizer.swift -------------------------------------------------------------------------------- /Sources/WasmTransformer/WasmTransformer.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/WasmTransformer/WasmTransformer.swift -------------------------------------------------------------------------------- /Sources/wasm-trans/main.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Sources/wasm-trans/main.swift -------------------------------------------------------------------------------- /Tests/LinuxMain.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Tests/LinuxMain.swift -------------------------------------------------------------------------------- /Tests/WasmTransformerTests/CustomSectionStripperTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Tests/WasmTransformerTests/CustomSectionStripperTests.swift -------------------------------------------------------------------------------- /Tests/WasmTransformerTests/I64ImportTransformerTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Tests/WasmTransformerTests/I64ImportTransformerTests.swift -------------------------------------------------------------------------------- /Tests/WasmTransformerTests/InputByteStreamTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Tests/WasmTransformerTests/InputByteStreamTests.swift -------------------------------------------------------------------------------- /Tests/WasmTransformerTests/IntegrationTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Tests/WasmTransformerTests/IntegrationTests.swift -------------------------------------------------------------------------------- /Tests/WasmTransformerTests/SectionsInfoTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Tests/WasmTransformerTests/SectionsInfoTests.swift -------------------------------------------------------------------------------- /Tests/WasmTransformerTests/StackOverflowSanitizerTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Tests/WasmTransformerTests/StackOverflowSanitizerTests.swift -------------------------------------------------------------------------------- /Tests/WasmTransformerTests/misc.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Tests/WasmTransformerTests/misc.swift -------------------------------------------------------------------------------- /Tools/GenerateStackOverflowSanitizerSupport.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swiftwasm/WasmTransformer/HEAD/Tools/GenerateStackOverflowSanitizerSupport.swift --------------------------------------------------------------------------------