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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 | 264 |
265 | 265 |
266 CpuFeatureScope::~CpuFeatureScope() { | 266 CpuFeatureScope::~CpuFeatureScope() { |
267 assembler_->set_enabled_cpu_features(old_enabled_); | 267 assembler_->set_enabled_cpu_features(old_enabled_); |
268 } | 268 } |
269 #endif | 269 #endif |
270 | 270 |
271 | 271 |
272 bool CpuFeatures::initialized_ = false; | 272 bool CpuFeatures::initialized_ = false; |
273 unsigned CpuFeatures::supported_ = 0; | 273 unsigned CpuFeatures::supported_ = 0; |
274 unsigned CpuFeatures::cache_line_size_ = 0; | 274 unsigned CpuFeatures::icache_line_size_ = 0; |
| 275 unsigned CpuFeatures::dcache_line_size_ = 0; |
275 | 276 |
276 // ----------------------------------------------------------------------------- | 277 // ----------------------------------------------------------------------------- |
277 // Implementation of Label | 278 // Implementation of Label |
278 | 279 |
279 int Label::pos() const { | 280 int Label::pos() const { |
280 if (pos_ < 0) return -pos_ - 1; | 281 if (pos_ < 0) return -pos_ - 1; |
281 if (pos_ > 0) return pos_ - 1; | 282 if (pos_ > 0) return pos_ - 1; |
282 UNREACHABLE(); | 283 UNREACHABLE(); |
283 return 0; | 284 return 0; |
284 } | 285 } |
(...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2072 | 2073 |
2073 | 2074 |
2074 void Assembler::DataAlign(int m) { | 2075 void Assembler::DataAlign(int m) { |
2075 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 2076 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
2076 while ((pc_offset() & (m - 1)) != 0) { | 2077 while ((pc_offset() & (m - 1)) != 0) { |
2077 db(0); | 2078 db(0); |
2078 } | 2079 } |
2079 } | 2080 } |
2080 } // namespace internal | 2081 } // namespace internal |
2081 } // namespace v8 | 2082 } // namespace v8 |
OLD | NEW |