[x64] Remove dead code related to safepoint registers
Change-Id: I33999e33793662aad741d336018f3a099af17fec Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2728239 Commit-Queue: Shu-yu Guo <syg@chromium.org> Commit-Queue: Igor Sheludko <ishell@chromium.org> Auto-Submit: Shu-yu Guo <syg@chromium.org> Reviewed-by: Igor Sheludko <ishell@chromium.org> Cr-Commit-Position: refs/heads/master@{#73114}
This commit is contained in:
parent
40790bfa44
commit
9c5e0cd832
@ -2838,12 +2838,6 @@ void TurboAssembler::Popcntq(Register dst, Operand src) {
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
// Order general registers are pushed by Pushad:
|
||||
// rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15.
|
||||
const int
|
||||
MacroAssembler::kSafepointPushRegisterIndices[Register::kNumRegisters] = {
|
||||
0, 1, 2, 3, -1, -1, 4, 5, 6, 7, -1, 8, 9, -1, 10, 11};
|
||||
|
||||
void MacroAssembler::PushStackHandler() {
|
||||
// Adjust this code if not the case.
|
||||
STATIC_ASSERT(StackHandlerConstants::kSize == 2 * kSystemPointerSize);
|
||||
|
@ -1140,19 +1140,7 @@ class V8_EXPORT_PRIVATE MacroAssembler : public TurboAssembler {
|
||||
// In-place weak references.
|
||||
void LoadWeakValue(Register in_out, Label* target_if_cleared);
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Debugging
|
||||
|
||||
static int SafepointRegisterStackIndex(Register reg) {
|
||||
return SafepointRegisterStackIndex(reg.code());
|
||||
}
|
||||
|
||||
private:
|
||||
// Order general registers are pushed by Pushad.
|
||||
// rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r12, r14, r15.
|
||||
static const int kSafepointPushRegisterIndices[Register::kNumRegisters];
|
||||
static const int kNumSafepointSavedRegisters = 12;
|
||||
|
||||
// Helper functions for generating invokes.
|
||||
void InvokePrologue(Register expected_parameter_count,
|
||||
Register actual_parameter_count, Label* done,
|
||||
@ -1166,15 +1154,6 @@ class V8_EXPORT_PRIVATE MacroAssembler : public TurboAssembler {
|
||||
|
||||
void LeaveExitFrameEpilogue();
|
||||
|
||||
// Compute memory operands for safepoint stack slots.
|
||||
static int SafepointRegisterStackIndex(int reg_code) {
|
||||
return kNumSafepointRegisters - kSafepointPushRegisterIndices[reg_code] - 1;
|
||||
}
|
||||
|
||||
// Needs access to SafepointRegisterStackIndex for compiled frame
|
||||
// traversal.
|
||||
friend class CommonFrame;
|
||||
|
||||
DISALLOW_IMPLICIT_CONSTRUCTORS(MacroAssembler);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user