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

Unified Diff: src/ppc/assembler-ppc.h

Issue 1164813007: Config double register number as 1 for X87 Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
Index: src/ppc/assembler-ppc.h
diff --git a/src/ppc/assembler-ppc.h b/src/ppc/assembler-ppc.h
index fb56852bb5b5c254d82662f910f0b1c5265f90dc..61fb4cad90ec7ddf3600f2d8d2357c912dcb39d8 100644
--- a/src/ppc/assembler-ppc.h
+++ b/src/ppc/assembler-ppc.h
@@ -318,6 +318,14 @@ struct DoubleRegister {
return NumAllocatableRegisters();
}
+ static int NumAllocatableRegistersForTurbo() {
+ return kMaxNumAllocatableRegisters;
+ }
+
+ static int NumAllocatableAliasedRegistersForTurbo() {
+ return NumAllocatableAliasedRegisters();
+ }
+
static int ToAllocationIndex(DoubleRegister reg) {
int code = reg.code();
int index = (code <= kAllocatableLowRangeEnd)

Powered by Google App Engine
This is Rietveld 408576698