Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
constants_ia32.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_IA32)
8
9#include "vm/constants.h" // NOLINT
10
11namespace dart {
12
13const char* const cpu_reg_names[kNumberOfCpuRegisters] = {
14 "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi"};
15
16const char* const cpu_reg_byte_names[kNumberOfCpuRegisters] = {
17 "al", "cl", "dl", "bl", "ah", "ch", "dh", "bh"};
18
19const char* const cpu_reg_abi_names[kNumberOfCpuRegisters] = {
20 "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi"};
21
22const char* const fpu_reg_names[kNumberOfXmmRegisters] = {
23 "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7"};
24
25// Although 'kArgumentRegisters' and 'kFpuArgumentRegisters' are both 0, we have
26// to give these arrays at least one element to appease MSVC.
27
29 static_cast<Register>(0)};
31 static_cast<FpuRegister>(0)};
32
33} // namespace dart
34
35#endif // defined(TARGET_ARCH_IA32)
static const FpuRegister FpuArgumentRegisters[]
static const Register ArgumentRegisters[]
const char *const fpu_reg_names[kNumberOfFpuRegisters]
@ kNumberOfCpuRegisters
const char *const cpu_reg_names[kNumberOfCpuRegisters]
QRegister FpuRegister
const char *const cpu_reg_byte_names[kNumberOfByteRegisters]
const char *const cpu_reg_abi_names[kNumberOfCpuRegisters]
@ kNumberOfXmmRegisters