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

Go to the source code of this file.

Classes

class  v8::internal::wasm::BuiltinLookup
 

Namespaces

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

Macros

#define WASM_BUILTINS_WITH_JUMP_TABLE_SLOT(V, VTRAP)
 
#define WASM_BUILTINS_WITHOUT_JUMP_TABLE_SLOT(V)
 
#define WASM_BUILTIN_LIST(V, VTRAP)
 
#define DEF_INIT_LOOKUP(NAME)
 
#define DEF_INIT_LOOKUP_TRAP(NAME)
 
#define BUILTIN_ID(Name)
 
#define BUILTIN_ID_TRAP(Name)
 
#define BUILTIN_COUNTER(NAME)
 
#define DEF_INIT_LOOKUP(NAME)
 
#define DEF_INIT_LOOKUP_TRAP(NAME)
 

Functions

constexpr std::array< uint8_t, static_cast< int >(Builtin::kFirstBytecodeHandler)> v8::internal::wasm::detail::InitBuiltinToFarJumpTableIndex ()
 

Macro Definition Documentation

◆ BUILTIN_COUNTER

#define BUILTIN_COUNTER ( NAME)
Value:
+1

Definition at line 211 of file wasm-builtin-list.h.

◆ BUILTIN_ID

#define BUILTIN_ID ( Name)
Value:
case Builtin::k##Name: \
return true;

◆ BUILTIN_ID_TRAP

#define BUILTIN_ID_TRAP ( Name)
Value:
case Builtin::kThrowWasm##Name: \
return true;

◆ DEF_INIT_LOOKUP [1/2]

#define DEF_INIT_LOOKUP ( NAME)
Value:
result[static_cast<int>(Builtin::k##NAME)] = next_index++;
ZoneVector< RpoNumber > & result
#define NAME(feat,...)

◆ DEF_INIT_LOOKUP [2/2]

#define DEF_INIT_LOOKUP ( NAME)
Value:
if (index == next_index) { \
return Builtin::k##NAME; \
} \
++next_index;

◆ DEF_INIT_LOOKUP_TRAP [1/2]

#define DEF_INIT_LOOKUP_TRAP ( NAME)
Value:
DEF_INIT_LOOKUP(ThrowWasm##NAME)
#define DEF_INIT_LOOKUP(NAME)

◆ DEF_INIT_LOOKUP_TRAP [2/2]

#define DEF_INIT_LOOKUP_TRAP ( NAME)
Value:
DEF_INIT_LOOKUP(ThrowWasm##NAME)

◆ WASM_BUILTIN_LIST

#define WASM_BUILTIN_LIST ( V,
VTRAP )
Value:
WASM_BUILTINS_WITHOUT_JUMP_TABLE_SLOT(V)
#define V(Name)
#define WASM_BUILTINS_WITH_JUMP_TABLE_SLOT(V, VTRAP)

Definition at line 161 of file wasm-builtin-list.h.

◆ WASM_BUILTINS_WITH_JUMP_TABLE_SLOT

#define WASM_BUILTINS_WITH_JUMP_TABLE_SLOT ( V,
VTRAP )

Definition at line 20 of file wasm-builtin-list.h.

◆ WASM_BUILTINS_WITHOUT_JUMP_TABLE_SLOT

#define WASM_BUILTINS_WITHOUT_JUMP_TABLE_SLOT ( V)
Value:
V(IterableToFixedArrayForWasm) \
V(WasmAllocateInYoungGeneration) \
V(WasmAllocateInOldGeneration) \
V(WasmAllocateZeroedFixedArray) \
V(WasmSuspend) \
V(WasmToJsWrapperInvalidSig) \
V(WasmTrap) \
V(WasmTrapHandlerThrowTrap)

Definition at line 151 of file wasm-builtin-list.h.