| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 typedef uint64_t (*F0)(); | 144 typedef uint64_t (*F0)(); |
| 145 F0 probe = FUNCTION_CAST<F0>(reinterpret_cast<Address>(memory->address())); | 145 F0 probe = FUNCTION_CAST<F0>(reinterpret_cast<Address>(memory->address())); |
| 146 | 146 |
| 147 uint64_t probed_features = probe(); | 147 uint64_t probed_features = probe(); |
| 148 uint64_t platform_features = OS::CpuFeaturesImpliedByPlatform(); | 148 uint64_t platform_features = OS::CpuFeaturesImpliedByPlatform(); |
| 149 supported_ = probed_features | platform_features; | 149 supported_ = probed_features | platform_features; |
| 150 found_by_runtime_probing_only_ | 150 found_by_runtime_probing_only_ |
| 151 = probed_features & ~kDefaultCpuFeatures & ~platform_features; | 151 = probed_features & ~kDefaultCpuFeatures & ~platform_features; |
| 152 | 152 |
| 153 // SSE2 and CMOV must be available on an X64 CPU. | 153 // CMOV must be available on an X64 CPU. |
| 154 ASSERT(IsSupported(CPUID)); | 154 ASSERT(IsSupported(CPUID)); |
| 155 ASSERT(IsSupported(SSE2)); | |
| 156 ASSERT(IsSupported(CMOV)); | 155 ASSERT(IsSupported(CMOV)); |
| 157 | 156 |
| 158 delete memory; | 157 delete memory; |
| 159 } | 158 } |
| 160 | 159 |
| 161 | 160 |
| 162 // ----------------------------------------------------------------------------- | 161 // ----------------------------------------------------------------------------- |
| 163 // Implementation of RelocInfo | 162 // Implementation of RelocInfo |
| 164 | 163 |
| 165 // Patch the code at the current PC with a call to the target address. | 164 // Patch the code at the current PC with a call to the target address. |
| (...skipping 2920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3086 bool RelocInfo::IsCodedSpecially() { | 3085 bool RelocInfo::IsCodedSpecially() { |
| 3087 // The deserializer needs to know whether a pointer is specially coded. Being | 3086 // The deserializer needs to know whether a pointer is specially coded. Being |
| 3088 // specially coded on x64 means that it is a relative 32 bit address, as used | 3087 // specially coded on x64 means that it is a relative 32 bit address, as used |
| 3089 // by branch instructions. | 3088 // by branch instructions. |
| 3090 return (1 << rmode_) & kApplyMask; | 3089 return (1 << rmode_) & kApplyMask; |
| 3091 } | 3090 } |
| 3092 | 3091 |
| 3093 } } // namespace v8::internal | 3092 } } // namespace v8::internal |
| 3094 | 3093 |
| 3095 #endif // V8_TARGET_ARCH_X64 | 3094 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |