QuickBEAM.VM.Invocation (QuickBEAM v0.10.9)

Copy Markdown View Source

Unified JS function invocation: dispatches to compiled modules, interpreter fallback, builtins, and native callbacks.

Summary

Functions

Invokes a callback, converting JavaScript throws to :undefined.

Constructs a value from compiler-generated runtime helper code.

Dispatches a callable to bytecode, closure, bound-function, or builtin execution.

Invokes a JavaScript callable with positional arguments and a gas budget.

Helper for unified js function invocation: dispatches to compiled modules, interpreter fallback, builtins, and native callbacks.

Invokes a callback and propagates JavaScript throws to the caller.

Invokes a JavaScript constructor with this and new.target context.

Invokes a method from compiler-generated runtime helper code with an explicit receiver.

Invokes a callable from compiler-generated runtime helper code.

Invokes a JavaScript callable with an explicit this receiver.

Functions

call_callback(fun, args)

Invokes a callback, converting JavaScript throws to :undefined.

call_callback(ctx, fun, args)

construct_runtime(ctor, new_target, args)

Constructs a value from compiler-generated runtime helper code.

construct_runtime(ctx, ctor, new_target, args)

dispatch(fun, args, gas, ctx, this)

Dispatches a callable to bytecode, closure, bound-function, or builtin execution.

invoke(fun, args, gas \\ Runtime.gas_budget())

Invokes a JavaScript callable with positional arguments and a gas budget.

invoke_callback(fun, args)

Helper for unified js function invocation: dispatches to compiled modules, interpreter fallback, builtins, and native callbacks.

invoke_callback(ctx, fun, args)

invoke_callback_or_throw(fun, args, this_obj \\ nil)

Invokes a callback and propagates JavaScript throws to the caller.

invoke_constructor(fun, args, this_obj, new_target)

Invokes a JavaScript constructor with this and new.target context.

invoke_constructor(fun, args, gas, this_obj, new_target)

invoke_method_runtime(fun, this_obj, args)

Invokes a method from compiler-generated runtime helper code with an explicit receiver.

invoke_method_runtime(ctx, fun, this_obj, args)

invoke_runtime(fun, args)

Invokes a callable from compiler-generated runtime helper code.

invoke_runtime(ctx, closure, args)

invoke_with_receiver(fun, args, this_obj)

Invokes a JavaScript callable with an explicit this receiver.

invoke_with_receiver(fun, args, gas, this_obj)

unwrap_constructor_target(other)