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

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: Created 6 years, 5 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 eb51674df53c445a336a2f84e17f9bf0732c4de9..13324730e82c0fc260cfc1a8730d7d60c1d98100 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_; }
@@ -88,6 +100,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