LibJS: Remove unused InstructionStreamIterator::source_range()

This commit is contained in:
Andreas Kling 2025-11-21 08:29:04 +01:00 committed by Andreas Kling
parent f37063e2a1
commit e7388646bb
Notes: github-actions[bot] 2025-11-21 08:47:28 +00:00
2 changed files with 0 additions and 13 deletions

View file

@ -78,17 +78,6 @@ size_t Instruction::length() const
#undef __BYTECODE_OP
}
UnrealizedSourceRange InstructionStreamIterator::source_range() const
{
VERIFY(m_executable);
auto record = m_executable->source_map.get(offset()).value();
return {
.source_code = m_executable->source_code,
.start_offset = record.source_start_offset,
.end_offset = record.source_end_offset,
};
}
Operand::Operand(Register reg)
: m_type(Type::Register)
, m_index(reg.index())

View file

@ -122,8 +122,6 @@ public:
m_ptr += dereference().length();
}
UnrealizedSourceRange source_range() const;
Executable const* executable() const { return m_executable; }
private: