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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // Only use statically determined features for cross compile (snapshot). | 51 // Only use statically determined features for cross compile (snapshot). |
52 if (cross_compile) return; | 52 if (cross_compile) return; |
53 | 53 |
54 // Probe for runtime features | 54 // Probe for runtime features |
55 base::CPU cpu; | 55 base::CPU cpu; |
56 if (cpu.implementer() == base::CPU::NVIDIA && | 56 if (cpu.implementer() == base::CPU::NVIDIA && |
57 cpu.variant() == base::CPU::NVIDIA_DENVER && | 57 cpu.variant() == base::CPU::NVIDIA_DENVER && |
58 cpu.part() <= base::CPU::NVIDIA_DENVER_V10) { | 58 cpu.part() <= base::CPU::NVIDIA_DENVER_V10) { |
59 supported_ |= 1u << COHERENT_CACHE; | 59 supported_ |= 1u << COHERENT_CACHE; |
60 } | 60 } |
61 | |
62 icache_line_size_ = cpu.icache_line_size(); | |
63 dcache_line_size_ = cpu.dcache_line_size(); | |
64 } | 61 } |
65 | 62 |
66 | 63 |
67 void CpuFeatures::PrintTarget() { } | 64 void CpuFeatures::PrintTarget() { } |
68 | 65 |
69 | 66 |
70 void CpuFeatures::PrintFeatures() { | 67 void CpuFeatures::PrintFeatures() { |
71 printf("COHERENT_CACHE=%d\n", CpuFeatures::IsSupported(COHERENT_CACHE)); | 68 printf("COHERENT_CACHE=%d\n", CpuFeatures::IsSupported(COHERENT_CACHE)); |
72 } | 69 } |
73 | 70 |
(...skipping 3066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3140 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); | 3137 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); |
3141 DCHECK((target_offset >> 48) == 0); | 3138 DCHECK((target_offset >> 48) == 0); |
3142 add(rd, rd, scratch); | 3139 add(rd, rd, scratch); |
3143 } | 3140 } |
3144 | 3141 |
3145 | 3142 |
3146 } // namespace internal | 3143 } // namespace internal |
3147 } // namespace v8 | 3144 } // namespace v8 |
3148 | 3145 |
3149 #endif // V8_TARGET_ARCH_ARM64 | 3146 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |