ladybird/Libraries/LibJS/Bytecode/Label.h
Andreas Kling 984d3033e9 LibJS: Remove obsolete bytecode dump formatting helpers
The Rust bytecode dumper now formats exception handler labels, raw
operands, builtins, labels, and registers. Remove the C++ dump-only
formatters and flatten Operand to expose only the runtime value-array
layout that C++ still observes.
2026-06-15 02:41:57 +02:00

28 lines
424 B
C++

/*
* Copyright (c) 2021, Andreas Kling <andreas@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Types.h>
namespace JS::Bytecode {
class Label {
public:
explicit Label(u32 address)
: m_address(address)
{
}
size_t address() const { return m_address; }
void set_address(size_t address) { m_address = address; }
private:
u32 m_address { 0 };
};
}