Skip to main content

Module script_runtime

Module script_runtime 

Source
Expand description

The script runtime contains common traits and structs commonly used by the script thread, the dom, and the worker threads.

StructsΒ§

GlobalSizeData πŸ”’
InterfaceSizeData πŸ”’
IntroductionType πŸ”’
introductionType values in SpiderMonkey TransitiveCompileOptions.
PerGlobalInterfaceSizes πŸ”’
A map of globals to size information for those globals. The key is the global’s JS reflector pointer as an integer.
Runnable πŸ”’
Runtime πŸ”’
RuntimeCallbackData πŸ”’
Data that is sent to SpiderMonkey runtime callbacks as a pointer, which allows access to the Runtime state.
StreamConsumer πŸ”’
ThreadSafeJSContext πŸ”’
A version of the JSContext that can be used from other threads and is thus Send and Sync. This should only ever expose operations that are marked as thread-safe by the SpiderMonkey API, ie ones that only atomic fields in JSContext.

EnumsΒ§

ScriptThreadEventCategory πŸ”’

ConstantsΒ§

ALREADY_COMPUTED_OBJECTS πŸ”’
DOM_OBJECT_SIZES πŸ”’
GC_CYCLE_START πŸ”’
GC_SLICE_START πŸ”’
MALLOC_SIZE_OF_OPS πŸ”’

StaticsΒ§

SECURITY_CALLBACKS πŸ”’

FunctionsΒ§

code_for_eval_gets πŸ”’ ⚠
compute_size πŸ”’
consume_stream πŸ”’ ⚠
Implements the steps to compile webassembly response mentioned here https://webassembly.github.io/spec/web-api/#compile-a-potential-webassembly-response
content_security_policy_allows πŸ”’ ⚠
debug_gc_callback πŸ”’ ⚠
gc_slice_callback πŸ”’ ⚠
get_reports πŸ”’
get_size πŸ”’ ⚠
in_range πŸ”’
invoke_script_environment_preparer πŸ”’ ⚠
notify_about_rejected_promises πŸ”’
https://html.spec.whatwg.org/multipage/#notify-about-rejected-promises
promise_rejection_tracker πŸ”’ ⚠
https://html.spec.whatwg.org/multipage/#the-hostpromiserejectiontracker-implementation
report_stream_error πŸ”’ ⚠
safely_convert_null_to_string πŸ”’
servo_build_id πŸ”’ ⚠
set_gc_zeal_options πŸ”’ ⚠
trace_rust_roots πŸ”’ βš