Skip to main content

Module js

Module js 

Source

Modules§

detail
frontend
gc
gcstats
jit
oom
wasm

Structs§

AbstractGeneratorObject
AllocPolicyBase
AllocationMetadataBuilder
AllocationMetadataBuilder__bindgen_vtable
AtomicRefCounted
AutoAssertNoContentJS
AutoEnterOOMUnsafeRegion
AutoEnterPolicy
AutoEnterPolicy__bindgen_vtable
AutoGeckoProfilerEntry
AutoWaivePolicy
BackgroundAllocPolicyBase
BackgroundSystemAllocPolicy
BarrierMethods
BaseProxyHandler
BaseProxyHandler__bindgen_vtable
BaseScript
BaseShape
BufferIterator
ClassExtension
ClassSpec
CompartmentFilter
CompartmentTransplantCallback
CompartmentTransplantCallback__bindgen_vtable
CrossCompartmentWrapper
Debugger
ElementAdder
ForwardingProxyHandler
FrontendContext
GCMarker
GeckoProfilerBaselineOSRMarker
GeckoProfilerEntryMarker
GeckoProfilerThread
GenericPrinter
GenericTracerImpl
GetterSetter
HandleOperations
HeapOperations
InefficientNonFlatteningStringHashPolicy
This hash policy avoids flattening ropes (which perturbs the site being measured and requires a JSContext) at the expense of doing a FULL ROPE COPY on every hash and match! Beware.
IsHeapConstructibleType
JSDOMCallbacks
JSONPrinter
MallocAllocPolicy
MallocAllocPolicyBase
MallocArenaAllocPolicyBase
MutableHandleOperations
MutableValueOperations
MutableWrappedPtrOperations
Nursery
NurseryAllocableProxyHandler
ObjectOps
OpaqueCrossCompartmentWrapper
PersistentRootedBase
PersistentRootedTraceableBase
PropMap
PropertyResult
ProxyOptions
RefCounted
RegExpShared
RootedGCThingTraits
RootedOperations
RootedTraceableTraits
SavedFrame
Scope
ScriptEnvironmentPreparer
PrepareScriptEnvironmentAndInvoke asserts the embedder has registered a ScriptEnvironmentPreparer and then it calls the preparer’s ‘invoke’ method with the given |closure|, with the assumption that the preparer will set up any state necessary to run script in |global|, invoke |closure| with a valid JSContext*, report any exceptions thrown from the closure, and return.
ScriptEnvironmentPreparer_Closure
ScriptEnvironmentPreparer_Closure__bindgen_vtable
ScriptEnvironmentPreparer__bindgen_vtable
ScriptSource
SecurityWrapper
SecurityWrapper__bindgen_vtable
Shape
SharedArrayRawBuffer
SharedArrayRawBufferRefs
StableCellHasher
StackRootedBase
StackRootedTraceableBase
SystemAllocPolicy
TempAllocPolicy
TypedRootedGCThingBase
TypedRootedTraceableBase
VirtualTraceable
VirtualTraceable__bindgen_vtable
WrappedPtrOperations
Wrapper
WrapperOptions

Enums§

AllocFunction
BaseProxyHandler__bindgen_ty_1
ESClass
Enumeration describing possible values of the [[Class]] internal property value of objects.
ElementAdder_GetBehavior
ErrorArgumentsType
MemoryUse
StackFormat
ThreadType
Wrapper_Flags

Constants§

BaseProxyHandler_CALL
BaseProxyHandler_ENUMERATE
BaseProxyHandler_GET
BaseProxyHandler_GET_PROPERTY_DESCRIPTOR
BaseProxyHandler_NONE
BaseProxyHandler_SET
ClassSpec_DontDefineConstructor
ClassSpec_ProtoKeyMask
ClassSpec_ProtoKeyWidth
ProfilingStackFrame_NullPCOffset
TempAllocPolicy_JsContextTag

Statics§

AutoEnterOOMUnsafeRegion_annotateOOMSizeCallback
CrossCompartmentWrapper_singleton
CrossCompartmentWrapper_singletonWithPrototype
OpaqueCrossCompartmentWrapper_singleton
ProxyClass
ProxyClassExtension
ProxyClassOps
ProxyObjectOps
Wrapper_defaultProto
Wrapper_family
Wrapper_singleton
Wrapper_singletonWithPrototype

Functions§

AddRawValueRoot⚠
AssertHeapIsIdle⚠
AssertJSStringBufferInCorrectArena⚠
AssertSameCompartment⚠
AssertSameCompartment1⚠
CheckedUnwrapDynamic⚠
CheckedUnwrapStatic⚠
CommitPendingWrapperPreservations⚠
CompartmentHasLiveGlobal⚠
CurrentThreadCanAccessRuntime⚠
CurrentThreadCanAccessZone⚠
DateGetMsecSinceEpoch⚠
DateIsValid⚠
Detect whether the internal date value is NaN.
DefineFunctionWithReserved⚠
EnableContextProfilingStack⚠
ExecuteInFrameScriptEnvironment⚠
ForwardToNative⚠
FunctionHasNativeReserved⚠
GetAllocationMetadata⚠
Get the metadata associated with an object.
GetAnyRealmInZone⚠
GetArrayBufferViewLengthAndData⚠
GetDOMCallbacks⚠
GetElementsWithAdder⚠
GetErrorMessage⚠
A JSErrorCallback suitable for passing to |JS_ReportErrorNumberASCII| and similar functions in concert with one of the |JSErrNum| error numbers.
GetErrorTypeName⚠
Get an error type name from a JSExnType constant. Returns nullptr for invalid arguments and JSEXN_INTERNALERR
GetFirstGlobalInCompartment⚠
GetFirstSubsumedSavedFrame⚠
Get the first SavedFrame object in this SavedFrame stack whose principals are subsumed by the given |principals|. If there is no such frame, return nullptr.
GetFunctionNativeReserved⚠
Get or set function’s reserved slot value. fun should be a function created with *WithReserved API above. Such functions have 2 reserved slots, and which can be either 0 or 1.
GetGCHeapSizeForZone⚠
This function reports the amount of GC heap memory referred to from this zone.
GetGCHeapUsage⚠
GetJITHeapSizeForZone⚠
This function reports the amount of JIT memory used by this zone.
GetMallocHeapSizeForZone⚠
This function reports the size of all malloc memory referred to from this zone.
GetMapObjectKeysAndValuesInterleaved⚠
GetMemoryUsageForZone⚠
This function reports memory used by a zone in bytes, this includes:
GetObjectProto⚠
GetObjectZoneFromAnyThread⚠
GetPropertyKeys⚠
Add some or all property keys of obj to the id vector *props.
GetRealmOriginalEval⚠
GetRealmZone⚠
GetSCOffset⚠
GetSetObjectKeys⚠
Direct embedder access for retrieving a copy of all entries in a Set or Map object.
GetSharedMemoryUsageForZone⚠
GetStackFormat⚠
GetStaticPrototype⚠
GetTestingFunctions⚠
InitMallocAllocator⚠
IsArgumentsObject⚠
IsCompartmentZoneSweepingOrCompacting⚠
IsFunctionObject⚠
IsObjectInContextCompartment⚠
IsSavedFrame⚠
IsSharableCompartment⚠
IsSystemCompartment⚠
IsSystemRealm⚠
IsSystemZone⚠
IsWindowProxy⚠
Returns true iff obj has the WindowProxy Class (see SetWindowProxyClass).
MaybeGetModuleFilename⚠
MemoryReportingSundriesThreshold⚠
In memory reporting, we have concept of “sundries”, line items which are too small to be worth reporting individually. Under some circumstances, a memory reporter gets tossed into the sundries bucket if it’s smaller than MemoryReportingSundriesThreshold() bytes.
NewFunctionByIdWithReserved⚠
NewFunctionByIdWithReservedAndProto⚠
NewFunctionWithReserved⚠
NewProxyObject⚠
NoteIntentionalCrash⚠
Hint that we expect a crash. Currently, the only thing that cares is the breakpad injector, which (if loaded) will suppress minidump generation.
NotifyAnimationActivity⚠
NukeNonCCWProxy⚠
PrepareScriptEnvironmentAndInvoke⚠
ProtoKeyToClass⚠
RecomputeWrappers⚠
RegisterContextProfilerMarkers⚠
RemapAllWrappersForObject⚠
RemapRemoteWindowProxies⚠
RemoveRawValueRoot⚠
RenewProxyObject⚠
ReportAccessDenied⚠
ReportBadValueTypeAndCrash⚠
ReportIsNotFunction⚠
ReportLargeOutOfMemory⚠
ReportOutOfMemory⚠
ReportOutOfMemory1⚠
RestartDrainingJobQueue⚠
Instruct the runtime to restart draining the internal job queue after stopping it with StopDrainingJobQueue.
RunJobs⚠
SetAllocationMetadataBuilder⚠
Specify a callback to invoke when creating each JS object in the current compartment, which may return a metadata object to associate with the object.
SetContextProfilingStack⚠
SetDOMCallbacks⚠
SetFunctionNativeReserved⚠
SetPreserveWrapperCallbacks⚠
SetScriptEnvironmentPreparer⚠
SetStackFormat⚠
SetWindowProxy⚠
Associates a WindowProxy with a Window (global object). windowProxy must have the Class set by SetWindowProxyClass.
SetWindowProxyClass⚠
Tell the JS engine which Class is used for WindowProxy objects. Used by the functions below.
ShouldIgnorePropertyDefinition⚠
ShutDownMallocAllocator⚠
StopDrainingJobQueue⚠
Instruct the runtime to stop draining the internal job queue.
StringIsArrayIndex⚠
Determine whether the given string is an array index in the sense of https://tc39.github.io/ecma262/#array-index.
StringIsArrayIndex1⚠
Overload of StringIsArrayIndex taking a (char16_t*,length) pair. Behaves the same as the JSLinearString version.
ToBooleanSlow⚠
ToInt8Slow⚠
ToInt16Slow⚠
ToInt32Slow⚠
ToInt64Slow⚠
ToNumberSlow⚠
ToObjectSlow⚠
ToStringSlow⚠
ToUint8Slow⚠
ToUint16Slow⚠
ToUint32Slow⚠
ToUint64Slow⚠
ToWindowIfWindowProxy⚠
If obj is a WindowProxy, get its associated Window (the compartment’s global), else return obj. This function is infallible and never returns nullptr.
TraceValueArray⚠
TransparentObjectWrapper⚠
Unbox⚠
UncheckedUnwrap⚠
UncheckedUnwrapWithoutExpose⚠
UninlinedIsCrossCompartmentWrapper⚠
UnsafeTraceManuallyBarrieredEdge⚠
UnwrapArrayBufferView⚠
UnwrapBigInt64Array⚠
UnwrapBigUint64Array⚠
UnwrapFloat16Array⚠
UnwrapFloat32Array⚠
UnwrapFloat64Array⚠
UnwrapInt8Array⚠
UnwrapInt16Array⚠
UnwrapInt32Array⚠
UnwrapOneCheckedDynamic⚠
UnwrapOneCheckedStatic⚠
UnwrapUint8Array⚠
UnwrapUint8ClampedArray⚠
UnwrapUint16Array⚠
UnwrapUint32Array⚠
UseInternalJobQueues⚠
Use the runtime’s internal handling of job queues for Promise jobs.

Type Aliases§

AutoEnterOOMUnsafeRegion_AnnotateOOMAllocationSizeCallback
AutoEnterPolicy_Action
BaseProxyHandler_Action
ClassObjectCreationOp
Callback for the creation of constructor and prototype objects.
CrossCompartmentSecurityWrapper
DOMCallbacks
DOMExtractExceptionInfo
DOMInstanceClassHasProtoAtDepth
DOMInstanceClassIsError
DefaultHasher
DefinePropertyOp
DeletePropertyOp
EnableIfABOVType
FinishClassInitOp
Callback for custom post-processing after class initialization via ClassSpec.
GetElementsOp
GetOwnPropertyOp
GetPropertyOp
HasPropertyOp
HasReleasedWrapperCallback
HashMap
HashNumber
HashSet
InefficientNonFlatteningStringHashPolicy_Lookup
LookupPropertyOp
PointerHasher
PreserveWrapperCallback
RootedGCThingTraits_PersistentBase
RootedGCThingTraits_StackBase
RootedTraceableTraits_PersistentBase
RootedTraceableTraits_StackBase
SecurityWrapper_Permissive
SecurityWrapper_Restrictive
SetPropertyOp
StableCellHasher_Key
StableCellHasher_Lookup
UniquePtr
Vector