ProgramMemory<OT extends ProgramOperation> constructor Null safety

ProgramMemory<OT extends ProgramOperation>(
  1. Memory<OT> memory,
  2. OperationMap<OT> layout,
  3. int returnStackSize,
  4. ProgramOperation _rtn
)

Implementation

ProgramMemory(
    this.memory, OperationMap<OT> layout, int returnStackSize, this._rtn)
    : _returnStack = List.filled(returnStackSize, 0),
      _operationTable = layout._operationTable,
      _argValues = layout._argValues,
      _extendedOpcode = layout._extendedOpcode;