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

Side by Side Diff: src/assembler.h

Issue 1806853002: Revert "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 unified diff | Download patch
« no previous file with comments | « src/arm64/cpu-arm64.cc ('k') | src/assembler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 Probe(false); 217 Probe(false);
218 return supported_; 218 return supported_;
219 } 219 }
220 220
221 static bool IsSupported(CpuFeature f) { 221 static bool IsSupported(CpuFeature f) {
222 return (supported_ & (1u << f)) != 0; 222 return (supported_ & (1u << f)) != 0;
223 } 223 }
224 224
225 static inline bool SupportsCrankshaft(); 225 static inline bool SupportsCrankshaft();
226 226
227 static inline unsigned icache_line_size() { 227 static inline unsigned cache_line_size() {
228 DCHECK(icache_line_size_ != 0); 228 DCHECK(cache_line_size_ != 0);
229 return icache_line_size_; 229 return cache_line_size_;
230 }
231
232 static inline unsigned dcache_line_size() {
233 DCHECK(dcache_line_size_ != 0);
234 return dcache_line_size_;
235 } 230 }
236 231
237 static void PrintTarget(); 232 static void PrintTarget();
238 static void PrintFeatures(); 233 static void PrintFeatures();
239 234
240 private: 235 private:
241 friend class ExternalReference; 236 friend class ExternalReference;
242 friend class AssemblerBase; 237 friend class AssemblerBase;
243 // Flush instruction cache. 238 // Flush instruction cache.
244 static void FlushICache(void* start, size_t size); 239 static void FlushICache(void* start, size_t size);
245 240
246 // Platform-dependent implementation. 241 // Platform-dependent implementation.
247 static void ProbeImpl(bool cross_compile); 242 static void ProbeImpl(bool cross_compile);
248 243
249 static unsigned supported_; 244 static unsigned supported_;
250 static unsigned icache_line_size_; 245 static unsigned cache_line_size_;
251 static unsigned dcache_line_size_;
252 static bool initialized_; 246 static bool initialized_;
253 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); 247 DISALLOW_COPY_AND_ASSIGN(CpuFeatures);
254 }; 248 };
255 249
256 250
257 // ----------------------------------------------------------------------------- 251 // -----------------------------------------------------------------------------
258 // Labels represent pc locations; they are typically jump or call targets. 252 // Labels represent pc locations; they are typically jump or call targets.
259 // After declaration, a label can be freely used to denote known or (yet) 253 // After declaration, a label can be freely used to denote known or (yet)
260 // unknown pc location. Assembler::bind() is used to bind a label to the 254 // unknown pc location. Assembler::bind() is used to bind a label to the
261 // current pc. A label can be bound only once. 255 // current pc. A label can be bound only once.
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
1305 std::vector<ConstantPoolEntry> shared_entries; 1299 std::vector<ConstantPoolEntry> shared_entries;
1306 }; 1300 };
1307 1301
1308 Label emitted_label_; // Records pc_offset of emitted pool 1302 Label emitted_label_; // Records pc_offset of emitted pool
1309 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; 1303 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES];
1310 }; 1304 };
1311 1305
1312 } // namespace internal 1306 } // namespace internal
1313 } // namespace v8 1307 } // namespace v8
1314 #endif // V8_ASSEMBLER_H_ 1308 #endif // V8_ASSEMBLER_H_
OLDNEW
« 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