OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 // ----------------------------------------------------------------------------- | 38 // ----------------------------------------------------------------------------- |
39 // Implementation of CpuFeatures | 39 // Implementation of CpuFeatures |
40 | 40 |
41 | 41 |
42 #ifdef DEBUG | 42 #ifdef DEBUG |
43 bool CpuFeatures::initialized_ = false; | 43 bool CpuFeatures::initialized_ = false; |
44 #endif | 44 #endif |
45 uint64_t CpuFeatures::supported_ = CpuFeatures::kDefaultCpuFeatures; | 45 uint64_t CpuFeatures::supported_ = CpuFeatures::kDefaultCpuFeatures; |
46 uint64_t CpuFeatures::found_by_runtime_probing_only_ = 0; | 46 uint64_t CpuFeatures::found_by_runtime_probing_only_ = 0; |
47 | 47 uint64_t CpuFeatures::cross_compile_ = 0; |
48 | 48 |
49 ExternalReference ExternalReference::cpu_features() { | 49 ExternalReference ExternalReference::cpu_features() { |
50 ASSERT(CpuFeatures::initialized_); | 50 ASSERT(CpuFeatures::initialized_); |
51 return ExternalReference(&CpuFeatures::supported_); | 51 return ExternalReference(&CpuFeatures::supported_); |
52 } | 52 } |
53 | 53 |
54 | 54 |
55 void CpuFeatures::Probe() { | 55 void CpuFeatures::Probe() { |
56 ASSERT(supported_ == CpuFeatures::kDefaultCpuFeatures); | 56 ASSERT(supported_ == CpuFeatures::kDefaultCpuFeatures); |
57 #ifdef DEBUG | 57 #ifdef DEBUG |
(...skipping 2993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3051 bool RelocInfo::IsCodedSpecially() { | 3051 bool RelocInfo::IsCodedSpecially() { |
3052 // The deserializer needs to know whether a pointer is specially coded. Being | 3052 // The deserializer needs to know whether a pointer is specially coded. Being |
3053 // specially coded on x64 means that it is a relative 32 bit address, as used | 3053 // specially coded on x64 means that it is a relative 32 bit address, as used |
3054 // by branch instructions. | 3054 // by branch instructions. |
3055 return (1 << rmode_) & kApplyMask; | 3055 return (1 << rmode_) & kApplyMask; |
3056 } | 3056 } |
3057 | 3057 |
3058 } } // namespace v8::internal | 3058 } } // namespace v8::internal |
3059 | 3059 |
3060 #endif // V8_TARGET_ARCH_X64 | 3060 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |