mirror of
https://github.com/dart-lang/sdk
synced 2024-10-07 16:19:50 +00:00
e5bc0f0b86
TEST=build Change-Id: I8d3445b87caa979472c9a37df62507f152a4aefb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/203202 Commit-Queue: Ryan Macnak <rmacnak@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
30 lines
989 B
C++
30 lines
989 B
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.
|
|
|
|
#include "platform/globals.h" // NOLINT
|
|
|
|
#if defined(TARGET_ARCH_IA32)
|
|
|
|
#include "vm/constants.h" // NOLINT
|
|
|
|
namespace dart {
|
|
|
|
const char* const cpu_reg_names[kNumberOfCpuRegisters] = {
|
|
"eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi"};
|
|
|
|
const char* const fpu_reg_names[kNumberOfXmmRegisters] = {
|
|
"xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7"};
|
|
|
|
// Although 'kArgumentRegisters' and 'kFpuArgumentRegisters' are both 0, we have
|
|
// to give these arrays at least one element to appease MSVC.
|
|
|
|
const Register CallingConventions::ArgumentRegisters[] = {
|
|
static_cast<Register>(0)};
|
|
const FpuRegister CallingConventions::FpuArgumentRegisters[] = {
|
|
static_cast<FpuRegister>(0)};
|
|
|
|
} // namespace dart
|
|
|
|
#endif // defined(TARGET_ARCH_IA32)
|