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 27 matching lines...) Expand all Loading... | |
| 38 | 38 |
| 39 namespace v8 { | 39 namespace v8 { |
| 40 namespace internal { | 40 namespace internal { |
| 41 | 41 |
| 42 | 42 |
| 43 // ----------------------------------------------------------------------------- | 43 // ----------------------------------------------------------------------------- |
| 44 // CpuFeatures implementation. | 44 // CpuFeatures implementation. |
| 45 | 45 |
| 46 void CpuFeatures::ProbeImpl(bool cross_compile) { | 46 void CpuFeatures::ProbeImpl(bool cross_compile) { |
| 47 // AArch64 has no configuration options, no further probing is required. | 47 // AArch64 has no configuration options, no further probing is required. |
| 48 supported_ = 0; | 48 supported_ = 0; |
|
JF
2014/12/15 16:23:23
The ARM and x64 version of this file also have:
rmcilroy
2014/12/15 16:32:02
Yes you will need this here otherwise the snapshot
arajp
2014/12/18 13:25:05
Done.
| |
| 49 // Probe for runtime features | |
| 50 base::CPU cpu; | |
| 51 if (cpu.implementer() == base::CPU::NVIDIA && | |
| 52 cpu.variant() == base::CPU::NV_VARIANT_DENVER) | |
| 53 supported_ |= 1u << COHERENT_CACHE; | |
|
Benedikt Meurer
2014/12/15 05:33:36
Nit: Add { and } for block.
arajp
2014/12/18 13:25:05
Done.
| |
| 49 } | 54 } |
| 50 | 55 |
| 51 | 56 |
| 52 void CpuFeatures::PrintTarget() { } | 57 void CpuFeatures::PrintTarget() { } |
| 53 void CpuFeatures::PrintFeatures() { } | 58 void CpuFeatures::PrintFeatures() { } |
| 54 | 59 |
| 55 | 60 |
| 56 // ----------------------------------------------------------------------------- | 61 // ----------------------------------------------------------------------------- |
| 57 // CPURegList utilities. | 62 // CPURegList utilities. |
| 58 | 63 |
| (...skipping 3070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3129 movz(scratch, (target_offset >> 16) & 0xFFFF, 16); | 3134 movz(scratch, (target_offset >> 16) & 0xFFFF, 16); |
| 3130 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); | 3135 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); |
| 3131 DCHECK((target_offset >> 48) == 0); | 3136 DCHECK((target_offset >> 48) == 0); |
| 3132 add(rd, rd, scratch); | 3137 add(rd, rd, scratch); |
| 3133 } | 3138 } |
| 3134 | 3139 |
| 3135 | 3140 |
| 3136 } } // namespace v8::internal | 3141 } } // namespace v8::internal |
| 3137 | 3142 |
| 3138 #endif // V8_TARGET_ARCH_ARM64 | 3143 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |