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

#include <pending-compilation-error-handler.h>

Collaboration diagram for v8::internal::PendingCompilationErrorHandler:

Classes

class  MessageDetails
 

Public Member Functions

 PendingCompilationErrorHandler ()=default
 
 PendingCompilationErrorHandler (const PendingCompilationErrorHandler &)=delete
 
PendingCompilationErrorHandleroperator= (const PendingCompilationErrorHandler &)=delete
 
void ReportMessageAt (int start_position, int end_position, MessageTemplate message, const char *arg=nullptr)
 
void ReportMessageAt (int start_position, int end_position, MessageTemplate message, const AstRawString *arg)
 
void ReportMessageAt (int start_position, int end_position, MessageTemplate message, const AstRawString *arg0, const char *arg1)
 
void ReportMessageAt (int start_position, int end_position, MessageTemplate message, const AstRawString *arg0, const AstRawString *arg1, const char *arg2)
 
void ReportWarningAt (int start_position, int end_position, MessageTemplate message, const char *arg=nullptr)
 
bool stack_overflow () const
 
void set_stack_overflow ()
 
bool has_pending_error () const
 
bool has_pending_warnings () const
 
template<typename IsolateT >
void PrepareErrors (IsolateT *isolate, AstValueFactory *ast_value_factory)
 
V8_EXPORT_PRIVATE void ReportErrors (Isolate *isolate, Handle< Script > script) const
 
template<typename IsolateT >
void PrepareWarnings (IsolateT *isolate)
 
void ReportWarnings (Isolate *isolate, Handle< Script > script) const
 
V8_EXPORT_PRIVATE DirectHandle< StringFormatErrorMessageForTest (Isolate *isolate)
 
void set_unidentifiable_error ()
 
void clear_unidentifiable_error ()
 
bool has_error_unidentifiable_by_preparser () const
 

Private Member Functions

void ThrowPendingError (Isolate *isolate, Handle< Script > script) const
 

Private Attributes

bool has_pending_error_ = false
 
bool stack_overflow_ = false
 
bool unidentifiable_error_ = false
 
MessageDetails error_details_
 
std::forward_list< MessageDetailswarning_messages_
 

Detailed Description

Definition at line 26 of file pending-compilation-error-handler.h.

Constructor & Destructor Documentation

◆ PendingCompilationErrorHandler() [1/2]

v8::internal::PendingCompilationErrorHandler::PendingCompilationErrorHandler ( )
default

◆ PendingCompilationErrorHandler() [2/2]

v8::internal::PendingCompilationErrorHandler::PendingCompilationErrorHandler ( const PendingCompilationErrorHandler & )
delete

Member Function Documentation

◆ clear_unidentifiable_error()

void v8::internal::PendingCompilationErrorHandler::clear_unidentifiable_error ( )
inline

Definition at line 80 of file pending-compilation-error-handler.h.

◆ FormatErrorMessageForTest()

DirectHandle< String > v8::internal::PendingCompilationErrorHandler::FormatErrorMessageForTest ( Isolate * isolate)

Definition at line 205 of file pending-compilation-error-handler.cc.

Here is the call graph for this function:

◆ has_error_unidentifiable_by_preparser()

bool v8::internal::PendingCompilationErrorHandler::has_error_unidentifiable_by_preparser ( ) const
inline

Definition at line 84 of file pending-compilation-error-handler.h.

◆ has_pending_error()

bool v8::internal::PendingCompilationErrorHandler::has_pending_error ( ) const
inline

Definition at line 58 of file pending-compilation-error-handler.h.

Here is the caller graph for this function:

◆ has_pending_warnings()

bool v8::internal::PendingCompilationErrorHandler::has_pending_warnings ( ) const
inline

Definition at line 59 of file pending-compilation-error-handler.h.

◆ operator=()

PendingCompilationErrorHandler & v8::internal::PendingCompilationErrorHandler::operator= ( const PendingCompilationErrorHandler & )
delete

◆ PrepareErrors()

template<typename IsolateT >
template void v8::internal::PendingCompilationErrorHandler::PrepareErrors ( IsolateT * isolate,
AstValueFactory * ast_value_factory )

Definition at line 160 of file pending-compilation-error-handler.cc.

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

◆ PrepareWarnings()

template<typename IsolateT >
template void v8::internal::PendingCompilationErrorHandler::PrepareWarnings ( IsolateT * isolate)

Definition at line 133 of file pending-compilation-error-handler.cc.

Here is the call graph for this function:

◆ ReportErrors()

V8_EXPORT_PRIVATE void v8::internal::PendingCompilationErrorHandler::ReportErrors ( Isolate * isolate,
Handle< Script > script ) const
Here is the caller graph for this function:

◆ ReportMessageAt() [1/4]

void v8::internal::PendingCompilationErrorHandler::ReportMessageAt ( int start_position,
int end_position,
MessageTemplate message,
const AstRawString * arg )

Definition at line 91 of file pending-compilation-error-handler.cc.

Here is the call graph for this function:

◆ ReportMessageAt() [2/4]

void v8::internal::PendingCompilationErrorHandler::ReportMessageAt ( int start_position,
int end_position,
MessageTemplate message,
const AstRawString * arg0,
const AstRawString * arg1,
const char * arg2 )

Definition at line 114 of file pending-compilation-error-handler.cc.

Here is the call graph for this function:

◆ ReportMessageAt() [3/4]

void v8::internal::PendingCompilationErrorHandler::ReportMessageAt ( int start_position,
int end_position,
MessageTemplate message,
const AstRawString * arg0,
const char * arg1 )

Definition at line 102 of file pending-compilation-error-handler.cc.

Here is the call graph for this function:

◆ ReportMessageAt() [4/4]

void v8::internal::PendingCompilationErrorHandler::ReportMessageAt ( int start_position,
int end_position,
MessageTemplate message,
const char * arg = nullptr )

Definition at line 80 of file pending-compilation-error-handler.cc.

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

◆ ReportWarningAt()

void v8::internal::PendingCompilationErrorHandler::ReportWarningAt ( int start_position,
int end_position,
MessageTemplate message,
const char * arg = nullptr )

Definition at line 124 of file pending-compilation-error-handler.cc.

◆ ReportWarnings()

void v8::internal::PendingCompilationErrorHandler::ReportWarnings ( Isolate * isolate,
Handle< Script > script ) const

Definition at line 144 of file pending-compilation-error-handler.cc.

Here is the call graph for this function:

◆ set_stack_overflow()

void v8::internal::PendingCompilationErrorHandler::set_stack_overflow ( )
inline

Definition at line 53 of file pending-compilation-error-handler.h.

◆ set_unidentifiable_error()

void v8::internal::PendingCompilationErrorHandler::set_unidentifiable_error ( )
inline

Definition at line 76 of file pending-compilation-error-handler.h.

Here is the caller graph for this function:

◆ stack_overflow()

bool v8::internal::PendingCompilationErrorHandler::stack_overflow ( ) const
inline

Definition at line 51 of file pending-compilation-error-handler.h.

Here is the caller graph for this function:

◆ ThrowPendingError()

void v8::internal::PendingCompilationErrorHandler::ThrowPendingError ( Isolate * isolate,
Handle< Script > script ) const
private

Definition at line 186 of file pending-compilation-error-handler.cc.

Here is the call graph for this function:

Member Data Documentation

◆ error_details_

MessageDetails v8::internal::PendingCompilationErrorHandler::error_details_
private

Definition at line 192 of file pending-compilation-error-handler.h.

◆ has_pending_error_

bool v8::internal::PendingCompilationErrorHandler::has_pending_error_ = false
private

Definition at line 188 of file pending-compilation-error-handler.h.

◆ stack_overflow_

bool v8::internal::PendingCompilationErrorHandler::stack_overflow_ = false
private

Definition at line 189 of file pending-compilation-error-handler.h.

◆ unidentifiable_error_

bool v8::internal::PendingCompilationErrorHandler::unidentifiable_error_ = false
private

Definition at line 190 of file pending-compilation-error-handler.h.

◆ warning_messages_

std::forward_list<MessageDetails> v8::internal::PendingCompilationErrorHandler::warning_messages_
private

Definition at line 194 of file pending-compilation-error-handler.h.


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