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

#include <source-position.h>

Collaboration diagram for v8::internal::SourcePosition:

Public Member Functions

 SourcePosition (int script_offset=kNoSourcePosition, int inlining_id=kNotInlined)
 
bool IsKnown () const
 
bool isInlined () const
 
bool IsExternal () const
 
bool IsJavaScript () const
 
int ExternalLine () const
 
int ExternalFileId () const
 
std::vector< SourcePositionInfoInliningStack (Isolate *isolate, Tagged< Code > code) const
 
std::vector< SourcePositionInfoInliningStack (Isolate *isolate, OptimizedCompilationInfo *cinfo) const
 
SourcePositionInfo FirstInfo (Isolate *isolate, Tagged< Code > code) const
 
void Print (std::ostream &out, Tagged< Code > code) const
 
void PrintJson (std::ostream &out) const
 
int ScriptOffset () const
 
int InliningId () const
 
void SetIsExternal (bool external)
 
void SetExternalLine (int line)
 
void SetExternalFileId (int file_id)
 
void SetScriptOffset (int script_offset)
 
void SetInliningId (int inlining_id)
 
int64_t raw () const
 

Static Public Member Functions

static SourcePosition External (int line, int file_id)
 
static SourcePosition Unknown ()
 
static SourcePosition FromRaw (int64_t raw)
 

Static Public Attributes

static const int kNotInlined = -1
 

Private Types

using IsExternalField = base::BitField64<bool, 0, 1>
 
using ExternalLineField = base::BitField64<int, 1, 20>
 
using ExternalFileIdField = base::BitField64<int, 21, 10>
 
using ScriptOffsetField = base::BitField64<int, 1, 30>
 
using InliningIdField = base::BitField64<int, 31, 16>
 

Private Member Functions

 SourcePosition (int line, int file_id, int inlining_id)
 
void Print (std::ostream &out, Tagged< SharedFunctionInfo > function) const
 

Private Attributes

uint64_t value_
 

Detailed Description

Definition at line 45 of file source-position.h.

Member Typedef Documentation

◆ ExternalFileIdField

Definition at line 145 of file source-position.h.

◆ ExternalLineField

Definition at line 144 of file source-position.h.

◆ InliningIdField

Definition at line 152 of file source-position.h.

◆ IsExternalField

Definition at line 141 of file source-position.h.

◆ ScriptOffsetField

Definition at line 148 of file source-position.h.

Constructor & Destructor Documentation

◆ SourcePosition() [1/2]

v8::internal::SourcePosition::SourcePosition ( int script_offset = kNoSourcePosition,
int inlining_id = kNotInlined )
inlineexplicit

Definition at line 47 of file source-position.h.

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

◆ SourcePosition() [2/2]

v8::internal::SourcePosition::SourcePosition ( int line,
int file_id,
int inlining_id )
inlineprivate

Definition at line 132 of file source-position.h.

Here is the call graph for this function:

Member Function Documentation

◆ External()

static SourcePosition v8::internal::SourcePosition::External ( int line,
int file_id )
inlinestatic

Definition at line 57 of file source-position.h.

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

◆ ExternalFileId()

int v8::internal::SourcePosition::ExternalFileId ( ) const
inline

Definition at line 76 of file source-position.h.

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

◆ ExternalLine()

int v8::internal::SourcePosition::ExternalLine ( ) const
inline

Definition at line 71 of file source-position.h.

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

◆ FirstInfo()

SourcePositionInfo v8::internal::SourcePosition::FirstInfo ( Isolate * isolate,
Tagged< Code > code ) const

Definition at line 84 of file source-position.cc.

Here is the call graph for this function:

◆ FromRaw()

static SourcePosition v8::internal::SourcePosition::FromRaw ( int64_t raw)
inlinestatic

Definition at line 123 of file source-position.h.

Here is the call graph for this function:

◆ InliningId()

int v8::internal::SourcePosition::InliningId ( ) const
inline

Definition at line 95 of file source-position.h.

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

◆ InliningStack() [1/2]

std::vector< SourcePositionInfo > v8::internal::SourcePosition::InliningStack ( Isolate * isolate,
OptimizedCompilationInfo * cinfo ) const

Definition at line 51 of file source-position.cc.

Here is the call graph for this function:

◆ InliningStack() [2/2]

std::vector< SourcePositionInfo > v8::internal::SourcePosition::InliningStack ( Isolate * isolate,
Tagged< Code > code ) const

Definition at line 64 of file source-position.cc.

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

◆ IsExternal()

bool v8::internal::SourcePosition::IsExternal ( ) const
inline

Definition at line 68 of file source-position.h.

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

◆ isInlined()

bool v8::internal::SourcePosition::isInlined ( ) const
inline

Definition at line 63 of file source-position.h.

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

◆ IsJavaScript()

bool v8::internal::SourcePosition::IsJavaScript ( ) const
inline

Definition at line 69 of file source-position.h.

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

◆ IsKnown()

bool v8::internal::SourcePosition::IsKnown ( ) const
inline

Definition at line 62 of file source-position.h.

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

◆ Print() [1/2]

void v8::internal::SourcePosition::Print ( std::ostream & out,
Tagged< Code > code ) const

Definition at line 131 of file source-position.cc.

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

◆ Print() [2/2]

void v8::internal::SourcePosition::Print ( std::ostream & out,
Tagged< SharedFunctionInfo > function ) const
private

Definition at line 102 of file source-position.cc.

Here is the call graph for this function:

◆ PrintJson()

void v8::internal::SourcePosition::PrintJson ( std::ostream & out) const

Definition at line 120 of file source-position.cc.

Here is the call graph for this function:

◆ raw()

int64_t v8::internal::SourcePosition::raw ( ) const
inline

Definition at line 122 of file source-position.h.

Here is the caller graph for this function:

◆ ScriptOffset()

int v8::internal::SourcePosition::ScriptOffset ( ) const
inline

Definition at line 91 of file source-position.h.

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

◆ SetExternalFileId()

void v8::internal::SourcePosition::SetExternalFileId ( int file_id)
inline

Definition at line 104 of file source-position.h.

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

◆ SetExternalLine()

void v8::internal::SourcePosition::SetExternalLine ( int line)
inline

Definition at line 100 of file source-position.h.

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

◆ SetInliningId()

void v8::internal::SourcePosition::SetInliningId ( int inlining_id)
inline

Definition at line 114 of file source-position.h.

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

◆ SetIsExternal()

void v8::internal::SourcePosition::SetIsExternal ( bool external)
inline

Definition at line 97 of file source-position.h.

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

◆ SetScriptOffset()

void v8::internal::SourcePosition::SetScriptOffset ( int script_offset)
inline

Definition at line 109 of file source-position.h.

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

◆ Unknown()

static SourcePosition v8::internal::SourcePosition::Unknown ( )
inlinestatic

Definition at line 61 of file source-position.h.

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

Member Data Documentation

◆ kNotInlined

const int v8::internal::SourcePosition::kNotInlined = -1
static

Definition at line 119 of file source-position.h.

◆ value_

uint64_t v8::internal::SourcePosition::value_
private

Definition at line 155 of file source-position.h.


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