Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Redistribution and use in source and binary forms, with or without | 3 // Redistribution and use in source and binary forms, with or without |
| 4 // modification, are permitted provided that the following conditions are | 4 // modification, are permitted provided that the following conditions are |
| 5 // met: | 5 // met: |
| 6 // | 6 // |
| 7 // * Redistributions of source code must retain the above copyright | 7 // * Redistributions of source code must retain the above copyright |
| 8 // notice, this list of conditions and the following disclaimer. | 8 // notice, this list of conditions and the following disclaimer. |
| 9 // * Redistributions in binary form must reproduce the above | 9 // * Redistributions in binary form must reproduce the above |
| 10 // copyright notice, this list of conditions and the following | 10 // copyright notice, this list of conditions and the following |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 void CpuFeatures::ProbeImpl(bool cross_compile) { | 45 void CpuFeatures::ProbeImpl(bool cross_compile) { |
| 46 // AArch64 has no configuration options, no further probing is required. | 46 // AArch64 has no configuration options, no further probing is required. |
| 47 supported_ = 0; | 47 supported_ = 0; |
| 48 | 48 |
| 49 // Only use statically determined features for cross compile (snapshot). | 49 // Only use statically determined features for cross compile (snapshot). |
| 50 if (cross_compile) return; | 50 if (cross_compile) return; |
| 51 | 51 |
| 52 // Probe for runtime features | 52 // Probe for runtime features |
| 53 base::CPU cpu; | 53 base::CPU cpu; |
| 54 if (cpu.implementer() == base::CPU::NVIDIA && | 54 if (cpu.implementer() == base::CPU::NVIDIA && |
| 55 cpu.variant() == base::CPU::NVIDIA_DENVER) { | 55 cpu.variant() == base::CPU::NVIDIA_DENVER && |
|
Rodolph Perfetta (ARM)
2015/08/19 08:19:27
Denver is a CPU part (like A57, A53 for ARM), so i
avanbrunt
2015/08/19 16:35:38
Implementer == 'N' and and variant == 0x0 combined
| |
| 56 cpu.part() <= base::CPU::NVIDIA_DENVER_V10) { | |
| 56 supported_ |= 1u << COHERENT_CACHE; | 57 supported_ |= 1u << COHERENT_CACHE; |
| 57 } | 58 } |
| 58 } | 59 } |
| 59 | 60 |
| 60 | 61 |
| 61 void CpuFeatures::PrintTarget() { } | 62 void CpuFeatures::PrintTarget() { } |
| 62 | 63 |
| 63 | 64 |
| 64 void CpuFeatures::PrintFeatures() { | 65 void CpuFeatures::PrintFeatures() { |
| 65 printf("COHERENT_CACHE=%d\n", CpuFeatures::IsSupported(COHERENT_CACHE)); | 66 printf("COHERENT_CACHE=%d\n", CpuFeatures::IsSupported(COHERENT_CACHE)); |
| (...skipping 3071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3137 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); | 3138 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); |
| 3138 DCHECK((target_offset >> 48) == 0); | 3139 DCHECK((target_offset >> 48) == 0); |
| 3139 add(rd, rd, scratch); | 3140 add(rd, rd, scratch); |
| 3140 } | 3141 } |
| 3141 | 3142 |
| 3142 | 3143 |
| 3143 } // namespace internal | 3144 } // namespace internal |
| 3144 } // namespace v8 | 3145 } // namespace v8 |
| 3145 | 3146 |
| 3146 #endif // V8_TARGET_ARCH_ARM64 | 3147 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |