Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(714)

Unified Diff: src/s390/constants-s390.cc

Issue 1725243004: S390: Initial impl of S390 asm, masm, code-stubs,... (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Updated BUILD.gn + cpu-s390.cc to addr @jochen's comments. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/s390/constants-s390.cc
diff --git a/src/ppc/constants-ppc.cc b/src/s390/constants-s390.cc
similarity index 60%
copy from src/ppc/constants-ppc.cc
copy to src/s390/constants-s390.cc
index e6eec643f4db5314428e65fc22454f102e140430..a958082a8ff5597c9082322e5b1b2866450ac4a1 100644
--- a/src/ppc/constants-ppc.cc
+++ b/src/s390/constants-s390.cc
@@ -1,11 +1,10 @@
-// Copyright 2014 the V8 project authors. All rights reserved.
+// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#if V8_TARGET_ARCH_PPC
-
-#include "src/ppc/constants-ppc.h"
+#if V8_TARGET_ARCH_S390
+#include "src/s390/constants-s390.h"
namespace v8 {
namespace internal {
@@ -13,16 +12,12 @@ namespace internal {
// These register names are defined in a way to match the native disassembler
// formatting. See for example the command "objdump -d <binary file>".
const char* Registers::names_[kNumRegisters] = {
- "r0", "sp", "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10",
- "r11", "ip", "r13", "r14", "r15", "r16", "r17", "r18", "r19", "r20", "r21",
- "r22", "r23", "r24", "r25", "r26", "r27", "r28", "r29", "r30", "fp"};
-
+ "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7",
+ "r8", "r9", "r10", "fp", "ip", "r13", "r14", "sp"};
const char* DoubleRegisters::names_[kNumDoubleRegisters] = {
- "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "d10",
- "d11", "d12", "d13", "d14", "d15", "d16", "d17", "d18", "d19", "d20", "d21",
- "d22", "d23", "d24", "d25", "d26", "d27", "d28", "d29", "d30", "d31"};
-
+ "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7",
+ "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15"};
int DoubleRegisters::Number(const char* name) {
for (int i = 0; i < kNumDoubleRegisters; i++) {
@@ -35,7 +30,6 @@ int DoubleRegisters::Number(const char* name) {
return kNoRegister;
}
-
int Registers::Number(const char* name) {
// Look through the canonical names.
for (int i = 0; i < kNumRegisters; i++) {
@@ -47,7 +41,8 @@ int Registers::Number(const char* name) {
// No register with the requested name found.
return kNoRegister;
}
+
} // namespace internal
} // namespace v8
-#endif // V8_TARGET_ARCH_PPC
+#endif // V8_TARGET_ARCH_S390
« src/s390/assembler-s390.h ('K') | « src/s390/constants-s390.h ('k') | src/s390/cpu-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698