nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
nk::BytecodeChunk Struct Reference

Public Attributes

std::vector< Instruction > code
std::vector< Value > constants
std::vector< std::string > strings
std::string name
uint8_t numRegisters = 0
uint8_t numParams = 0
uint8_t numReturns = 0
std::vector< std::string > paramNames
std::vector< std::string > returnNames
std::vector< uint8_t > capturedRegisters
std::vector< std::pair< std::string, uint8_t > > varMap
std::unordered_set< std::string > assignedVars
std::vector< std::string > globalNames
std::vector< std::string > ownGlobalDecls
std::unordered_map< uint32_t, std::vector< std::string > > callSiteArgNames
std::vector< SourceLoc > sourceMap
std::shared_ptr< const std::string > sourceCode

Detailed Description

Definition at line 370 of file bytecode.hpp.

Member Data Documentation

◆ assignedVars

std::unordered_set<std::string> nk::BytecodeChunk::assignedVars

Definition at line 397 of file bytecode.hpp.

◆ callSiteArgNames

std::unordered_map<uint32_t, std::vector<std::string> > nk::BytecodeChunk::callSiteArgNames

Definition at line 419 of file bytecode.hpp.

◆ capturedRegisters

std::vector<uint8_t> nk::BytecodeChunk::capturedRegisters

Definition at line 387 of file bytecode.hpp.

◆ code

std::vector<Instruction> nk::BytecodeChunk::code

Definition at line 372 of file bytecode.hpp.

◆ constants

std::vector<Value> nk::BytecodeChunk::constants

Definition at line 375 of file bytecode.hpp.

◆ globalNames

std::vector<std::string> nk::BytecodeChunk::globalNames

Definition at line 403 of file bytecode.hpp.

◆ name

std::string nk::BytecodeChunk::name

Definition at line 379 of file bytecode.hpp.

◆ numParams

uint8_t nk::BytecodeChunk::numParams = 0

Definition at line 381 of file bytecode.hpp.

◆ numRegisters

uint8_t nk::BytecodeChunk::numRegisters = 0

Definition at line 380 of file bytecode.hpp.

◆ numReturns

uint8_t nk::BytecodeChunk::numReturns = 0

Definition at line 382 of file bytecode.hpp.

◆ ownGlobalDecls

std::vector<std::string> nk::BytecodeChunk::ownGlobalDecls

Definition at line 410 of file bytecode.hpp.

◆ paramNames

std::vector<std::string> nk::BytecodeChunk::paramNames

Definition at line 383 of file bytecode.hpp.

◆ returnNames

std::vector<std::string> nk::BytecodeChunk::returnNames

Definition at line 384 of file bytecode.hpp.

◆ sourceCode

std::shared_ptr<const std::string> nk::BytecodeChunk::sourceCode

Definition at line 425 of file bytecode.hpp.

◆ sourceMap

std::vector<SourceLoc> nk::BytecodeChunk::sourceMap

Definition at line 422 of file bytecode.hpp.

◆ strings

std::vector<std::string> nk::BytecodeChunk::strings

Definition at line 376 of file bytecode.hpp.

◆ varMap

std::vector<std::pair<std::string, uint8_t> > nk::BytecodeChunk::varMap

Definition at line 390 of file bytecode.hpp.


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