MIPS: [turbofan] Add backend support for float32.
authorbalazs.kilvady@imgtec.com <balazs.kilvady@imgtec.com>
Wed, 24 Sep 2014 16:56:52 +0000 (16:56 +0000)
committerbalazs.kilvady@imgtec.com <balazs.kilvady@imgtec.com>
Wed, 24 Sep 2014 16:56:52 +0000 (16:56 +0000)
Port r24179 (41b81c2)

LOG=n
BUG=v8:3589
TEST=compiler-unittests,cctest
R=paul.lind@imgtec.com

Review URL: https://codereview.chromium.org/601783002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24192 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/mips/assembler-mips-inl.h
src/mips/assembler-mips.h
src/mips64/assembler-mips64-inl.h
src/mips64/assembler-mips64.h

index 2666f6ada7c0006999fb2c9fd12f3a4c7bb8cec2..1cd9361e9a28a461e4122f852d8191ff353a8f66 100644 (file)
@@ -99,6 +99,11 @@ int DoubleRegister::NumAllocatableRegisters() {
 }
 
 
+int DoubleRegister::NumAllocatableAliasedRegisters() {
+  return NumAllocatableRegisters();
+}
+
+
 int FPURegister::ToAllocationIndex(FPURegister reg) {
   DCHECK(reg.code() % 2 == 0);
   DCHECK(reg.code() / 2 < kMaxNumAllocatableRegisters);
index 5cdf16ac4ae8435fca6b327e191f446de1c4ca33..c6b12b76d7a8002477eb7791081ee861b97e4d4c 100644 (file)
@@ -222,6 +222,10 @@ struct FPURegister {
 
   inline static int NumRegisters();
   inline static int NumAllocatableRegisters();
+
+  // TODO(turbofan): Proper support for float32.
+  inline static int NumAllocatableAliasedRegisters();
+
   inline static int ToAllocationIndex(FPURegister reg);
   static const char* AllocationIndexToString(int index);
 
index de294ee6653408126d85bd46a4016623626fa497..76dd801af591b259d3de1b21601401806dcd687e 100644 (file)
@@ -99,6 +99,11 @@ int DoubleRegister::NumAllocatableRegisters() {
 }
 
 
+int DoubleRegister::NumAllocatableAliasedRegisters() {
+  return NumAllocatableRegisters();
+}
+
+
 int FPURegister::ToAllocationIndex(FPURegister reg) {
   DCHECK(reg.code() % 2 == 0);
   DCHECK(reg.code() / 2 < kMaxNumAllocatableRegisters);
index 5c754f495054bafffc8e2935ac973c9832577a36..b296d517584368d183cbfdbfb70d738a64de3d90 100644 (file)
@@ -211,6 +211,10 @@ struct FPURegister {
 
   inline static int NumRegisters();
   inline static int NumAllocatableRegisters();
+
+  // TODO(turbofan): Proper support for float32.
+  inline static int NumAllocatableAliasedRegisters();
+
   inline static int ToAllocationIndex(FPURegister reg);
   static const char* AllocationIndexToString(int index);