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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 186 |
187 bool RelocInfo::IsInConstantPool() { | 187 bool RelocInfo::IsInConstantPool() { |
188 Instruction* instr = reinterpret_cast<Instruction*>(pc_); | 188 Instruction* instr = reinterpret_cast<Instruction*>(pc_); |
189 return instr->IsLdrLiteralX(); | 189 return instr->IsLdrLiteralX(); |
190 } | 190 } |
191 | 191 |
192 | 192 |
193 Register GetAllocatableRegisterThatIsNotOneOf(Register reg1, Register reg2, | 193 Register GetAllocatableRegisterThatIsNotOneOf(Register reg1, Register reg2, |
194 Register reg3, Register reg4) { | 194 Register reg3, Register reg4) { |
195 CPURegList regs(reg1, reg2, reg3, reg4); | 195 CPURegList regs(reg1, reg2, reg3, reg4); |
196 const RegisterConfiguration* config = RegisterConfiguration::ArchDefault(); | 196 const RegisterConfiguration* config = |
| 197 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT); |
197 for (int i = 0; i < config->num_allocatable_double_registers(); ++i) { | 198 for (int i = 0; i < config->num_allocatable_double_registers(); ++i) { |
198 int code = config->GetAllocatableDoubleCode(i); | 199 int code = config->GetAllocatableDoubleCode(i); |
199 Register candidate = Register::from_code(code); | 200 Register candidate = Register::from_code(code); |
200 if (regs.IncludesAliasOf(candidate)) continue; | 201 if (regs.IncludesAliasOf(candidate)) continue; |
201 return candidate; | 202 return candidate; |
202 } | 203 } |
203 UNREACHABLE(); | 204 UNREACHABLE(); |
204 return NoReg; | 205 return NoReg; |
205 } | 206 } |
206 | 207 |
(...skipping 2927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3134 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); | 3135 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); |
3135 DCHECK((target_offset >> 48) == 0); | 3136 DCHECK((target_offset >> 48) == 0); |
3136 add(rd, rd, scratch); | 3137 add(rd, rd, scratch); |
3137 } | 3138 } |
3138 | 3139 |
3139 | 3140 |
3140 } // namespace internal | 3141 } // namespace internal |
3141 } // namespace v8 | 3142 } // namespace v8 |
3142 | 3143 |
3143 #endif // V8_TARGET_ARCH_ARM64 | 3144 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |