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

Unified Diff: src/assembler.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/arm64/cpu-arm64.cc ('k') | src/assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/assembler.h
diff --git a/src/assembler.h b/src/assembler.h
index e65209b0fe773c84620226e73040e0bcbedd31ac..24c01ffb1adec3849ed80887162780e939aed9a0 100644
--- a/src/assembler.h
+++ b/src/assembler.h
@@ -223,9 +223,14 @@ class CpuFeatures : public AllStatic {
static inline bool SupportsCrankshaft();
- static inline unsigned cache_line_size() {
- DCHECK(cache_line_size_ != 0);
- return cache_line_size_;
+ static inline unsigned icache_line_size() {
+ DCHECK(icache_line_size_ != 0);
+ return icache_line_size_;
+ }
+
+ static inline unsigned dcache_line_size() {
+ DCHECK(dcache_line_size_ != 0);
+ return dcache_line_size_;
}
static void PrintTarget();
@@ -241,7 +246,8 @@ class CpuFeatures : public AllStatic {
static void ProbeImpl(bool cross_compile);
static unsigned supported_;
- static unsigned cache_line_size_;
+ static unsigned icache_line_size_;
+ static unsigned dcache_line_size_;
static bool initialized_;
DISALLOW_COPY_AND_ASSIGN(CpuFeatures);
};
« no previous file with comments | « src/arm64/cpu-arm64.cc ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698