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(); |
61 } | 64 } |
62 | 65 |
63 | 66 |
64 void CpuFeatures::PrintTarget() { } | 67 void CpuFeatures::PrintTarget() { } |
65 | 68 |
66 | 69 |
67 void CpuFeatures::PrintFeatures() { | 70 void CpuFeatures::PrintFeatures() { |
68 printf("COHERENT_CACHE=%d\n", CpuFeatures::IsSupported(COHERENT_CACHE)); | 71 printf("COHERENT_CACHE=%d\n", CpuFeatures::IsSupported(COHERENT_CACHE)); |
69 } | 72 } |
70 | 73 |
(...skipping 3066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3137 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); | 3140 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); |
3138 DCHECK((target_offset >> 48) == 0); | 3141 DCHECK((target_offset >> 48) == 0); |
3139 add(rd, rd, scratch); | 3142 add(rd, rd, scratch); |
3140 } | 3143 } |
3141 | 3144 |
3142 | 3145 |
3143 } // namespace internal | 3146 } // namespace internal |
3144 } // namespace v8 | 3147 } // namespace v8 |
3145 | 3148 |
3146 #endif // V8_TARGET_ARCH_ARM64 | 3149 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |