[DynInst_API:] [dyninst/dyninst] 53b97f: Refactor Instruction raw representation (#2052)


Date: Mon, 17 Nov 2025 14:41:51 -0800
From: Tim Haines <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 53b97f: Refactor Instruction raw representation (#2052)
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: 53b97f6839aca8eec14109a756ef6cf034e4140c
      https://github.com/dyninst/dyninst/commit/53b97f6839aca8eec14109a756ef6cf034e4140c
  Author: Tim Haines <thaines.astro@xxxxxxxxx>
  Date:   2025-11-17 (Mon, 17 Nov 2025)

  Changed paths:
    M instructionAPI/h/Instruction.h
    M instructionAPI/src/Instruction.C
    M instructionAPI/src/InstructionDecoder-aarch64.C
    M instructionAPI/src/InstructionDecoder-power.C

  Log Message:
  -----------
  Refactor Instruction raw representation (#2052)

* Replace raw_instruction_t with std::array<uint8_t, maxInstructionLength>

* Make m_size a uint8_t

This drops the size of the Instruction from 344 to 366 bytes due to
improved layout. Reducing the length of m_RawInsn has no effect.

* Update default ctor

This could use default class member initialization, instead. I opted to
do it this way since none of the other members is default-initialized
currently.



To unsubscribe from these emails, change your notification settings at https://github.com/dyninst/dyninst/settings/notifications
[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 53b97f: Refactor Instruction raw representation (#2052), Tim Haines <=