Class: PairedInstruction

PairedInstruction(locationIndex, pairedLocationIndex)

The paired instruction. This saves two locations one for the current instruction and one for a jump location.

Constructor

new PairedInstruction(locationIndex, pairedLocationIndex)

Constructor for the paired instruction abstract class interface
Parameters:
Name Type Description
locationIndex Number The location of the instruction within the unoptimised source code
pairedLocationIndex Number The location of the jump instruction within the unoptimised source code
Source:
See:
Throws:
Abstract class PairedInstruction can't be instantiated
Type
Error

Methods

jumpLocation() → {Number}

Gets the jump location index of the paired instruction
Source:
Returns:
- The jump location index
Type
Number

Documentation generated by JSDoc 4.0.2 on Sun Feb 08 2026 18:39:25 GMT-0800 (Pacific Standard Time)