v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
contexts-inl.h File Reference
Include dependency graph for contexts-inl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  v8
 
namespace  v8::internal
 

Macros

#define NATIVE_CONTEXT_FIELD_ACCESSORS(index, type, name)
 
#define CHECK_FOLLOWS2(v1, v2)
 
#define CHECK_FOLLOWS4(v1, v2, v3, v4)
 

Functions

 v8::internal::EXTERNAL_POINTER_ACCESSORS (NativeContext, microtask_queue, MicrotaskQueue *, kMicrotaskQueueOffset, kNativeContextMicrotaskQueueTag) void NativeContext
 

Macro Definition Documentation

◆ CHECK_FOLLOWS2

#define CHECK_FOLLOWS2 ( v1,
v2 )
Value:
static_assert((v1 + 1) == (v2))

Definition at line 205 of file contexts-inl.h.

◆ CHECK_FOLLOWS4

#define CHECK_FOLLOWS4 ( v1,
v2,
v3,
v4 )
Value:
CHECK_FOLLOWS2(v1, v2); \
CHECK_FOLLOWS2(v2, v3); \
CHECK_FOLLOWS2(v3, v4)
#define CHECK_FOLLOWS2(v1, v2)

Definition at line 206 of file contexts-inl.h.

◆ NATIVE_CONTEXT_FIELD_ACCESSORS

#define NATIVE_CONTEXT_FIELD_ACCESSORS ( index,
type,
name )
Value:
void Context::set_##name(Tagged<UNPAREN(type)> value) { \
DCHECK(IsNativeContext(*this)); \
set(index, value, UPDATE_WRITE_BARRIER, kReleaseStore); \
} \
bool Context::is_##name(Tagged<UNPAREN(type)> value) const { \
DCHECK(IsNativeContext(*this)); \
return Cast<UNPAREN(type)>(get(index)) == value; \
} \
Tagged<UNPAREN(type)> Context::name() const { \
DCHECK(IsNativeContext(*this)); \
return Cast<UNPAREN(type)>(get(index)); \
} \
Tagged<UNPAREN(type)> Context::name(AcquireLoadTag tag) const { \
DCHECK(IsNativeContext(*this)); \
return Cast<UNPAREN(type)>(get(index, tag)); \
}
const char * name
Definition builtins.cc:39
Tagged(T object) -> Tagged< T >
#define UNPAREN(X)
Definition macros.h:53
std::unique_ptr< ValueMirror > value

Definition at line 185 of file contexts-inl.h.