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

Unified Diff: src/ppc/constants-ppc.h

Issue 1381383002: PPC: Remove register index/code indirection (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « src/ppc/assembler-ppc.cc ('k') | src/ppc/constants-ppc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ppc/constants-ppc.h
diff --git a/src/ppc/constants-ppc.h b/src/ppc/constants-ppc.h
index ece27a365eef6f4b9a63ceceeb2a5b41e2a09e99..e3cd55c2a31a5669e7f37076aff1ca6917e359a2 100644
--- a/src/ppc/constants-ppc.h
+++ b/src/ppc/constants-ppc.h
@@ -18,8 +18,7 @@ namespace internal {
const int kNumRegisters = 32;
// FP support.
-const int kNumFPDoubleRegisters = 32;
-const int kNumFPRegisters = kNumFPDoubleRegisters;
+const int kNumDoubleRegisters = 32;
const int kNoRegister = -1;
@@ -564,33 +563,21 @@ class Instruction {
// Helper functions for converting between register numbers and names.
class Registers {
public:
- // Return the name of the register.
- static const char* Name(int reg);
-
// Lookup the register number for the name provided.
static int Number(const char* name);
- struct RegisterAlias {
- int reg;
- const char* name;
- };
-
private:
static const char* names_[kNumRegisters];
- static const RegisterAlias aliases_[];
};
// Helper functions for converting between FP register numbers and names.
-class FPRegisters {
+class DoubleRegisters {
public:
- // Return the name of the register.
- static const char* Name(int reg);
-
// Lookup the register number for the name provided.
static int Number(const char* name);
private:
- static const char* names_[kNumFPRegisters];
+ static const char* names_[kNumDoubleRegisters];
};
} // namespace internal
} // namespace v8
« no previous file with comments | « src/ppc/assembler-ppc.cc ('k') | src/ppc/constants-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698