wag: github.com/tsavola/wag/compile/event Index | Files

package event

import "github.com/tsavola/wag/compile/event"

Index

Package Files

event.go

Constants

const (
    // The init routine can be executed.  It may cause NoFunction traps.
    //
    // The event handler is a good place to resolve the entry function address,
    // because the compiler doesn't mutate the ObjectMapper during event
    // handler invocation.  CodeConfig.LastInitFunc must be greater or equal to
    // the entry function index - otherwise its address is not available during
    // Init event handling.
    //
    // This event is not necessarily delivered.
    Init = Event(iota)

    // All functions have been generated, but links to them haven't yet been
    // updated in previous functions.
    //
    // If required by ISA, code cache should be invalidated before the event
    // handler returns.
    //
    // This event is not necessarily delivered.
    FunctionBarrier
)

type Event Uses

type Event int

Event handler is invoked from a single goroutine (per compilation).

func (Event) String Uses

func (e Event) String() string

Package event is imported by 3 packages. Updated 2018-11-14. Refresh now. Tools for package owners.