v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
wasm-assembler-helpers.h File Reference
Include dependency graph for wasm-assembler-helpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  v8::internal::compiler::turboshaft::RootTypes
 

Namespaces

namespace  v8
 
namespace  v8::internal
 
namespace  v8::internal::compiler
 
namespace  v8::internal::compiler::turboshaft
 

Macros

#define DEFINE_TYPE(type, name, CamelName)
 
#define LOAD_INSTANCE_FIELD(instance, name, representation)
 
#define LOAD_PROTECTED_INSTANCE_FIELD(instance, name, type)
 
#define LOAD_IMMUTABLE_PROTECTED_INSTANCE_FIELD(instance, name, type)
 
#define LOAD_IMMUTABLE_INSTANCE_FIELD(instance, name, representation)
 
#define LOAD_ROOT(name)
 

Functions

template<typename AssemblerT >
OpIndex v8::internal::compiler::turboshaft::LoadRootHelper (AssemblerT &&assembler, RootIndex index)
 

Macro Definition Documentation

◆ DEFINE_TYPE

#define DEFINE_TYPE ( type,
name,
CamelName )
Value:
using k##CamelName##Type = type;
wasm::ValueType type

Definition at line 18 of file wasm-assembler-helpers.h.

◆ LOAD_IMMUTABLE_INSTANCE_FIELD

#define LOAD_IMMUTABLE_INSTANCE_FIELD ( instance,
name,
representation )
Value:
__ Load(instance, LoadOp::Kind::TaggedBase().Immutable(), representation, \
WasmTrustedInstanceData::k##name##Offset)

Definition at line 52 of file wasm-assembler-helpers.h.

◆ LOAD_IMMUTABLE_PROTECTED_INSTANCE_FIELD

#define LOAD_IMMUTABLE_PROTECTED_INSTANCE_FIELD ( instance,
name,
type )
Value:
V<type>::Cast(__ LoadProtectedPointerField( \
instance, LoadOp::Kind::TaggedBase().Immutable(), \
WasmTrustedInstanceData::kProtected##name##Offset))

Definition at line 47 of file wasm-assembler-helpers.h.

◆ LOAD_INSTANCE_FIELD

#define LOAD_INSTANCE_FIELD ( instance,
name,
representation )
Value:
__ Load(instance, LoadOp::Kind::TaggedBase(), representation, \
WasmTrustedInstanceData::k##name##Offset)

Definition at line 38 of file wasm-assembler-helpers.h.

◆ LOAD_PROTECTED_INSTANCE_FIELD

#define LOAD_PROTECTED_INSTANCE_FIELD ( instance,
name,
type )
Value:
V<type>::Cast(__ LoadProtectedPointerField( \
instance, LoadOp::Kind::TaggedBase(), \
WasmTrustedInstanceData::kProtected##name##Offset))

Definition at line 42 of file wasm-assembler-helpers.h.

◆ LOAD_ROOT

#define LOAD_ROOT ( name)
Value:
V<compiler::turboshaft::RootTypes::k##name##Type>::Cast( \
LoadRootHelper(Asm(), RootIndex::k##name))

Definition at line 56 of file wasm-assembler-helpers.h.