V8 Project
v8::internal::BailoutId Class Reference

#include <utils.h>

+ Collaboration diagram for v8::internal::BailoutId:

Public Member Functions

 BailoutId (int id)
 
int ToInt () const
 
bool IsNone () const
 
bool operator== (const BailoutId &other) const
 
bool operator!= (const BailoutId &other) const
 

Static Public Member Functions

static BailoutId None ()
 
static BailoutId FunctionEntry ()
 
static BailoutId Declarations ()
 
static BailoutId FirstUsable ()
 
static BailoutId StubEntry ()
 

Private Attributes

int id_
 

Static Private Attributes

static const int kNoneId = -1
 
static const int kFunctionEntryId = 2
 
static const int kDeclarationsId = 3
 
static const int kFirstUsableId = 4
 
static const int kStubEntryId = 5
 

Detailed Description

Definition at line 955 of file utils.h.

Constructor & Destructor Documentation

◆ BailoutId()

v8::internal::BailoutId::BailoutId ( int  id)
inlineexplicit

Definition at line 957 of file utils.h.

957 : id_(id) { }

Referenced by Declarations(), FirstUsable(), FunctionEntry(), None(), and StubEntry().

+ Here is the caller graph for this function:

Member Function Documentation

◆ Declarations()

static BailoutId v8::internal::BailoutId::Declarations ( )
inlinestatic

Definition at line 962 of file utils.h.

962 { return BailoutId(kDeclarationsId); }
static const int kDeclarationsId
Definition: utils.h:979

References BailoutId(), and kDeclarationsId.

Referenced by v8::internal::HOptimizedGraphBuilder::BuildGraph().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FirstUsable()

static BailoutId v8::internal::BailoutId::FirstUsable ( )
inlinestatic

Definition at line 963 of file utils.h.

963 { return BailoutId(kFirstUsableId); }
static const int kFirstUsableId
Definition: utils.h:982

References BailoutId(), and kFirstUsableId.

Referenced by v8::internal::ParserTraits::SetUpFunctionState().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FunctionEntry()

static BailoutId v8::internal::BailoutId::FunctionEntry ( )
inlinestatic

Definition at line 961 of file utils.h.

961 { return BailoutId(kFunctionEntryId); }
static const int kFunctionEntryId
Definition: utils.h:974

References BailoutId(), and kFunctionEntryId.

Referenced by v8::internal::HOptimizedGraphBuilder::BuildGraph(), and v8::internal::compiler::AstGraphBuilder::CreateGraph().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsNone()

bool v8::internal::BailoutId::IsNone ( ) const
inline

Definition at line 966 of file utils.h.

966 { return id_ == kNoneId; }
static const int kNoneId
Definition: utils.h:971

References id_, and kNoneId.

Referenced by v8::internal::SharedFunctionInfo::EvictFromOptimizedCodeMap(), v8::internal::GetCodeFromOptimizedCodeMap(), v8::internal::CompilationInfo::is_osr(), and v8::internal::RUNTIME_FUNCTION().

+ Here is the caller graph for this function:

◆ None()

static BailoutId v8::internal::BailoutId::None ( )
inlinestatic

Definition at line 960 of file utils.h.

960 { return BailoutId(kNoneId); }

References BailoutId(), and kNoneId.

Referenced by v8::internal::compiler::AstGraphBuilder::BuildArgumentsObject(), v8::internal::CodeStubGraphBuilderBase::BuildCheckAndInstallOptimizedCode(), v8::internal::Compiler::GetLazyCode(), v8::internal::Code::TranslatePcOffsetToAstId(), v8::internal::HOptimizedGraphBuilder::TryInline(), v8::internal::compiler::AstGraphBuilder::VisitCallJSRuntime(), and v8::internal::compiler::AstGraphBuilder::VisitForInAssignment().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator!=()

bool v8::internal::BailoutId::operator!= ( const BailoutId other) const
inline

Definition at line 968 of file utils.h.

968 { return id_ != other.id_; }

References id_.

◆ operator==()

bool v8::internal::BailoutId::operator== ( const BailoutId other) const
inline

Definition at line 967 of file utils.h.

967 { return id_ == other.id_; }

References id_.

◆ StubEntry()

static BailoutId v8::internal::BailoutId::StubEntry ( )
inlinestatic

Definition at line 964 of file utils.h.

964 { return BailoutId(kStubEntryId); }
static const int kStubEntryId
Definition: utils.h:985

References BailoutId(), and kStubEntryId.

Referenced by v8::internal::CodeStubGraphBuilderBase::BuildGraph().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ToInt()

Member Data Documentation

◆ id_

int v8::internal::BailoutId::id_
private

Definition at line 987 of file utils.h.

Referenced by IsNone(), operator!=(), operator==(), and ToInt().

◆ kDeclarationsId

const int v8::internal::BailoutId::kDeclarationsId = 3
staticprivate

Definition at line 979 of file utils.h.

Referenced by Declarations().

◆ kFirstUsableId

const int v8::internal::BailoutId::kFirstUsableId = 4
staticprivate

Definition at line 982 of file utils.h.

Referenced by FirstUsable().

◆ kFunctionEntryId

const int v8::internal::BailoutId::kFunctionEntryId = 2
staticprivate

Definition at line 974 of file utils.h.

Referenced by FunctionEntry().

◆ kNoneId

const int v8::internal::BailoutId::kNoneId = -1
staticprivate

Definition at line 971 of file utils.h.

Referenced by IsNone(), and None().

◆ kStubEntryId

const int v8::internal::BailoutId::kStubEntryId = 5
staticprivate

Definition at line 985 of file utils.h.

Referenced by StubEntry().


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