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

#include <wasm-result.h>

Collaboration diagram for v8::internal::wasm::ErrorThrower:

Public Member Functions

 ErrorThrower (Isolate *isolate, const char *context)
 
 ErrorThrower (const ErrorThrower &)=delete
 
ErrorThroweroperator= (const ErrorThrower &)=delete
 
 ~ErrorThrower ()
 
 PRINTF_FORMAT (2, 3) void TypeError(const char *fmt
 
 PRINTF_FORMAT (2, 3) void RangeError(const char *fmt
 
 PRINTF_FORMAT (2, 3) void CompileError(const char *fmt
 
 PRINTF_FORMAT (2, 3) void LinkError(const char *fmt
 
 PRINTF_FORMAT (2, 3) void RuntimeError(const char *fmt
 
void CompileFailed (const WasmError &error)
 
V8_WARN_UNUSED_RESULT DirectHandle< JSObjectReify ()
 
void Reset ()
 
bool error () const
 
bool wasm_error ()
 
const char * error_msg ()
 
Isolateisolate () const
 
constexpr const char * context_name () const
 

Private Types

enum  ErrorType {
  kNone , kTypeError , kRangeError , kCompileError ,
  kLinkError , kRuntimeError , kFirstWasmError = kCompileError
}
 

Private Member Functions

void Format (ErrorType error_type_, const char *fmt, va_list)
 

Private Attributes

Isolate *const isolate_
 
const char *const context_
 
ErrorType error_type_ = kNone
 
std::string error_msg_
 

Detailed Description

Definition at line 123 of file wasm-result.h.

Member Enumeration Documentation

◆ ErrorType

Enumerator
kNone 
kTypeError 
kRangeError 
kCompileError 
kLinkError 
kRuntimeError 
kFirstWasmError 

Definition at line 158 of file wasm-result.h.

Constructor & Destructor Documentation

◆ ErrorThrower() [1/2]

v8::internal::wasm::ErrorThrower::ErrorThrower ( Isolate * isolate,
const char * context )
inline

Definition at line 125 of file wasm-result.h.

◆ ErrorThrower() [2/2]

v8::internal::wasm::ErrorThrower::ErrorThrower ( const ErrorThrower & )
delete

◆ ~ErrorThrower()

v8::internal::wasm::ErrorThrower::~ErrorThrower ( )

Definition at line 141 of file wasm-result.cc.

Here is the call graph for this function:

Member Function Documentation

◆ CompileFailed()

void v8::internal::wasm::ErrorThrower::CompileFailed ( const WasmError & error)
inline

Definition at line 138 of file wasm-result.h.

Here is the caller graph for this function:

◆ context_name()

const char * v8::internal::wasm::ErrorThrower::context_name ( ) const
inlineconstexpr

Definition at line 155 of file wasm-result.h.

◆ error()

bool v8::internal::wasm::ErrorThrower::error ( ) const
inline

Definition at line 149 of file wasm-result.h.

Here is the caller graph for this function:

◆ error_msg()

const char * v8::internal::wasm::ErrorThrower::error_msg ( )
inline

Definition at line 151 of file wasm-result.h.

Here is the caller graph for this function:

◆ Format()

void v8::internal::wasm::ErrorThrower::Format ( ErrorType error_type_,
const char * fmt,
va_list args )
private

Definition at line 58 of file wasm-result.cc.

Here is the call graph for this function:

◆ isolate()

Isolate * v8::internal::wasm::ErrorThrower::isolate ( ) const
inline

Definition at line 153 of file wasm-result.h.

◆ operator=()

ErrorThrower & v8::internal::wasm::ErrorThrower::operator= ( const ErrorThrower & )
delete

◆ PRINTF_FORMAT() [1/5]

v8::internal::wasm::ErrorThrower::PRINTF_FORMAT ( 2 ,
3  ) const

◆ PRINTF_FORMAT() [2/5]

v8::internal::wasm::ErrorThrower::PRINTF_FORMAT ( 2 ,
3  ) const

◆ PRINTF_FORMAT() [3/5]

v8::internal::wasm::ErrorThrower::PRINTF_FORMAT ( 2 ,
3  ) const

◆ PRINTF_FORMAT() [4/5]

v8::internal::wasm::ErrorThrower::PRINTF_FORMAT ( 2 ,
3  ) const

◆ PRINTF_FORMAT() [5/5]

v8::internal::wasm::ErrorThrower::PRINTF_FORMAT ( 2 ,
3  ) const

◆ Reify()

DirectHandle< JSObject > v8::internal::wasm::ErrorThrower::Reify ( )

Definition at line 107 of file wasm-result.cc.

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

◆ Reset()

void v8::internal::wasm::ErrorThrower::Reset ( )

Definition at line 136 of file wasm-result.cc.

Here is the caller graph for this function:

◆ wasm_error()

bool v8::internal::wasm::ErrorThrower::wasm_error ( )
inline

Definition at line 150 of file wasm-result.h.

Member Data Documentation

◆ context_

const char* const v8::internal::wasm::ErrorThrower::context_
private

Definition at line 175 of file wasm-result.h.

◆ error_msg_

std::string v8::internal::wasm::ErrorThrower::error_msg_
private

Definition at line 177 of file wasm-result.h.

◆ error_type_

ErrorType v8::internal::wasm::ErrorThrower::error_type_ = kNone
private

Definition at line 176 of file wasm-result.h.

◆ isolate_

Isolate* const v8::internal::wasm::ErrorThrower::isolate_
private

Definition at line 174 of file wasm-result.h.


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