V8 Project
v8::internal::FrameScope Class Reference

#include <macro-assembler.h>

+ Inheritance diagram for v8::internal::FrameScope:
+ Collaboration diagram for v8::internal::FrameScope:

Public Member Functions

 FrameScope (MacroAssembler *masm, StackFrame::Type type)
 
 ~FrameScope ()
 
void GenerateLeaveFrame ()
 

Private Attributes

MacroAssemblermasm_
 
StackFrame::Type type_
 
bool old_has_frame_
 

Detailed Description

Definition at line 94 of file macro-assembler.h.

Constructor & Destructor Documentation

◆ FrameScope()

v8::internal::FrameScope::FrameScope ( MacroAssembler masm,
StackFrame::Type  type 
)
inlineexplicit

Definition at line 96 of file macro-assembler.h.

97  : masm_(masm), type_(type), old_has_frame_(masm->has_frame()) {
98  masm->set_has_frame(true);
99  if (type != StackFrame::MANUAL && type_ != StackFrame::NONE) {
100  masm->EnterFrame(type);
101  }
102  }
@ NONE

References v8::internal::MacroAssembler::EnterFrame(), NONE, v8::internal::MacroAssembler::set_has_frame(), and type_.

+ Here is the call graph for this function:

◆ ~FrameScope()

v8::internal::FrameScope::~FrameScope ( )
inline

Definition at line 104 of file macro-assembler.h.

104  {
105  if (type_ != StackFrame::MANUAL && type_ != StackFrame::NONE) {
107  }
109  }
int LeaveFrame(StackFrame::Type type)

References v8::internal::MacroAssembler::LeaveFrame(), masm_, NONE, old_has_frame_, v8::internal::MacroAssembler::set_has_frame(), and type_.

+ Here is the call graph for this function:

Member Function Documentation

◆ GenerateLeaveFrame()

void v8::internal::FrameScope::GenerateLeaveFrame ( )
inline

Definition at line 116 of file macro-assembler.h.

116  {
117  DCHECK(type_ != StackFrame::MANUAL && type_ != StackFrame::NONE);
119  }
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, v8::internal::MacroAssembler::LeaveFrame(), masm_, NONE, and type_.

+ Here is the call graph for this function:

Member Data Documentation

◆ masm_

MacroAssembler* v8::internal::FrameScope::masm_
private

Definition at line 122 of file macro-assembler.h.

Referenced by GenerateLeaveFrame(), and ~FrameScope().

◆ old_has_frame_

bool v8::internal::FrameScope::old_has_frame_
private

Definition at line 124 of file macro-assembler.h.

Referenced by ~FrameScope().

◆ type_

StackFrame::Type v8::internal::FrameScope::type_
private

Definition at line 123 of file macro-assembler.h.

Referenced by FrameScope(), GenerateLeaveFrame(), and ~FrameScope().


The documentation for this class was generated from the following file: