| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |