Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::wasm_validations::wasm_binary_validation Class Reference

#include <wasm_sysio_validation.hpp>

Public Member Functions

 wasm_binary_validation (const sysio::chain::controller &control, IR::Module &mod)
 
void validate ()
 

Detailed Description

Definition at line 325 of file wasm_sysio_validation.hpp.

Constructor & Destructor Documentation

◆ wasm_binary_validation()

sysio::chain::wasm_validations::wasm_binary_validation::wasm_binary_validation ( const sysio::chain::controller & control,
IR::Module & mod )
inline

Definition at line 333 of file wasm_sysio_validation.hpp.

333 : _module( &mod ) {
334 // initialize validators here
336 }
bool is_producing_block() const
Here is the call graph for this function:

Member Function Documentation

◆ validate()

void sysio::chain::wasm_validations::wasm_binary_validation::validate ( )
inline

Definition at line 338 of file wasm_sysio_validation.hpp.

338 {
339 _module_validators.validate( *_module );
340 for ( auto& fd : _module->functions.defs ) {
341 wasm_ops::SYSIO_OperatorDecoderStream<op_constrainers> decoder(fd.code);
342 while ( decoder ) {
343 wasm_ops::instruction_stream new_code(0);
344 auto op = decoder.decodeOp();
345 op->visit( { _module, &new_code, &fd, decoder.index() } );
346 }
347 }
348 }
IndexSpace< FunctionDef, IndexedFunctionType > functions
Definition Module.h:133
Here is the call graph for this function:
Here is the caller graph for this function:

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