v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
wasm-interpreter-runtime.cc File Reference
Include dependency graph for wasm-interpreter-runtime.cc:

Go to the source code of this file.

Classes

class  v8::internal::wasm::ValueTypes
 
class  v8::internal::wasm::IndirectFunctionTableEntry
 
struct  v8::internal::wasm::StackHandlerMarker
 

Namespaces

namespace  v8
 
namespace  v8::internal
 
namespace  v8::internal::wasm
 

Macros

#define CASE_ARG_TYPE(type, ctype)
 
#define CASE_RET_TYPE(type, ctype)
 

Typedefs

using v8::internal::wasm::TypeChecker = bool (*)(const WasmRef obj)
 

Functions

 v8::internal::RUNTIME_FUNCTION (Runtime_WasmRunInterpreter)
 
V8_EXPORT_PRIVATE InterpreterHandlev8::internal::wasm::GetInterpreterHandle (Isolate *isolate, DirectHandle< Tuple2 > interpreter_object)
 
V8_EXPORT_PRIVATE InterpreterHandlev8::internal::wasm::GetOrCreateInterpreterHandle (Isolate *isolate, DirectHandle< Tuple2 > interpreter_object)
 
DISABLE_CFI_ICALL void v8::internal::wasm::CallThroughDispatchTable (const uint8_t *code, uint32_t *sp, WasmInterpreterRuntime *wasm_runtime, int64_t r0, double fp0)
 
template<TypeChecker type_checker>
bool v8::internal::wasm::AbstractTypeCast (Isolate *isolate, const WasmRef obj, const ValueType obj_type, bool null_succeeds)
 
static bool v8::internal::wasm::EqCheck (const WasmRef obj)
 
static bool v8::internal::wasm::I31Check (const WasmRef obj)
 
static bool v8::internal::wasm::StructCheck (const WasmRef obj)
 
static bool v8::internal::wasm::ArrayCheck (const WasmRef obj)
 
static bool v8::internal::wasm::StringCheck (const WasmRef obj)
 

Macro Definition Documentation

◆ CASE_ARG_TYPE

#define CASE_ARG_TYPE ( type,
ctype )
Value:
case wasm::type: \
DCHECK_EQ(wasm::ValueTypes::ElementSizeInBytes(sig->GetParam(i)), \
sizeof(ctype)); \
wasm_args[i] = \
wasm::WasmValue(base::ReadUnalignedValue<ctype>(arg_buf_ptr)); \
arg_buf_ptr += sizeof(ctype); \
break;

◆ CASE_RET_TYPE

#define CASE_RET_TYPE ( type,
ctype )
Value:
case wasm::type: \
DCHECK_EQ(wasm::ValueTypes::ElementSizeInBytes(sig->GetReturn(i)), \
sizeof(ctype)); \
base::WriteUnalignedValue<ctype>(arg_buf_ptr, wasm_rets[i].to<ctype>()); \
arg_buf_ptr += sizeof(ctype); \
break;