v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::CallSiteInfo Class Reference

#include <call-site-info.h>

Inheritance diagram for v8::internal::CallSiteInfo:
Collaboration diagram for v8::internal::CallSiteInfo:

Classes

class  BodyDescriptor
 

Public Member Functions

NEVER_READ_ONLY_SPACE bool IsStrict () const
 
bool IsConstructor () const
 
bool IsAsync () const
 
bool IsEval () const
 
bool IsUserJavaScript () const
 
bool IsSubjectToDebugging () const
 
bool IsMethodCall () const
 
bool IsToplevel () const
 
bool IsPromiseAll () const
 
bool IsPromiseAllSettled () const
 
bool IsPromiseAny () const
 
bool IsNative () const
 
Tagged< HeapObjectcode_object (IsolateForSandbox isolate) const
 
void set_code_object (Tagged< HeapObject > code, WriteBarrierMode mode)
 
int GetScriptId () const
 
Tagged< ObjectGetScriptName () const
 
Tagged< ObjectGetScriptNameOrSourceURL () const
 
Tagged< ObjectGetScriptSource () const
 
Tagged< ObjectGetScriptSourceMappingURL () const
 

Static Public Member Functions

static V8_EXPORT_PRIVATE int GetLineNumber (DirectHandle< CallSiteInfo > info)
 
static V8_EXPORT_PRIVATE int GetColumnNumber (DirectHandle< CallSiteInfo > info)
 
static int GetEnclosingLineNumber (DirectHandle< CallSiteInfo > info)
 
static int GetEnclosingColumnNumber (DirectHandle< CallSiteInfo > info)
 
static MaybeDirectHandle< ScriptGetScript (Isolate *isolate, DirectHandle< CallSiteInfo > info)
 
static Handle< PrimitiveHeapObjectGetEvalOrigin (DirectHandle< CallSiteInfo > info)
 
static V8_EXPORT_PRIVATE DirectHandle< PrimitiveHeapObjectGetFunctionName (DirectHandle< CallSiteInfo > info)
 
static DirectHandle< StringGetFunctionDebugName (DirectHandle< CallSiteInfo > info)
 
static DirectHandle< ObjectGetMethodName (DirectHandle< CallSiteInfo > info)
 
static DirectHandle< StringGetScriptHash (DirectHandle< CallSiteInfo > info)
 
static DirectHandle< ObjectGetTypeName (DirectHandle< CallSiteInfo > info)
 
static int GetSourcePosition (DirectHandle< CallSiteInfo > info)
 
static bool ComputeLocation (DirectHandle< CallSiteInfo > info, MessageLocation *location)
 

Static Public Attributes

static constexpr int kUnknown = kNoSourcePosition
 

Private Member Functions

std::optional< Tagged< Script > > GetScript () const
 
Tagged< SharedFunctionInfoGetSharedFunctionInfo () const
 

Static Private Member Functions

static int ComputeSourcePosition (DirectHandle< CallSiteInfo > info, int offset)
 

Detailed Description

Definition at line 24 of file call-site-info.h.

Member Function Documentation

◆ code_object()

Tagged< HeapObject > v8::internal::CallSiteInfo::code_object ( IsolateForSandbox isolate) const
inline

Definition at line 41 of file call-site-info-inl.h.

◆ ComputeLocation()

bool v8::internal::CallSiteInfo::ComputeLocation ( DirectHandle< CallSiteInfo > info,
MessageLocation * location )
static

Definition at line 586 of file call-site-info.cc.

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

◆ ComputeSourcePosition()

int v8::internal::CallSiteInfo::ComputeSourcePosition ( DirectHandle< CallSiteInfo > info,
int offset )
staticprivate

Definition at line 619 of file call-site-info.cc.

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

◆ GetColumnNumber()

int v8::internal::CallSiteInfo::GetColumnNumber ( DirectHandle< CallSiteInfo > info)
static

Definition at line 97 of file call-site-info.cc.

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

◆ GetEnclosingColumnNumber()

int v8::internal::CallSiteInfo::GetEnclosingColumnNumber ( DirectHandle< CallSiteInfo > info)
static

Definition at line 145 of file call-site-info.cc.

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

◆ GetEnclosingLineNumber()

int v8::internal::CallSiteInfo::GetEnclosingLineNumber ( DirectHandle< CallSiteInfo > info)
static

Definition at line 120 of file call-site-info.cc.

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

◆ GetEvalOrigin()

Handle< PrimitiveHeapObject > v8::internal::CallSiteInfo::GetEvalOrigin ( DirectHandle< CallSiteInfo > info)
static

Definition at line 279 of file call-site-info.cc.

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

◆ GetFunctionDebugName()

DirectHandle< String > v8::internal::CallSiteInfo::GetFunctionDebugName ( DirectHandle< CallSiteInfo > info)
static

Definition at line 333 of file call-site-info.cc.

Here is the call graph for this function:

◆ GetFunctionName()

DirectHandle< PrimitiveHeapObject > v8::internal::CallSiteInfo::GetFunctionName ( DirectHandle< CallSiteInfo > info)
static

Definition at line 291 of file call-site-info.cc.

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

◆ GetLineNumber()

int v8::internal::CallSiteInfo::GetLineNumber ( DirectHandle< CallSiteInfo > info)
static

Definition at line 77 of file call-site-info.cc.

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

◆ GetMethodName()

DirectHandle< Object > v8::internal::CallSiteInfo::GetMethodName ( DirectHandle< CallSiteInfo > info)
static

Definition at line 452 of file call-site-info.cc.

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

◆ GetScript() [1/2]

std::optional< Tagged< Script > > v8::internal::CallSiteInfo::GetScript ( ) const
private

Definition at line 652 of file call-site-info.cc.

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

◆ GetScript() [2/2]

MaybeDirectHandle< Script > v8::internal::CallSiteInfo::GetScript ( Isolate * isolate,
DirectHandle< CallSiteInfo > info )
static

Definition at line 678 of file call-site-info.cc.

Here is the call graph for this function:

◆ GetScriptHash()

DirectHandle< String > v8::internal::CallSiteInfo::GetScriptHash ( DirectHandle< CallSiteInfo > info)
static

Definition at line 209 of file call-site-info.cc.

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

◆ GetScriptId()

int v8::internal::CallSiteInfo::GetScriptId ( ) const

Definition at line 171 of file call-site-info.cc.

Here is the call graph for this function:

◆ GetScriptName()

Tagged< Object > v8::internal::CallSiteInfo::GetScriptName ( ) const

Definition at line 178 of file call-site-info.cc.

Here is the call graph for this function:

◆ GetScriptNameOrSourceURL()

Tagged< Object > v8::internal::CallSiteInfo::GetScriptNameOrSourceURL ( ) const

Definition at line 185 of file call-site-info.cc.

Here is the call graph for this function:

◆ GetScriptSource()

Tagged< Object > v8::internal::CallSiteInfo::GetScriptSource ( ) const

Definition at line 192 of file call-site-info.cc.

Here is the call graph for this function:

◆ GetScriptSourceMappingURL()

Tagged< Object > v8::internal::CallSiteInfo::GetScriptSourceMappingURL ( ) const

Definition at line 201 of file call-site-info.cc.

Here is the call graph for this function:

◆ GetSharedFunctionInfo()

Tagged< SharedFunctionInfo > v8::internal::CallSiteInfo::GetSharedFunctionInfo ( ) const
private

Definition at line 669 of file call-site-info.cc.

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

◆ GetSourcePosition()

int v8::internal::CallSiteInfo::GetSourcePosition ( DirectHandle< CallSiteInfo > info)
static

Definition at line 571 of file call-site-info.cc.

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

◆ GetTypeName()

DirectHandle< Object > v8::internal::CallSiteInfo::GetTypeName ( DirectHandle< CallSiteInfo > info)
static

Definition at line 519 of file call-site-info.cc.

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

◆ IsAsync()

bool v8::internal::CallSiteInfo::IsAsync ( ) const
inline
Here is the caller graph for this function:

◆ IsConstructor()

bool v8::internal::CallSiteInfo::IsConstructor ( ) const
inline
Here is the caller graph for this function:

◆ IsEval()

bool v8::internal::CallSiteInfo::IsEval ( ) const

Definition at line 48 of file call-site-info.cc.

Here is the call graph for this function:

◆ IsMethodCall()

bool v8::internal::CallSiteInfo::IsMethodCall ( ) const

Definition at line 63 of file call-site-info.cc.

Here is the call graph for this function:

◆ IsNative()

bool v8::internal::CallSiteInfo::IsNative ( ) const

Definition at line 38 of file call-site-info.cc.

Here is the call graph for this function:

◆ IsPromiseAll()

bool v8::internal::CallSiteInfo::IsPromiseAll ( ) const

Definition at line 20 of file call-site-info.cc.

Here is the call graph for this function:

◆ IsPromiseAllSettled()

bool v8::internal::CallSiteInfo::IsPromiseAllSettled ( ) const

Definition at line 26 of file call-site-info.cc.

Here is the call graph for this function:

◆ IsPromiseAny()

bool v8::internal::CallSiteInfo::IsPromiseAny ( ) const

Definition at line 32 of file call-site-info.cc.

Here is the call graph for this function:

◆ IsStrict()

NEVER_READ_ONLY_SPACE bool v8::internal::CallSiteInfo::IsStrict ( ) const
inline

◆ IsSubjectToDebugging()

bool v8::internal::CallSiteInfo::IsSubjectToDebugging ( ) const

◆ IsToplevel()

bool v8::internal::CallSiteInfo::IsToplevel ( ) const

Definition at line 71 of file call-site-info.cc.

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

◆ IsUserJavaScript()

bool v8::internal::CallSiteInfo::IsUserJavaScript ( ) const

Definition at line 55 of file call-site-info.cc.

Here is the call graph for this function:

◆ set_code_object()

void v8::internal::CallSiteInfo::set_code_object ( Tagged< HeapObject > code,
WriteBarrierMode mode )
inline

Definition at line 54 of file call-site-info-inl.h.

Here is the call graph for this function:

Member Data Documentation

◆ kUnknown

int v8::internal::CallSiteInfo::kUnknown = kNoSourcePosition
staticconstexpr

Definition at line 59 of file call-site-info.h.


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