1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 14:27:34 +00:00

Everywhere: Rename to_{string => deprecated_string}() where applicable

This will make it easier to support both string types at the same time
while we convert code, and tracking down remaining uses.

One big exception is Value::to_string() in LibJS, where the name is
dictated by the ToString AO.
This commit is contained in:
Linus Groh 2022-12-06 01:12:49 +00:00 committed by Andreas Kling
parent 6e19ab2bbc
commit 57dc179b1f
597 changed files with 1973 additions and 1972 deletions

View file

@ -518,20 +518,20 @@ class MemoryOrRegisterReference {
friend class Instruction;
public:
DeprecatedString to_string_o8(Instruction const&) const;
DeprecatedString to_string_o16(Instruction const&) const;
DeprecatedString to_string_o32(Instruction const&) const;
DeprecatedString to_string_o64(Instruction const&) const;
DeprecatedString to_string_fpu_reg() const;
DeprecatedString to_string_fpu_mem(Instruction const&) const;
DeprecatedString to_string_fpu_ax16() const;
DeprecatedString to_string_fpu16(Instruction const&) const;
DeprecatedString to_string_fpu32(Instruction const&) const;
DeprecatedString to_string_fpu64(Instruction const&) const;
DeprecatedString to_string_fpu80(Instruction const&) const;
DeprecatedString to_string_mm(Instruction const&) const;
DeprecatedString to_string_xmm(Instruction const&) const;
DeprecatedString sib_to_string(ProcessorMode) const;
DeprecatedString to_deprecated_string_o8(Instruction const&) const;
DeprecatedString to_deprecated_string_o16(Instruction const&) const;
DeprecatedString to_deprecated_string_o32(Instruction const&) const;
DeprecatedString to_deprecated_string_o64(Instruction const&) const;
DeprecatedString to_deprecated_string_fpu_reg() const;
DeprecatedString to_deprecated_string_fpu_mem(Instruction const&) const;
DeprecatedString to_deprecated_string_fpu_ax16() const;
DeprecatedString to_deprecated_string_fpu16(Instruction const&) const;
DeprecatedString to_deprecated_string_fpu32(Instruction const&) const;
DeprecatedString to_deprecated_string_fpu64(Instruction const&) const;
DeprecatedString to_deprecated_string_fpu80(Instruction const&) const;
DeprecatedString to_deprecated_string_mm(Instruction const&) const;
DeprecatedString to_deprecated_string_xmm(Instruction const&) const;
DeprecatedString sib_to_deprecated_string(ProcessorMode) const;
bool is_register() const { return m_register_index != 0x7f; }
@ -580,10 +580,10 @@ public:
private:
MemoryOrRegisterReference() = default;
DeprecatedString to_string(Instruction const&) const;
DeprecatedString to_string_a16() const;
DeprecatedString to_string_a32() const;
DeprecatedString to_string_a64() const;
DeprecatedString to_deprecated_string(Instruction const&) const;
DeprecatedString to_deprecated_string_a16() const;
DeprecatedString to_deprecated_string_a32() const;
DeprecatedString to_deprecated_string_a64() const;
template<typename InstructionStreamType>
void decode(InstructionStreamType&, AddressSize, bool has_rex_r, bool has_rex_x, bool has_rex_b);
@ -695,13 +695,13 @@ public:
OperandSize operand_size() const { return m_operand_size; }
ProcessorMode mode() const { return m_mode; }
DeprecatedString to_string(u32 origin, SymbolProvider const* = nullptr, bool x32 = true) const;
DeprecatedString to_deprecated_string(u32 origin, SymbolProvider const* = nullptr, bool x32 = true) const;
private:
template<typename InstructionStreamType>
Instruction(InstructionStreamType&, OperandSize, AddressSize);
void to_string_internal(StringBuilder&, u32 origin, SymbolProvider const*, bool x32) const;
void to_deprecated_string_internal(StringBuilder&, u32 origin, SymbolProvider const*, bool x32) const;
StringView reg8_name() const;
StringView reg16_name() const;