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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 // ----------------------------------------------------------------------------- | 213 // ----------------------------------------------------------------------------- |
214 // Implementation of PlatformFeatureScope | 214 // Implementation of PlatformFeatureScope |
215 | 215 |
216 PlatformFeatureScope::PlatformFeatureScope(Isolate* isolate, CpuFeature f) | 216 PlatformFeatureScope::PlatformFeatureScope(Isolate* isolate, CpuFeature f) |
217 : isolate_(isolate), old_cross_compile_(CpuFeatures::cross_compile_) { | 217 : isolate_(isolate), old_cross_compile_(CpuFeatures::cross_compile_) { |
218 // CpuFeatures is a global singleton, therefore this is only safe in | 218 // CpuFeatures is a global singleton, therefore this is only safe in |
219 // single threaded code. | 219 // single threaded code. |
220 ASSERT(Serializer::enabled()); | 220 ASSERT(Serializer::enabled()); |
221 uint64_t mask = static_cast<uint64_t>(1) << f; | 221 uint64_t mask = static_cast<uint64_t>(1) << f; |
222 CpuFeatures::cross_compile_ |= mask; | 222 CpuFeatures::cross_compile_ |= mask; |
| 223 USE(isolate_); |
223 } | 224 } |
224 | 225 |
225 | 226 |
226 PlatformFeatureScope::~PlatformFeatureScope() { | 227 PlatformFeatureScope::~PlatformFeatureScope() { |
227 CpuFeatures::cross_compile_ = old_cross_compile_; | 228 CpuFeatures::cross_compile_ = old_cross_compile_; |
228 } | 229 } |
229 | 230 |
230 | 231 |
231 // ----------------------------------------------------------------------------- | 232 // ----------------------------------------------------------------------------- |
232 // Implementation of Label | 233 // Implementation of Label |
(...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1627 r2 = r2 - ad; | 1628 r2 = r2 - ad; |
1628 } | 1629 } |
1629 delta = ad - r2; | 1630 delta = ad - r2; |
1630 } while (q1 < delta || (q1 == delta && r1 == 0)); | 1631 } while (q1 < delta || (q1 == delta && r1 == 0)); |
1631 int32_t mul = static_cast<int32_t>(q2 + 1); | 1632 int32_t mul = static_cast<int32_t>(q2 + 1); |
1632 multiplier_ = (d < 0) ? -mul : mul; | 1633 multiplier_ = (d < 0) ? -mul : mul; |
1633 shift_ = p - 32; | 1634 shift_ = p - 32; |
1634 } | 1635 } |
1635 | 1636 |
1636 } } // namespace v8::internal | 1637 } } // namespace v8::internal |
OLD | NEW |