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

Unified Diff: src/base/cpu.h

Issue 422063005: Contribution of PowerPC port. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: re-upload - catch up to 8/19 level Created 6 years, 4 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/base/cpu.h
diff --git a/src/base/cpu.h b/src/base/cpu.h
index d61844c151891ca8f6275c0fd882f2b2af373b6f..2098a2dd5054a2f9ec9db3e9c584175775f1a529 100644
--- a/src/base/cpu.h
+++ b/src/base/cpu.h
@@ -55,6 +55,18 @@ class CPU V8_FINAL {
static const int ARM_CORTEX_A12 = 0xc0c;
static const int ARM_CORTEX_A15 = 0xc0f;
+ // PPC-specific part codes
+ int cache_line_size() const { return cache_line_size_; }
+ enum {
+ PPC_POWER5,
+ PPC_POWER6,
+ PPC_POWER7,
+ PPC_POWER8,
+ PPC_G4,
+ PPC_G5,
+ PPC_PA6T
+ };
+
// General features
bool has_fpu() const { return has_fpu_; }
@@ -91,6 +103,7 @@ class CPU V8_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