wasm2go

package module
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

README

spidermonkeywasm2go

wasm2go sources for spidermonkey.wasm — a build of SpiderMonkey, the JavaScript engine from Mozilla Firefox 147.0.4, transpiled to Go by wasm2go and consumed by go-spidermonkey.

The bundle is generated and released by spidermonkey-wasm and vendored here with make bundle, which downloads the release tarball and verifies it against its sha256 manifest and the upstream GitHub SLSA attestation before extracting it in place. Nothing here is hand-written or meant to be called directly — go-spidermonkey is the API you want.

License

This bundle (base/, p0/p7/, data.bin, and the generated Go glue) is a derivative work of SpiderMonkey, so it is distributed under SpiderMonkey's license — the Mozilla Public License, Version 2.0 — reproduced in full in LICENSE. SpiderMonkey is part of mozilla-central and is Copyright (c) the Mozilla project and its contributors. See https://mozilla.org/MPL/2.0/.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fn22 added in v0.2.0

func Fn22(m *base.Module)

func Fn23 added in v0.2.0

func Fn23(m *base.Module)

func Fn24 added in v0.2.0

func Fn24(m *base.Module, l0 int32) int32

func Fn25 added in v0.2.0

func Fn25(m *base.Module, l0 int32)

func Fn26

func Fn26(m *base.Module, l0 int32, l1 int32) int64

func Fn39

func Fn39(m *base.Module, l0 int32, l1 int32) int64

func Fn40 added in v0.2.0

func Fn40(m *base.Module, l0 int32, l1 int32) int64

func Fn41 added in v0.2.2

func Fn41(m *base.Module, l0 int32, l1 int32) int64

func Fn45 added in v0.2.0

func Fn45(m *base.Module, l0 int32, l1 int32) int64

func Fn46 added in v0.2.0

func Fn46(m *base.Module, l0 int32, l1 int32) int64

func Fn47 added in v0.2.0

func Fn47(m *base.Module, l0 int32, l1 int32) int64

func Fn48 added in v0.2.0

func Fn48(m *base.Module, l0 int32, l1 int32) int64

func Fn49 added in v0.2.0

func Fn49(m *base.Module, l0 int32, l1 int32) int64

func Fn50 added in v0.2.0

func Fn50(m *base.Module, l0 int32, l1 int32) int64

func Fn51 added in v0.2.0

func Fn51(m *base.Module, l0 int32, l1 int32) int64

func Fn52 added in v0.2.0

func Fn52(m *base.Module, l0 int32, l1 int32) int64

func Fn53 added in v0.2.0

func Fn53(m *base.Module, l0 int32, l1 int32) int64

func Fn54 added in v0.2.0

func Fn54(m *base.Module, l0 int32, l1 int32) int64

func Fn55 added in v0.2.0

func Fn55(m *base.Module, l0 int32, l1 int32) int64

func Fn56 added in v0.2.0

func Fn56(m *base.Module, l0 int32, l1 int32) int64

func Fn57 added in v0.2.0

func Fn57(m *base.Module, l0 int32, l1 int32) int64

func Fn58 added in v0.2.0

func Fn58(m *base.Module, l0 int32, l1 int32) int64

func Fn59 added in v0.2.2

func Fn59(m *base.Module, l0 int32, l1 int32) int64

func Fn60 added in v0.2.0

func Fn60(m *base.Module, l0 int32, l1 int32) int64

func Fn61 added in v0.2.0

func Fn61(m *base.Module, l0 int32, l1 int32) int64

func Fn63 added in v0.2.0

func Fn63(m *base.Module, l0 int32, l1 int32) int64

func Fn64 added in v0.2.0

func Fn64(m *base.Module, l0 int32, l1 int32) int64

func Fn65 added in v0.2.0

func Fn65(m *base.Module, l0 int32, l1 int32) int64

func Fn66 added in v0.2.0

func Fn66(m *base.Module, l0 int32, l1 int32) int64

func Fn67 added in v0.2.0

func Fn67(m *base.Module, l0 int32, l1 int32) int64

func Fn68 added in v0.2.0

func Fn68(m *base.Module, l0 int32, l1 int32) int64

func Fn69 added in v0.2.2

func Fn69(m *base.Module, l0 int32, l1 int32) int64

func Fn70 added in v0.2.0

func Fn70(m *base.Module, l0 int32, l1 int32) int64

func Fn71 added in v0.2.0

func Fn71(m *base.Module, l0 int32, l1 int32) int64

func Fn72 added in v0.2.2

func Fn72(m *base.Module, l0 int32, l1 int32) int64

func Fn74 added in v0.2.2

func Fn74(m *base.Module) int32

func Fn75 added in v0.2.2

func Fn75(m *base.Module)

func Fn820 added in v0.2.2

func Fn820(m *base.Module, l0 int32, l1 int32)

func InitElemSeg_0_0

func InitElemSeg_0_0(m *base.Module)

func InitElemSeg_1_0

func InitElemSeg_1_0(m *base.Module)

func InitElemSeg_2_0

func InitElemSeg_2_0(m *base.Module)

func InitElemSeg_3_0

func InitElemSeg_3_0(m *base.Module)

func InitElemSeg_4_0

func InitElemSeg_4_0(m *base.Module)

func InitElemSeg_5_0 added in v0.2.0

func InitElemSeg_5_0(m *base.Module)

func InitElemSeg_5_1 added in v0.2.0

func InitElemSeg_5_1(m *base.Module)

func InitElemSeg_6_0 added in v0.2.0

func InitElemSeg_6_0(m *base.Module)

func InitElemSeg_6_1 added in v0.2.0

func InitElemSeg_6_1(m *base.Module)

func InitElemSeg_6_2 added in v0.2.0

func InitElemSeg_6_2(m *base.Module)

func InitElemSeg_6_3 added in v0.2.0

func InitElemSeg_6_3(m *base.Module)

func InitElemSeg_6_4 added in v0.2.0

func InitElemSeg_6_4(m *base.Module)

func InitElemSeg_7_0 added in v0.2.0

func InitElemSeg_7_0(m *base.Module)

func InitElemSeg_7_1 added in v0.2.0

func InitElemSeg_7_1(m *base.Module)

func InitElemSeg_7_2 added in v0.2.0

func InitElemSeg_7_2(m *base.Module)

func InitElemSeg_7_3 added in v0.2.0

func InitElemSeg_7_3(m *base.Module)

func InitElemSeg_7_4 added in v0.2.0

func InitElemSeg_7_4(m *base.Module)

func InitElemSeg_7_5 added in v0.2.0

func InitElemSeg_7_5(m *base.Module)

func InitElemSeg_7_6 added in v0.2.0

func InitElemSeg_7_6(m *base.Module)

func InitElemSeg_7_7 added in v0.2.0

func InitElemSeg_7_7(m *base.Module)

func InitElemSeg_7_8 added in v0.2.0

func InitElemSeg_7_8(m *base.Module)

func InitElemSeg_7_9 added in v0.2.0

func InitElemSeg_7_9(m *base.Module)

func InitElemSeg_7_10 added in v0.2.0

func InitElemSeg_7_10(m *base.Module)

func InitElemSeg_7_11 added in v0.2.0

func InitElemSeg_7_11(m *base.Module)

func InitElemSeg_7_12 added in v0.2.0

func InitElemSeg_7_12(m *base.Module)

func InitElemSeg_7_13 added in v0.2.0

func InitElemSeg_7_13(m *base.Module)

func InitElemSeg_7_14 added in v0.2.0

func InitElemSeg_7_14(m *base.Module)

func InitElemSeg_7_15 added in v0.2.0

func InitElemSeg_7_15(m *base.Module)

func InitElemSeg_7_16 added in v0.2.0

func InitElemSeg_7_16(m *base.Module)

func InitElemSeg_7_17 added in v0.2.0

func InitElemSeg_7_17(m *base.Module)

func InitElemSeg_7_18 added in v0.2.0

func InitElemSeg_7_18(m *base.Module)

func Initialize

func Initialize(m *base.Module)

func Inv_0_0

func Inv_0_0(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_1

func Inv_0_1(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_2

func Inv_0_2(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_3

func Inv_0_3(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_4

func Inv_0_4(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_5

func Inv_0_5(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_6 added in v0.2.0

func Inv_0_6(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_7 added in v0.2.0

func Inv_0_7(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_8 added in v0.2.0

func Inv_0_8(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_9 added in v0.2.0

func Inv_0_9(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_10 added in v0.2.0

func Inv_0_10(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_11 added in v0.2.0

func Inv_0_11(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_12 added in v0.2.0

func Inv_0_12(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_13 added in v0.2.0

func Inv_0_13(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_14 added in v0.2.0

func Inv_0_14(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_15 added in v0.2.0

func Inv_0_15(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_16 added in v0.2.0

func Inv_0_16(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_17 added in v0.2.0

func Inv_0_17(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_18 added in v0.2.0

func Inv_0_18(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_19 added in v0.2.0

func Inv_0_19(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_20 added in v0.2.0

func Inv_0_20(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_21 added in v0.2.0

func Inv_0_21(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_22 added in v0.2.0

func Inv_0_22(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_23 added in v0.2.0

func Inv_0_23(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_24 added in v0.2.0

func Inv_0_24(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_25 added in v0.2.0

func Inv_0_25(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_26 added in v0.2.2

func Inv_0_26(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_27 added in v0.2.2

func Inv_0_27(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_28 added in v0.2.2

func Inv_0_28(m *base.Module, l0, l1 int32) (packed int64, err error)

func Inv_0_29 added in v0.2.2

func Inv_0_29(m *base.Module, l0, l1 int32) (packed int64, err error)

func Memory

func Memory(m *base.Module) []byte

func New

func New(env base.EnvImports) *base.Module

New constructs a *Module using DefaultWASI() for the wasi_snapshot_preview1 import. Use NewWithWASI to plug in a custom implementation (sandboxed FS, captured stdout, ...).

func NewFromSnapshot added in v0.2.0

func NewFromSnapshot(wasi_snapshot_preview1 base.Wasi_snapshot_preview1Imports, env base.EnvImports, memory []byte, memSize uint64, globals []uint64) *base.Module

func NewWithMemory added in v0.2.0

func NewWithMemory(wasi_snapshot_preview1 base.Wasi_snapshot_preview1Imports, env base.EnvImports, memory []byte, memSize uint64) *base.Module

func NewWithWASI

func NewWithWASI(wasi_snapshot_preview1 base.Wasi_snapshot_preview1Imports, env base.EnvImports) *base.Module

NewWithWASI constructs a *Module with a custom wasi_snapshot_preview1 implementation and a default initial linear-memory reservation. Use NewWithWASIReserve to pre-size the reservation (e.g. to cover an interpreter's whole boot and avoid reallocating/copying linear memory on the first grow).

func NewWithWASIReserve

func NewWithWASIReserve(wasi_snapshot_preview1 base.Wasi_snapshot_preview1Imports, env base.EnvImports, reserveBytes int) *base.Module

func WasiThreadStart added in v0.2.0

func WasiThreadStart(m *base.Module, l0 int32, l1 int32)

func WasmAlloc

func WasmAlloc(m *base.Module, l0 int32) int32

func WasmFree

func WasmFree(m *base.Module, l0 int32)

func WasmInit

func WasmInit(m *base.Module) int32

func WasmShutdown

func WasmShutdown(m *base.Module)

func WasmifyGetTypeName

func WasmifyGetTypeName(m *base.Module, l0 int32, l1 int32) int64

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL