From a421506f8a694ecde3889918bd665ccfa764640f Mon Sep 17 00:00:00 2001 From: "balazs.kilvady@imgtec.com" Date: Wed, 24 Sep 2014 16:56:52 +0000 Subject: [PATCH] MIPS: [turbofan] Add backend support for float32. 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 | 5 +++++ src/mips/assembler-mips.h | 4 ++++ src/mips64/assembler-mips64-inl.h | 5 +++++ src/mips64/assembler-mips64.h | 4 ++++ 4 files changed, 18 insertions(+) diff --git a/src/mips/assembler-mips-inl.h b/src/mips/assembler-mips-inl.h index 2666f6ada..1cd9361e9 100644 --- a/src/mips/assembler-mips-inl.h +++ b/src/mips/assembler-mips-inl.h @@ -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); diff --git a/src/mips/assembler-mips.h b/src/mips/assembler-mips.h index 5cdf16ac4..c6b12b76d 100644 --- a/src/mips/assembler-mips.h +++ b/src/mips/assembler-mips.h @@ -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); diff --git a/src/mips64/assembler-mips64-inl.h b/src/mips64/assembler-mips64-inl.h index de294ee66..76dd801af 100644 --- a/src/mips64/assembler-mips64-inl.h +++ b/src/mips64/assembler-mips64-inl.h @@ -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); diff --git a/src/mips64/assembler-mips64.h b/src/mips64/assembler-mips64.h index 5c754f495..b296d5175 100644 --- a/src/mips64/assembler-mips64.h +++ b/src/mips64/assembler-mips64.h @@ -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); -- 2.34.1