V8 Project
v8::internal::TypeFeedbackId Class Reference

#include <utils.h>

+ Collaboration diagram for v8::internal::TypeFeedbackId:

Public Member Functions

 TypeFeedbackId (int id)
 
int ToInt () const
 
bool IsNone () const
 

Static Public Member Functions

static TypeFeedbackId None ()
 

Private Attributes

int id_
 

Static Private Attributes

static const int kNoneId = -1
 

Detailed Description

Definition at line 940 of file utils.h.

Constructor & Destructor Documentation

◆ TypeFeedbackId()

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

Definition at line 942 of file utils.h.

942 : id_(id) { }

Referenced by None().

+ Here is the caller graph for this function:

Member Function Documentation

◆ IsNone()

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

Definition at line 946 of file utils.h.

946 { return id_ == kNoneId; }
static const int kNoneId
Definition: utils.h:949

References id_, and kNoneId.

Referenced by v8::internal::Assembler::emit_code_target(), v8::internal::Assembler::RecordedAstId(), and v8::internal::Assembler::SetRecordedAstId().

+ Here is the caller graph for this function:

◆ None()

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

Definition at line 945 of file utils.h.

945 { return TypeFeedbackId(kNoneId); }

References kNoneId, and TypeFeedbackId().

Referenced by v8::internal::LCodeGen::CallCodeGeneric(), and v8::internal::Assembler::ClearRecordedAstId().

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

◆ ToInt()

int v8::internal::TypeFeedbackId::ToInt ( ) const
inline

Definition at line 943 of file utils.h.

943 { return id_; }

References id_.

Referenced by v8::internal::Assembler::emit_code_target(), and v8::internal::IdToKey().

+ Here is the caller graph for this function:

Member Data Documentation

◆ id_

int v8::internal::TypeFeedbackId::id_
private

Definition at line 951 of file utils.h.

Referenced by IsNone(), and ToInt().

◆ kNoneId

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

Definition at line 949 of file utils.h.

Referenced by IsNone(), and None().


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