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

Unified Diff: src/base/cpu.h

Issue 1643363002: Detect cache line size on Linux for PPC hosts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/assembler.cc ('k') | src/base/cpu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/cpu.h
diff --git a/src/base/cpu.h b/src/base/cpu.h
index ca108fa2bf91137b878d4365c6c5822e8a49fc68..3778d272334ef532e53dc058e2b1c826283c493d 100644
--- a/src/base/cpu.h
+++ b/src/base/cpu.h
@@ -75,6 +75,9 @@ class CPU final {
// General features
bool has_fpu() const { return has_fpu_; }
+ int icache_line_size() const { return icache_line_size_; }
+ int dcache_line_size() const { return dcache_line_size_; }
+ static const int UNKNOWN_CACHE_LINE_SIZE = 0;
// x86 features
bool has_cmov() const { return has_cmov_; }
@@ -118,6 +121,8 @@ class CPU final {
int architecture_;
int variant_;
int part_;
+ int icache_line_size_;
+ int dcache_line_size_;
bool has_fpu_;
bool has_cmov_;
bool has_sahf_;
« no previous file with comments | « src/assembler.cc ('k') | src/base/cpu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698