wasm2go

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MPL-2.0 Imports: 5 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/p4/, 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 Fn16

func Fn16(m *base.Module)

func Fn17

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

func Fn18

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

func Fn19

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

func Fn26

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

func Fn31

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

func Fn33

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

func Fn34

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

func Fn35

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

func Fn36

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

func Fn38

func Fn38(m *base.Module) int32

func Fn39

func Fn39(m *base.Module)

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_3_1

func InitElemSeg_3_1(m *base.Module)

func InitElemSeg_4_0

func InitElemSeg_4_0(m *base.Module)

func InitElemSeg_4_1

func InitElemSeg_4_1(m *base.Module)

func InitElemSeg_4_2

func InitElemSeg_4_2(m *base.Module)

func InitElemSeg_4_3

func InitElemSeg_4_3(m *base.Module)

func InitElemSeg_4_4

func InitElemSeg_4_4(m *base.Module)

func InitElemSeg_4_5

func InitElemSeg_4_5(m *base.Module)

func InitElemSeg_4_6

func InitElemSeg_4_6(m *base.Module)

func InitElemSeg_4_7

func InitElemSeg_4_7(m *base.Module)

func InitElemSeg_4_8

func InitElemSeg_4_8(m *base.Module)

func InitElemSeg_4_9

func InitElemSeg_4_9(m *base.Module)

func InitElemSeg_4_10

func InitElemSeg_4_10(m *base.Module)

func InitElemSeg_4_11

func InitElemSeg_4_11(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 Memory

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

func New

func New() *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 NewWithWASI

func NewWithWASI(wasi_snapshot_preview1 base.Wasi_snapshot_preview1Imports) *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, reserveBytes int) *base.Module

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