Commit ccd91026 authored by Junliang Yan's avatar Junliang Yan Committed by Commit Bot

PPC/s390: Print readable register names

Port de2681c1

Original Commit Message:

    This adds a {PrintRegister} method which prints the given register in a
    readable way (e.g. "eax", ... on ia32).
    This is currently only used in Liftoff. The {RegisterConfiguration}
    class has the same functionality, and I plan to make
    {RegisterConfiguration} also use the new {RegisterName} functions in a
    follow-up CL.

R=clemensh@chromium.org, joransiu@ca.ibm.com, michael_dawson@ca.ibm.com
BUG=
LOG=N

Change-Id: I8359ed22ebe88d5c30a45a9c6f3caa3b03d902ee
Reviewed-on: https://chromium-review.googlesource.com/c/1344509
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Reviewed-by: 's avatarJoran Siu <joransiu@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#57698}
parent 42c41a1f
......@@ -1637,6 +1637,11 @@ class PatchingAssembler : public Assembler {
~PatchingAssembler();
};
// Define {RegisterName} methods for the register types.
DEFINE_REGISTER_NAMES(Register, GENERAL_REGISTERS);
DEFINE_REGISTER_NAMES(DoubleRegister, DOUBLE_REGISTERS);
} // namespace internal
} // namespace v8
......
......@@ -1665,6 +1665,11 @@ class EnsureSpace {
explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); }
};
// Define {RegisterName} methods for the register types.
DEFINE_REGISTER_NAMES(Register, GENERAL_REGISTERS);
DEFINE_REGISTER_NAMES(DoubleRegister, DOUBLE_REGISTERS);
} // namespace internal
} // namespace v8
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment