#include <contexts.h>
|
| enum | Field {
SCOPE_INFO_INDEX
, PREVIOUS_INDEX
, EXTENSION_INDEX
, NEXT_CONTEXT_LINK
,
NATIVE_CONTEXT_SLOTS
, FIRST_WEAK_SLOT = NEXT_CONTEXT_LINK
, FIRST_JS_ARRAY_MAP_SLOT = JS_ARRAY_PACKED_SMI_ELEMENTS_MAP_INDEX
, MIN_CONTEXT_SLOTS = EXTENSION_INDEX
,
MIN_CONTEXT_EXTENDED_SLOTS = EXTENSION_INDEX + 1
, THROWN_OBJECT_INDEX = MIN_CONTEXT_SLOTS
, WRAPPED_CONTEXT_INDEX = MIN_CONTEXT_EXTENDED_SLOTS
, CONTEXT_SIDE_TABLE_PROPERTY_INDEX = MIN_CONTEXT_SLOTS
} |
| |
|
| V8_INLINE Tagged< Object > | get (int index) const |
| |
| V8_INLINE Tagged< Object > | get (PtrComprCageBase cage_base, int index) const |
| |
| V8_INLINE void | set (int index, Tagged< Object > value, WriteBarrierMode mode=UPDATE_WRITE_BARRIER) |
| |
| V8_INLINE Tagged< Object > | get (int index, AcquireLoadTag) const |
| |
| V8_INLINE Tagged< Object > | get (PtrComprCageBase cage_base, int index, AcquireLoadTag) const |
| |
| V8_INLINE void | set (int index, Tagged< Object > value, WriteBarrierMode mode, ReleaseStoreTag) |
| |
| void | Initialize (Isolate *isolate) |
| |
| Tagged< Object > | unchecked_previous () const |
| |
| Tagged< Context > | previous () const |
| |
| Tagged< Object > | next_context_link () const |
| |
| bool | has_extension () const |
| |
| Tagged< HeapObject > | extension () const |
| |
| V8_EXPORT_PRIVATE void | set_extension (Tagged< HeapObject > object, WriteBarrierMode mode=UPDATE_WRITE_BARRIER) |
| |
| Tagged< JSObject > | extension_object () const |
| |
| Tagged< JSReceiver > | extension_receiver () const |
| |
| Tagged< SourceTextModule > | module () const |
| |
| Tagged< Context > | declaration_context () const |
| |
| bool | is_declaration_context () const |
| |
| Tagged< Context > | closure_context () const |
| |
| V8_EXPORT_PRIVATE Tagged< JSGlobalProxy > | global_proxy () const |
| |
| V8_EXPORT_PRIVATE Tagged< JSGlobalObject > | global_object () const |
| |
| Tagged< Context > | script_context () const |
| |
| Tagged< NativeContext > | native_context () const |
| |
| bool | IsDetached () const |
| |
| bool | IsFunctionContext () const |
| |
| bool | IsCatchContext () const |
| |
| bool | IsWithContext () const |
| |
| bool | IsDebugEvaluateContext () const |
| |
| bool | IsAwaitContext () const |
| |
| bool | IsBlockContext () const |
| |
| bool | IsModuleContext () const |
| |
| bool | IsEvalContext () const |
| |
| bool | IsScriptContext () const |
| |
| bool | HasSameSecurityTokenAs (Tagged< Context > that) const |
| |
| Handle< Object > | ErrorMessageForCodeGenerationFromStrings () |
| |
| DirectHandle< Object > | ErrorMessageForWasmCodeGeneration () |
| |
| Tagged< Map > | GetInitialJSArrayMap (ElementsKind kind) const |
| |
| std::optional< ContextSidePropertyCell::Property > | GetScriptContextSideProperty (size_t index) const |
| |
|
| static V8_INLINE constexpr int | SizeFor (int length) |
| |
| static V8_INLINE constexpr int | OffsetOfElementAt (int index) |
| |
| static V8_INLINE constexpr int | SlotOffset (int index) |
| |
| static Handle< Object > | Lookup (Handle< Context > context, Handle< String > name, ContextLookupFlags flags, int *index, PropertyAttributes *attributes, InitializationFlag *init_flag, VariableMode *variable_mode, bool *is_sloppy_function_name=nullptr) |
| |
| static int | FunctionMapIndex (LanguageMode language_mode, FunctionKind kind, bool has_shared_name) |
| |
| static int | ArrayMapIndex (ElementsKind elements_kind) |
| |
| static Tagged< ContextSidePropertyCell > | GetOrCreateContextSidePropertyCell (DirectHandle< Context > context, size_t index, ContextSidePropertyCell::Property property, Isolate *isolate) |
| |
| static DirectHandle< Object > | LoadScriptContextElement (DirectHandle< Context > script_context, int index, DirectHandle< Object > new_value, Isolate *isolate) |
| |
| static void | StoreScriptContextAndUpdateSlotProperty (DirectHandle< Context > script_context, int index, DirectHandle< Object > new_value, Isolate *isolate) |
| |
Definition at line 469 of file contexts.h.
◆ Field
| Enumerator |
|---|
| SCOPE_INFO_INDEX | |
| PREVIOUS_INDEX | |
| EXTENSION_INDEX | |
| NEXT_CONTEXT_LINK | |
| NATIVE_CONTEXT_SLOTS | |
| FIRST_WEAK_SLOT | |
| FIRST_JS_ARRAY_MAP_SLOT | |
| MIN_CONTEXT_SLOTS | |
| MIN_CONTEXT_EXTENDED_SLOTS | |
| THROWN_OBJECT_INDEX | |
| WRAPPED_CONTEXT_INDEX | |
| CONTEXT_SIDE_TABLE_PROPERTY_INDEX | |
Definition at line 527 of file contexts.h.
◆ ArrayMapIndex()
| static int v8::internal::Context::ArrayMapIndex |
( |
ElementsKind | elements_kind | ) |
|
|
inlinestatic |
◆ closure_context()
| Tagged< Context > v8::internal::Context::closure_context |
( |
| ) |
const |
◆ declaration_context()
| Tagged< Context > v8::internal::Context::declaration_context |
( |
| ) |
const |
◆ ErrorMessageForCodeGenerationFromStrings()
| Handle< Object > v8::internal::Context::ErrorMessageForCodeGenerationFromStrings |
( |
| ) |
|
◆ ErrorMessageForWasmCodeGeneration()
◆ extension()
◆ extension_object()
◆ extension_receiver()
◆ FunctionMapIndex()
◆ get() [1/4]
| Tagged< Object > v8::internal::Context::get |
( |
int | index | ) |
const |
◆ get() [2/4]
◆ get() [3/4]
◆ get() [4/4]
◆ GetInitialJSArrayMap()
◆ GetOrCreateContextSidePropertyCell()
◆ GetScriptContextSideProperty()
◆ global_object()
◆ global_proxy()
◆ has_extension()
| bool v8::internal::Context::has_extension |
( |
| ) |
const |
|
inline |
◆ HasSameSecurityTokenAs()
◆ Initialize()
| void v8::internal::Context::Initialize |
( |
Isolate * | isolate | ) |
|
◆ is_declaration_context()
| bool v8::internal::Context::is_declaration_context |
( |
| ) |
const |
◆ IsAwaitContext()
| bool v8::internal::Context::IsAwaitContext |
( |
| ) |
const |
|
inline |
◆ IsBlockContext()
| bool v8::internal::Context::IsBlockContext |
( |
| ) |
const |
|
inline |
◆ IsCatchContext()
| bool v8::internal::Context::IsCatchContext |
( |
| ) |
const |
|
inline |
◆ IsDebugEvaluateContext()
| bool v8::internal::Context::IsDebugEvaluateContext |
( |
| ) |
const |
|
inline |
◆ IsDetached()
| bool v8::internal::Context::IsDetached |
( |
| ) |
const |
|
inline |
◆ IsEvalContext()
| bool v8::internal::Context::IsEvalContext |
( |
| ) |
const |
|
inline |
◆ IsFunctionContext()
| bool v8::internal::Context::IsFunctionContext |
( |
| ) |
const |
|
inline |
◆ IsModuleContext()
| bool v8::internal::Context::IsModuleContext |
( |
| ) |
const |
|
inline |
◆ IsScriptContext()
| bool v8::internal::Context::IsScriptContext |
( |
| ) |
const |
|
inline |
◆ IsWithContext()
| bool v8::internal::Context::IsWithContext |
( |
| ) |
const |
|
inline |
◆ LoadScriptContextElement()
◆ Lookup()
◆ module()
◆ native_context()
◆ next_context_link()
| Tagged< Object > v8::internal::Context::next_context_link |
( |
| ) |
const |
|
inline |
◆ OffsetOfElementAt()
| static V8_INLINE constexpr int v8::internal::Context::OffsetOfElementAt |
( |
int | index | ) |
|
|
inlinestaticconstexpr |
◆ previous()
◆ script_context()
| Tagged< Context > v8::internal::Context::script_context |
( |
| ) |
const |
◆ set() [1/2]
◆ set() [2/2]
◆ set_extension()
◆ set_previous()
◆ SizeFor()
| static V8_INLINE constexpr int v8::internal::Context::SizeFor |
( |
int | length | ) |
|
|
inlinestaticconstexpr |
◆ SlotOffset()
| static V8_INLINE constexpr int v8::internal::Context::SlotOffset |
( |
int | index | ) |
|
|
inlinestaticconstexpr |
◆ StoreScriptContextAndUpdateSlotProperty()
◆ unchecked_previous()
| Tagged< Object > v8::internal::Context::unchecked_previous |
( |
| ) |
const |
|
inline |
◆ Factory
◆ FIRST_FIXED_TYPED_ARRAY_FUN_INDEX
| const int v8::internal::Context::FIRST_FIXED_TYPED_ARRAY_FUN_INDEX = UINT8_ARRAY_FUN_INDEX |
|
static |
◆ FIRST_FUNCTION_MAP_INDEX
| const int v8::internal::Context::FIRST_FUNCTION_MAP_INDEX = SLOPPY_FUNCTION_MAP_INDEX |
|
static |
◆ FIRST_RAB_GSAB_TYPED_ARRAY_MAP_INDEX
| const int v8::internal::Context::FIRST_RAB_GSAB_TYPED_ARRAY_MAP_INDEX |
|
static |
Initial value:=
RAB_GSAB_UINT8_ARRAY_MAP_INDEX
Definition at line 574 of file contexts.h.
◆ kExtendedHeaderSize
◆ kExtensionOffset
◆ kExtensionSize
| const int v8::internal::Context::kExtensionSize |
|
static |
Initial value:=
@ MIN_CONTEXT_EXTENDED_SLOTS
constexpr int kTaggedSize
Definition at line 564 of file contexts.h.
◆ kInvalidContext
| const int v8::internal::Context::kInvalidContext = 1 |
|
static |
◆ kNoContext
| const int v8::internal::Context::kNoContext = 0 |
|
static |
◆ kNotFound
| const int v8::internal::Context::kNotFound = -1 |
|
static |
◆ kPreviousOffset
◆ kScopeInfoOffset
| const int v8::internal::Context::kScopeInfoOffset = kElementsOffset |
|
static |
◆ kTodoHeaderSize
◆ LAST_FUNCTION_MAP_INDEX
| const int v8::internal::Context::LAST_FUNCTION_MAP_INDEX = CLASS_FUNCTION_MAP_INDEX |
|
static |
The documentation for this class was generated from the following files: