// Used by wasm::EnsureThreadSignalHandlers(cx) to install thread signal // handlers once per JSContext/thread. bool triedToInstallSignalHandlers; bool haveSignalHandlers;
// Like JSContext::jitStackLimit but used for wasm code. Wasm code doesn't // use the stack limit for interrupts, but it does update it for stack // switching.
JS::NativeStackLimit stackLimit;
private: #ifdef ENABLE_WASM_JSPI // A stack target for use when switching to the main stack.
StackTarget mainStackTarget_;
# ifdefined(_WIN32) // On WIN64, the Thread Information Block stack limits must be updated on // stack switches to avoid failures on SP checks during vectored exeption // handling for traps. We cache the TIB here for easy manipulation.
_NT_TIB* tib_ = nullptr; # endif
// The currently active continuation. Null if we're executing on the // main stack, otherwise we're on a continuation stack. This is a non owning // pointer.
ContStack* currentStack_; // The handlers pushed on the main stack to enter onto the current stack of // continuations. A cached version of currentStack_->findBaseHandlers(). // // Non-null iff we are on a continuation's stack. Handlers are always the // last thing pushed on a stack before a `resume`, and so this also doubles // as the last SP value on the main stack before we switching into // continuation stacks. Wasm exits into VM code use this value to switch back // to the main stack. // // A continuation can call into VM/JS code on the main stack, which can then // call into a new stack of continuations. The switch to the main stack saves // and restores these fields, and we only track the top-most values for these // fields.
Handlers* baseHandlers_;
// Allocator for all ContStack objects owned by this context.
ContStackAllocator contStacks_; #endif
};
} // namespace js::wasm
#endif// wasm_context_h
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-09-30)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.