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

#include <wasm-module-builder.h>

Collaboration diagram for v8::internal::wasm::WasmModuleBuilder::WasmElemSegment:

Classes

struct  Entry
 

Public Types

enum  FunctionIndexingMode { kRelativeToImports , kRelativeToDeclaredFunctions }
 
enum  Status { kStatusActive , kStatusPassive , kStatusDeclarative }
 

Public Member Functions

 WasmElemSegment (Zone *zone, ValueType type, uint32_t table_index, WasmInitExpr offset)
 
 WasmElemSegment (Zone *zone, ValueType type, bool declarative, WasmInitExpr offset)
 
 MOVE_ONLY_NO_DEFAULT_CONSTRUCTOR (WasmElemSegment)
 

Public Attributes

ValueType type
 
uint32_t table_index
 
WasmInitExpr offset
 
FunctionIndexingMode indexing_mode = kRelativeToImports
 
ZoneVector< Entryentries
 
Status status
 

Private Member Functions

bool IsValidOffsetKind (WasmInitExpr::Operator kind)
 

Detailed Description

Definition at line 265 of file wasm-module-builder.h.

Member Enumeration Documentation

◆ FunctionIndexingMode

Enumerator
kRelativeToImports 
kRelativeToDeclaredFunctions 

Definition at line 269 of file wasm-module-builder.h.

◆ Status

Enumerator
kStatusActive 
kStatusPassive 
kStatusDeclarative 

Definition at line 273 of file wasm-module-builder.h.

Constructor & Destructor Documentation

◆ WasmElemSegment() [1/2]

v8::internal::wasm::WasmModuleBuilder::WasmElemSegment::WasmElemSegment ( Zone * zone,
ValueType type,
uint32_t table_index,
WasmInitExpr offset )
inline

Definition at line 286 of file wasm-module-builder.h.

◆ WasmElemSegment() [2/2]

v8::internal::wasm::WasmModuleBuilder::WasmElemSegment::WasmElemSegment ( Zone * zone,
ValueType type,
bool declarative,
WasmInitExpr offset )
inline

Definition at line 298 of file wasm-module-builder.h.

Member Function Documentation

◆ IsValidOffsetKind()

bool v8::internal::wasm::WasmModuleBuilder::WasmElemSegment::IsValidOffsetKind ( WasmInitExpr::Operator kind)
inlineprivate

Definition at line 321 of file wasm-module-builder.h.

◆ MOVE_ONLY_NO_DEFAULT_CONSTRUCTOR()

v8::internal::wasm::WasmModuleBuilder::WasmElemSegment::MOVE_ONLY_NO_DEFAULT_CONSTRUCTOR ( WasmElemSegment )

Member Data Documentation

◆ entries

ZoneVector<Entry> v8::internal::wasm::WasmModuleBuilder::WasmElemSegment::entries

Definition at line 314 of file wasm-module-builder.h.

◆ indexing_mode

FunctionIndexingMode v8::internal::wasm::WasmModuleBuilder::WasmElemSegment::indexing_mode = kRelativeToImports

Definition at line 313 of file wasm-module-builder.h.

◆ offset

WasmInitExpr v8::internal::wasm::WasmModuleBuilder::WasmElemSegment::offset

Definition at line 312 of file wasm-module-builder.h.

◆ status

Status v8::internal::wasm::WasmModuleBuilder::WasmElemSegment::status

Definition at line 315 of file wasm-module-builder.h.

◆ table_index

uint32_t v8::internal::wasm::WasmModuleBuilder::WasmElemSegment::table_index

Definition at line 311 of file wasm-module-builder.h.

◆ type

ValueType v8::internal::wasm::WasmModuleBuilder::WasmElemSegment::type

Definition at line 310 of file wasm-module-builder.h.


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