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

Unified Diff: src/assembler.h

Issue 1806893002: Reland PPC portion of "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, 9 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/arm/codegen-arm.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 ca0f00d6f8a3f2f22fbec908af6d05baebfe5427..84c3fdcc3fec77e4a18075a66938570cbddc1d78 100644
--- a/src/assembler.h
+++ b/src/assembler.h
@@ -224,9 +224,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();
@@ -242,7 +247,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/arm/codegen-arm.cc ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698