Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: src/arm64/assembler-arm64.cc

Issue 1405673003: provides a mechanism for optimizing compilers to select the different Register configuration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add the TODO comments. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm64/deoptimizer-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm64/deoptimizer-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698