mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
![Ryan Macnak](/assets/img/avatar_default.png)
Change-Id: Ia3127ba9ef4ee1faf1f85a6eaa0dafd0cf187b2b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99376 Reviewed-by: Aart Bik <ajcbik@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> Reviewed-by: Samir Jindel <sjindel@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
37 lines
1.5 KiB
C++
37 lines
1.5 KiB
C++
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#define RUNTIME_VM_CONSTANTS_H_ // To work around include guard.
|
|
#include "vm/constants_x64.h"
|
|
|
|
namespace arch_x64 {
|
|
|
|
const char* cpu_reg_names[kNumberOfCpuRegisters] = {
|
|
"rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi",
|
|
"r8", "r9", "r10", "r11", "r12", "r13", "thr", "pp"};
|
|
|
|
const char* fpu_reg_names[kNumberOfXmmRegisters] = {
|
|
"xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7",
|
|
"xmm8", "xmm9", "xmm10", "xmm11", "xmm12", "xmm13", "xmm14", "xmm15"};
|
|
|
|
#if defined(_WIN64)
|
|
const Register CallingConventions::ArgumentRegisters[] = {
|
|
CallingConventions::kArg1Reg, CallingConventions::kArg2Reg,
|
|
CallingConventions::kArg3Reg, CallingConventions::kArg4Reg};
|
|
|
|
const XmmRegister CallingConventions::FpuArgumentRegisters[] = {
|
|
XmmRegister::XMM0, XmmRegister::XMM1, XmmRegister::XMM2, XmmRegister::XMM3};
|
|
#else
|
|
const Register CallingConventions::ArgumentRegisters[] = {
|
|
CallingConventions::kArg1Reg, CallingConventions::kArg2Reg,
|
|
CallingConventions::kArg3Reg, CallingConventions::kArg4Reg,
|
|
CallingConventions::kArg5Reg, CallingConventions::kArg6Reg};
|
|
|
|
const XmmRegister CallingConventions::FpuArgumentRegisters[] = {
|
|
XmmRegister::XMM0, XmmRegister::XMM1, XmmRegister::XMM2, XmmRegister::XMM3,
|
|
XmmRegister::XMM4, XmmRegister::XMM5, XmmRegister::XMM6, XmmRegister::XMM7};
|
|
#endif
|
|
|
|
} // namespace arch_x64
|