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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // 0406B, page A1-6. | 102 // 0406B, page A1-6. |
103 supported_ |= 1u << VFP3 | 1u << ARMv7; | 103 supported_ |= 1u << VFP3 | 1u << ARMv7; |
104 } | 104 } |
105 | 105 |
106 if (FLAG_enable_neon && cpu.has_neon()) supported_ |= 1u << NEON; | 106 if (FLAG_enable_neon && cpu.has_neon()) supported_ |= 1u << NEON; |
107 if (FLAG_enable_sudiv && cpu.has_idiva()) supported_ |= 1u << SUDIV; | 107 if (FLAG_enable_sudiv && cpu.has_idiva()) supported_ |= 1u << SUDIV; |
108 if (FLAG_enable_mls && cpu.has_thumb2()) supported_ |= 1u << MLS; | 108 if (FLAG_enable_mls && cpu.has_thumb2()) supported_ |= 1u << MLS; |
109 | 109 |
110 if (cpu.architecture() >= 7) { | 110 if (cpu.architecture() >= 7) { |
111 if (FLAG_enable_armv7) supported_ |= 1u << ARMv7; | 111 if (FLAG_enable_armv7) supported_ |= 1u << ARMv7; |
| 112 if (FLAG_enable_armv8 && cpu.architecture() >= 8) { |
| 113 supported_ |= 1u << ARMv8; |
| 114 } |
112 if (FLAG_enable_unaligned_accesses) supported_ |= 1u << UNALIGNED_ACCESSES; | 115 if (FLAG_enable_unaligned_accesses) supported_ |= 1u << UNALIGNED_ACCESSES; |
113 // Use movw/movt for QUALCOMM ARMv7 cores. | 116 // Use movw/movt for QUALCOMM ARMv7 cores. |
114 if (FLAG_enable_movw_movt && cpu.implementer() == base::CPU::QUALCOMM) { | 117 if (FLAG_enable_movw_movt && cpu.implementer() == base::CPU::QUALCOMM) { |
115 supported_ |= 1u << MOVW_MOVT_IMMEDIATE_LOADS; | 118 supported_ |= 1u << MOVW_MOVT_IMMEDIATE_LOADS; |
116 } | 119 } |
117 } | 120 } |
118 | 121 |
119 // ARM Cortex-A9 and Cortex-A5 have 32 byte cachelines. | 122 // ARM Cortex-A9 and Cortex-A5 have 32 byte cachelines. |
120 if (cpu.implementer() == base::CPU::ARM && | 123 if (cpu.implementer() == base::CPU::ARM && |
121 (cpu.part() == base::CPU::ARM_CORTEX_A5 || | 124 (cpu.part() == base::CPU::ARM_CORTEX_A5 || |
(...skipping 3729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3851 assm->instr_at_put( | 3854 assm->instr_at_put( |
3852 rinfo.pc(), Assembler::SetLdrRegisterImmediateOffset(instr, offset)); | 3855 rinfo.pc(), Assembler::SetLdrRegisterImmediateOffset(instr, offset)); |
3853 } | 3856 } |
3854 } | 3857 } |
3855 } | 3858 } |
3856 | 3859 |
3857 | 3860 |
3858 } } // namespace v8::internal | 3861 } } // namespace v8::internal |
3859 | 3862 |
3860 #endif // V8_TARGET_ARCH_ARM | 3863 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |