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

Side by Side Diff: src/assembler.cc

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, 10 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/assembler.h ('k') | src/base/cpu.h » ('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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 257
258 258
259 CpuFeatureScope::~CpuFeatureScope() { 259 CpuFeatureScope::~CpuFeatureScope() {
260 assembler_->set_enabled_cpu_features(old_enabled_); 260 assembler_->set_enabled_cpu_features(old_enabled_);
261 } 261 }
262 #endif 262 #endif
263 263
264 264
265 bool CpuFeatures::initialized_ = false; 265 bool CpuFeatures::initialized_ = false;
266 unsigned CpuFeatures::supported_ = 0; 266 unsigned CpuFeatures::supported_ = 0;
267 unsigned CpuFeatures::cache_line_size_ = 0; 267 unsigned CpuFeatures::icache_line_size_ = 0;
268 268 unsigned CpuFeatures::dcache_line_size_ = 0;
269 269
270 // ----------------------------------------------------------------------------- 270 // -----------------------------------------------------------------------------
271 // Implementation of Label 271 // Implementation of Label
272 272
273 int Label::pos() const { 273 int Label::pos() const {
274 if (pos_ < 0) return -pos_ - 1; 274 if (pos_ < 0) return -pos_ - 1;
275 if (pos_ > 0) return pos_ - 1; 275 if (pos_ > 0) return pos_ - 1;
276 UNREACHABLE(); 276 UNREACHABLE();
277 return 0; 277 return 0;
278 } 278 }
(...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after
1865 1865
1866 1866
1867 void Assembler::DataAlign(int m) { 1867 void Assembler::DataAlign(int m) {
1868 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1868 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1869 while ((pc_offset() & (m - 1)) != 0) { 1869 while ((pc_offset() & (m - 1)) != 0) {
1870 db(0); 1870 db(0);
1871 } 1871 }
1872 } 1872 }
1873 } // namespace internal 1873 } // namespace internal
1874 } // namespace v8 1874 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/base/cpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698