| 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 |  | 
|---|
| 11 | namespace dart { | 
|---|
| 12 |  | 
|---|
| 13 | const char* cpu_reg_names[kNumberOfCpuRegisters] = { "eax", "ecx", "edx", "ebx", | 
|---|
| 14 | "esp", "ebp", "esi", "edi"}; | 
|---|
| 15 |  | 
|---|
| 16 | const char* fpu_reg_names[kNumberOfXmmRegisters] = { | 
|---|
| 17 | "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7"}; | 
|---|
| 18 |  | 
|---|
| 19 | // Although 'kArgumentRegisters' and 'kFpuArgumentRegisters' are both 0, we have | 
|---|
| 20 | // to give these arrays at least one element to appease MSVC. | 
|---|
| 21 |  | 
|---|
| 22 | const Register CallingConventions::ArgumentRegisters[] = { | 
|---|
| 23 | static_cast<Register>(0)}; | 
|---|
| 24 | const FpuRegister CallingConventions::FpuArgumentRegisters[] = { | 
|---|
| 25 | static_cast<FpuRegister>(0)}; | 
|---|
| 26 |  | 
|---|
| 27 | }  // namespace dart | 
|---|
| 28 |  | 
|---|
| 29 | #endif  // defined(TARGET_ARCH_IA32) | 
|---|
| 30 |  | 
|---|