v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
contexts.h File Reference
#include "include/v8-promise.h"
#include "src/handles/handles.h"
#include "src/objects/fixed-array.h"
#include "src/objects/function-kind.h"
#include "src/objects/ordered-hash-table.h"
#include "src/objects/property-cell.h"
#include "src/objects/object-macros.h"
#include "torque-generated/src/objects/contexts-tq.inc"
#include "src/objects/object-macros-undef.h"
Include dependency graph for contexts.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  v8::internal::Context
 
class  v8::internal::NativeContext
 
class  v8::internal::ScriptContextTableShape
 
class  v8::internal::ScriptContextTable
 

Namespaces

namespace  v8
 
namespace  v8::internal
 

Macros

#define NATIVE_CONTEXT_FIELDS(V)
 
#define NATIVE_CONTEXT_SLOT(index, type, name)
 
#define NATIVE_CONTEXT_FIELD_ACCESSORS(index, type, name)
 
#define NATIVE_CONTEXT_FIELDS_DEF(V)
 

Typedefs

using v8::internal::ContextField = Context::Field
 

Enumerations

enum  v8::internal::ContextLookupFlags { v8::internal::FOLLOW_CONTEXT_CHAIN = 1 << 0 , v8::internal::FOLLOW_PROTOTYPE_CHAIN = 1 << 1 , v8::internal::DONT_FOLLOW_CHAINS = 0 , v8::internal::FOLLOW_CHAINS = FOLLOW_CONTEXT_CHAIN | FOLLOW_PROTOTYPE_CHAIN }
 

Macro Definition Documentation

◆ NATIVE_CONTEXT_FIELD_ACCESSORS

#define NATIVE_CONTEXT_FIELD_ACCESSORS ( index,
type,
name )
Value:
inline void set_##name(Tagged<UNPAREN(type)> value); \
inline bool is_##name(Tagged<UNPAREN(type)> value) const; \
inline Tagged<UNPAREN(type)> name() const; \
inline Tagged<UNPAREN(type)> name(AcquireLoadTag) const;
const char * name
Definition builtins.cc:39
ZoneVector< InstructionOperand > * set_
#define UNPAREN(X)
Definition macros.h:53

Definition at line 637 of file contexts.h.

◆ NATIVE_CONTEXT_FIELDS

#define NATIVE_CONTEXT_FIELDS ( V)

Definition at line 46 of file contexts.h.

◆ NATIVE_CONTEXT_FIELDS_DEF

#define NATIVE_CONTEXT_FIELDS_DEF ( V)
Value:
/* TODO(ishell): move definition of common context offsets to Context. */ \
V(kStartOfNativeContextFieldsOffset, \
(FIRST_WEAK_SLOT - MIN_CONTEXT_EXTENDED_SLOTS) * kTaggedSize) \
V(kEndOfStrongFieldsOffset, 0) \
V(kStartOfWeakFieldsOffset, \
(NATIVE_CONTEXT_SLOTS - FIRST_WEAK_SLOT) * kTaggedSize) \
V(kEndOfWeakFieldsOffset, 0) \
V(kEndOfNativeContextFieldsOffset, 0) \
V(kEndOfTaggedFieldsOffset, 0) \
/* Raw data. */ \
V(kMicrotaskQueueOffset, kSystemPointerSize) \
/* Total size. */ \
V(kSize, 0)

Definition at line 768 of file contexts.h.

◆ NATIVE_CONTEXT_SLOT

#define NATIVE_CONTEXT_SLOT ( index,
type,
name )
Value:
OptionalOpIndex index

Definition at line 537 of file contexts.h.