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

Go to the source code of this file.

Classes

class  v8::internal::CommonFrameConstants
 
class  v8::internal::StandardFrameConstants
 
class  v8::internal::TypedFrameConstants
 
class  v8::internal::BuiltinFrameConstants
 
class  v8::internal::ConstructFrameConstants
 
class  v8::internal::FastConstructFrameConstants
 
class  v8::internal::BuiltinContinuationFrameConstants
 
class  v8::internal::ExitFrameConstants
 
class  v8::internal::BuiltinExitFrameConstants
 
class  v8::internal::ApiCallbackExitFrameConstants
 
class  v8::internal::ApiAccessorExitFrameConstants
 
class  v8::internal::UnoptimizedFrameConstants
 
class  v8::internal::InterpreterFrameConstants
 
class  v8::internal::BaselineFrameConstants
 

Namespaces

namespace  v8
 
namespace  v8::internal
 

Macros

#define FRAME_PUSHED_VALUE_OFFSET(parent, x)
 
#define FRAME_SIZE(parent, count)
 
#define FRAME_SIZE_FROM_FP(parent, count)
 
#define DEFINE_FRAME_SIZES(parent, count)
 
#define STANDARD_FRAME_EXTRA_PUSHED_VALUE_OFFSET(x)
 
#define DEFINE_STANDARD_FRAME_SIZES(count)
 
#define TYPED_FRAME_PUSHED_VALUE_OFFSET(x)
 
#define DEFINE_TYPED_FRAME_SIZES(count)
 
#define EXIT_FRAME_PUSHED_VALUE_OFFSET(x)
 
#define DEFINE_EXIT_FRAME_SIZES(x)
 

Functions

static int v8::internal::FPOffsetToFrameSlot (int frame_offset)
 
static int v8::internal::FrameSlotToFPOffset (int slot)
 

Macro Definition Documentation

◆ DEFINE_EXIT_FRAME_SIZES

#define DEFINE_EXIT_FRAME_SIZES ( x)
Value:
DEFINE_FRAME_SIZES(ExitFrameConstants, x);
#define DEFINE_FRAME_SIZES(parent, count)
int x

Definition at line 463 of file frame-constants.h.

◆ DEFINE_FRAME_SIZES

#define DEFINE_FRAME_SIZES ( parent,
count )
Value:
static constexpr int kFixedFrameSize = FRAME_SIZE(parent, count); \
static constexpr int kFixedSlotCount = kFixedFrameSize / kSystemPointerSize; \
static constexpr int kFixedFrameSizeFromFp = \
FRAME_SIZE_FROM_FP(parent, count); \
static constexpr int kFixedSlotCountFromFp = \
kFixedFrameSizeFromFp / kSystemPointerSize; \
static constexpr int kFirstPushedFrameValueOffset = \
parent::kFirstPushedFrameValueOffset - (count) * kSystemPointerSize; \
/* The number of slots added on top of given parent frame type. */ \
template <typename TParentFrameConstants> \
static constexpr int getExtraSlotsCountFrom() { \
return kFixedSlotCount - TParentFrameConstants::kFixedSlotCount; \
} \
/* TODO(ishell): remove in favour of getExtraSlotsCountFrom() because */ \
/* it's not clear from which base should we count "extra" - from direct */ \
/* parent or maybe from parent's parent? */ \
static constexpr int kExtraSlotCount = \
kFixedSlotCount - parent::kFixedSlotCount
uint32_t count
#define FRAME_SIZE(parent, count)

Definition at line 179 of file frame-constants.h.

◆ DEFINE_STANDARD_FRAME_SIZES

#define DEFINE_STANDARD_FRAME_SIZES ( count)
Value:
DEFINE_FRAME_SIZES(StandardFrameConstants, count)

Definition at line 201 of file frame-constants.h.

◆ DEFINE_TYPED_FRAME_SIZES

#define DEFINE_TYPED_FRAME_SIZES ( count)
Value:
DEFINE_FRAME_SIZES(TypedFrameConstants, count)

Definition at line 206 of file frame-constants.h.

◆ EXIT_FRAME_PUSHED_VALUE_OFFSET

#define EXIT_FRAME_PUSHED_VALUE_OFFSET ( x)
Value:
FRAME_PUSHED_VALUE_OFFSET(ExitFrameConstants, x)
#define FRAME_PUSHED_VALUE_OFFSET(parent, x)

Definition at line 461 of file frame-constants.h.

◆ FRAME_PUSHED_VALUE_OFFSET

#define FRAME_PUSHED_VALUE_OFFSET ( parent,
x )
Value:
(parent::kFirstPushedFrameValueOffset - (x)*kSystemPointerSize)

Definition at line 173 of file frame-constants.h.

◆ FRAME_SIZE

#define FRAME_SIZE ( parent,
count )
Value:
(parent::kFixedFrameSize + (count)*kSystemPointerSize)

Definition at line 175 of file frame-constants.h.

◆ FRAME_SIZE_FROM_FP

#define FRAME_SIZE_FROM_FP ( parent,
count )
Value:
(parent::kFixedFrameSizeFromFp + (count)*kSystemPointerSize)

Definition at line 177 of file frame-constants.h.

◆ STANDARD_FRAME_EXTRA_PUSHED_VALUE_OFFSET

#define STANDARD_FRAME_EXTRA_PUSHED_VALUE_OFFSET ( x)
Value:
FRAME_PUSHED_VALUE_OFFSET(StandardFrameConstants, x)

Definition at line 199 of file frame-constants.h.

◆ TYPED_FRAME_PUSHED_VALUE_OFFSET

#define TYPED_FRAME_PUSHED_VALUE_OFFSET ( x)
Value:
FRAME_PUSHED_VALUE_OFFSET(TypedFrameConstants, x)

Definition at line 204 of file frame-constants.h.