Flutter Engine
The Flutter Engine
constants_x64.cc
Go to the documentation of this file.
1// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5#include "platform/globals.h" // NOLINT
6
7#if defined(TARGET_ARCH_X64)
8
9#include "vm/constants.h" // NOLINT
10
11namespace dart {
12
13const char* const cpu_reg_names[kNumberOfCpuRegisters] = {
14 "rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi",
15 "r8", "r9", "r10", "tmp", "r12", "r13", "thr", "pp"};
16
17const char* const cpu_reg_abi_names[kNumberOfCpuRegisters] = {
18 "rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi",
19 "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"};
20
21const char* const cpu_reg_byte_names[kNumberOfByteRegisters] = {
22 "al", "cl", "dl", "bl", "ah", "ch", "dh", "bh",
23 "r8b", "r9b", "r10b", "r11b", "r12b", "r13b", "r14b", "r15b"};
24
25const char* const fpu_reg_names[kNumberOfXmmRegisters] = {
26 "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7",
27 "xmm8", "xmm9", "xmm10", "xmm11", "xmm12", "xmm13", "xmm14", "xmm15"};
28
29#if defined(DART_TARGET_OS_WINDOWS)
33
36#else
41
45#endif
46
47} // namespace dart
48
49#endif // defined(TARGET_ARCH_X64)
static const FpuRegister FpuArgumentRegisters[]
static constexpr Register kArg5Reg
static const Register ArgumentRegisters[]
static constexpr Register kArg3Reg
static constexpr Register kArg6Reg
static constexpr Register kArg1Reg
static constexpr Register kArg2Reg
static constexpr Register kArg4Reg
Definition: dart_vm.cc:33
const char *const fpu_reg_names[kNumberOfFpuRegisters]
@ kNumberOfCpuRegisters
Definition: constants_arm.h:98
const char *const cpu_reg_names[kNumberOfCpuRegisters]
@ kNumberOfByteRegisters
const char *const cpu_reg_byte_names[kNumberOfByteRegisters]
const char *const cpu_reg_abi_names[kNumberOfCpuRegisters]
@ kNumberOfXmmRegisters