mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-06-27 19:51:03 +00:00
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.
28 lines
424 B
C++
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 };
|
|
};
|
|
|
|
}
|