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

Unified Diff: src/compiler/register-allocator.cc

Issue 2092413002: [RegisterConfiguration] Streamline access to arch defaults, simplify Registers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compile. Created 4 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/register-allocator.cc
diff --git a/src/compiler/register-allocator.cc b/src/compiler/register-allocator.cc
index 72d93957952f6b40f431bd0857c66b772443f0dd..bfda1940bd70410d14b5931b590c3db0c0a76ab8 100644
--- a/src/compiler/register-allocator.cc
+++ b/src/compiler/register-allocator.cc
@@ -84,9 +84,8 @@ bool IsOutputFPRegisterOf(Instruction* instr, MachineRepresentation rep,
if (kSimpleFPAliasing) {
if (op->register_code() == code) return true;
} else {
- if (RegisterConfiguration::ArchDefault(RegisterConfiguration::TURBOFAN)
- ->AreAliases(op->representation(), op->register_code(), rep,
- code)) {
+ if (RegisterConfiguration::Turbofan()->AreAliases(
+ op->representation(), op->register_code(), rep, code)) {
return true;
}
}
@@ -823,9 +822,7 @@ void LiveRange::Print(const RegisterConfiguration* config,
void LiveRange::Print(bool with_children) const {
- const RegisterConfiguration* config =
- RegisterConfiguration::ArchDefault(RegisterConfiguration::TURBOFAN);
- Print(config, with_children);
+ Print(RegisterConfiguration::Turbofan(), with_children);
}
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698