| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
| 6 // are met: | 6 // are met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // ARM Cortex-A9 and Cortex-A5 have 32 byte cachelines. | 121 // ARM Cortex-A9 and Cortex-A5 have 32 byte cachelines. |
| 122 if (cpu.implementer() == base::CPU::ARM && | 122 if (cpu.implementer() == base::CPU::ARM && |
| 123 (cpu.part() == base::CPU::ARM_CORTEX_A5 || | 123 (cpu.part() == base::CPU::ARM_CORTEX_A5 || |
| 124 cpu.part() == base::CPU::ARM_CORTEX_A9)) { | 124 cpu.part() == base::CPU::ARM_CORTEX_A9)) { |
| 125 cache_line_size_ = 32; | 125 cache_line_size_ = 32; |
| 126 } | 126 } |
| 127 | 127 |
| 128 if (FLAG_enable_32dregs && cpu.has_vfp3_d32()) supported_ |= 1u << VFP32DREGS; | 128 if (FLAG_enable_32dregs && cpu.has_vfp3_d32()) supported_ |= 1u << VFP32DREGS; |
| 129 | 129 |
| 130 if (cpu.implementer() == base::CPU::NVIDIA && | 130 if (cpu.implementer() == base::CPU::NVIDIA && |
| 131 cpu.variant() == base::CPU::NVIDIA_DENVER) { | 131 cpu.variant() == base::CPU::NVIDIA_DENVER && |
| 132 cpu.part() <= base::CPU::NVIDIA_DENVER_V10) { |
| 132 supported_ |= 1u << COHERENT_CACHE; | 133 supported_ |= 1u << COHERENT_CACHE; |
| 133 } | 134 } |
| 134 #endif | 135 #endif |
| 135 | 136 |
| 136 DCHECK(!IsSupported(VFP3) || IsSupported(ARMv7)); | 137 DCHECK(!IsSupported(VFP3) || IsSupported(ARMv7)); |
| 137 } | 138 } |
| 138 | 139 |
| 139 | 140 |
| 140 void CpuFeatures::PrintTarget() { | 141 void CpuFeatures::PrintTarget() { |
| 141 const char* arm_arch = NULL; | 142 const char* arm_arch = NULL; |
| (...skipping 3839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3981 DCHECK(is_uint12(offset)); | 3982 DCHECK(is_uint12(offset)); |
| 3982 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset)); | 3983 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset)); |
| 3983 } | 3984 } |
| 3984 } | 3985 } |
| 3985 | 3986 |
| 3986 | 3987 |
| 3987 } // namespace internal | 3988 } // namespace internal |
| 3988 } // namespace v8 | 3989 } // namespace v8 |
| 3989 | 3990 |
| 3990 #endif // V8_TARGET_ARCH_ARM | 3991 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |