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

Unified Diff: src/base/cpu.h

Issue 817143002: Contribution of PowerPC port (continuation of 422063005) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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/base/cpu.h
diff --git a/src/base/cpu.h b/src/base/cpu.h
index fe8e1029757f0d37806247366b307eb3e3c13ad7..36b60acbc31d806d660681421ce960f265fdb3ab 100644
--- a/src/base/cpu.h
+++ b/src/base/cpu.h
@@ -48,6 +48,9 @@ class CPU FINAL {
static const int QUALCOMM = 0x51;
int architecture() const { return architecture_; }
int part() const { return part_; }
+ int cache_line_size() const { return cache_line_size_; }
Sven Panne 2015/01/08 10:13:53 We need to be more specific here *which* kind of c
michael_dawson 2015/01/08 23:51:11 This change is an optimization only needed for som
+
+ // ARM-specific part codes
static const int ARM_CORTEX_A5 = 0xc05;
static const int ARM_CORTEX_A7 = 0xc07;
static const int ARM_CORTEX_A8 = 0xc08;
@@ -55,6 +58,17 @@ class CPU FINAL {
static const int ARM_CORTEX_A12 = 0xc0c;
static const int ARM_CORTEX_A15 = 0xc0f;
+ // PPC-specific part codes
+ enum {
+ PPC_POWER5,
+ PPC_POWER6,
+ PPC_POWER7,
+ PPC_POWER8,
+ PPC_G4,
+ PPC_G5,
+ PPC_PA6T
+ };
+
// General features
bool has_fpu() const { return has_fpu_; }
@@ -93,6 +107,7 @@ class CPU FINAL {
int implementer_;
int architecture_;
int part_;
+ int cache_line_size_;
bool has_fpu_;
bool has_cmov_;
bool has_sahf_;

Powered by Google App Engine
This is Rietveld 408576698