RPNXCortado
C++23 JVM class-file, bytecode, validation, and JAR toolkit
Loading...
Searching...
No Matches
rpnx::cortado::tableswitch_instruction Struct Reference

An exact tableswitch instruction, including alignment bytes. More...

#include <bytecode.hpp>

Public Attributes

std::vector< std::byte > padding
 Exact zero-to-three bytes aligning the default operand to four bytes.
 
branch_displacement32 default_displacement
 Target used when the key is outside the table.
 
std::int32_t low {}
 Lowest table key; the highest key is derived from the target count.
 
std::vector< branch_displacement32displacements
 Consecutive targets beginning at low; never empty in strict mode.
 

Static Public Attributes

static constexpr opcode operation = opcode::tableswitch
 

Detailed Description

An exact tableswitch instruction, including alignment bytes.

Definition at line 179 of file bytecode.hpp.

Member Data Documentation

◆ default_displacement

branch_displacement32 rpnx::cortado::tableswitch_instruction::default_displacement

Target used when the key is outside the table.

Definition at line 183 of file bytecode.hpp.

◆ displacements

std::vector< branch_displacement32 > rpnx::cortado::tableswitch_instruction::displacements

Consecutive targets beginning at low; never empty in strict mode.

Definition at line 185 of file bytecode.hpp.

◆ low

std::int32_t rpnx::cortado::tableswitch_instruction::low {}

Lowest table key; the highest key is derived from the target count.

Definition at line 184 of file bytecode.hpp.

◆ operation

opcode rpnx::cortado::tableswitch_instruction::operation = opcode::tableswitch
staticconstexpr

Definition at line 181 of file bytecode.hpp.

◆ padding

std::vector< std::byte > rpnx::cortado::tableswitch_instruction::padding

Exact zero-to-three bytes aligning the default operand to four bytes.

Definition at line 182 of file bytecode.hpp.


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