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

#include <source-positions.h>

Inheritance diagram for v8::internal::torque::SourceFileMap:
Collaboration diagram for v8::internal::torque::SourceFileMap:

Public Member Functions

 SourceFileMap (std::string v8_root)
 

Static Public Member Functions

static const std::string & PathFromV8Root (SourceId file)
 
static std::string PathFromV8RootWithoutExtension (SourceId file)
 
static std::string AbsolutePath (SourceId file)
 
static SourceId AddSource (std::string path)
 
static SourceId GetSourceId (const std::string &path)
 
static std::vector< SourceIdAllSources ()
 
static bool FileRelativeToV8RootExists (const std::string &path)
 
- Static Public Member Functions inherited from v8::base::ContextualVariable< Derived, VarType >
static VarType & Get ()
 
static bool HasScope ()
 

Private Attributes

std::vector< std::string > sources_
 
std::string v8_root_
 

Additional Inherited Members

- Public Types inherited from v8::base::ContextualVariable< Derived, VarType >
using VarT = VarType
 

Detailed Description

Definition at line 89 of file source-positions.h.

Constructor & Destructor Documentation

◆ SourceFileMap()

v8::internal::torque::SourceFileMap::SourceFileMap ( std::string v8_root)
inlineexplicit

Definition at line 92 of file source-positions.h.

Member Function Documentation

◆ AbsolutePath()

std::string v8::internal::torque::SourceFileMap::AbsolutePath ( SourceId file)
static

Definition at line 24 of file source-positions.cc.

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

◆ AddSource()

SourceId v8::internal::torque::SourceFileMap::AddSource ( std::string path)
static

Definition at line 41 of file source-positions.cc.

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

◆ AllSources()

std::vector< SourceId > v8::internal::torque::SourceFileMap::AllSources ( )
static

Definition at line 57 of file source-positions.cc.

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

◆ FileRelativeToV8RootExists()

bool v8::internal::torque::SourceFileMap::FileRelativeToV8RootExists ( const std::string & path)
static

Definition at line 68 of file source-positions.cc.

Here is the call graph for this function:

◆ GetSourceId()

SourceId v8::internal::torque::SourceFileMap::GetSourceId ( const std::string & path)
static

Definition at line 47 of file source-positions.cc.

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

◆ PathFromV8Root()

const std::string & v8::internal::torque::SourceFileMap::PathFromV8Root ( SourceId file)
static

Definition at line 18 of file source-positions.cc.

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

◆ PathFromV8RootWithoutExtension()

std::string v8::internal::torque::SourceFileMap::PathFromV8RootWithoutExtension ( SourceId file)
static

Definition at line 31 of file source-positions.cc.

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

Member Data Documentation

◆ sources_

std::vector<std::string> v8::internal::torque::SourceFileMap::sources_
private

Definition at line 102 of file source-positions.h.

◆ v8_root_

std::string v8::internal::torque::SourceFileMap::v8_root_
private

Definition at line 103 of file source-positions.h.


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