Bug 1112164 part 16 - Clean-up: Remove FloatRegister::GetSizeInBytes. r=bbouvier

This commit is contained in:
Nicolas B. Pierron 2015-02-26 12:18:29 +01:00
parent e047218221
commit b8f74c4cd2
9 changed files with 0 additions and 36 deletions

View File

@ -547,9 +547,6 @@ class TypedRegisterSet
TypedRegisterSet<T> reduceSetForPush() const {
return T::ReduceSetForPush(*this);
}
uint32_t getSizeInBytes() const {
return T::GetSizeInBytes(*this);
}
uint32_t getPushSizeInBytes() const {
return T::GetPushSizeInBytes(*this);
}

View File

@ -364,14 +364,6 @@ VFPRegister::ReduceSetForPush(const FloatRegisterSet &s)
return mod;
}
uint32_t
VFPRegister::GetSizeInBytes(const FloatRegisterSet &s)
{
uint64_t bits = s.bits();
uint32_t ret = mozilla::CountPopulation32(bits&0xffffffff) * sizeof(float);
ret += mozilla::CountPopulation32(bits >> 32) * sizeof(double);
return ret;
}
uint32_t
VFPRegister::GetPushSizeInBytes(const FloatRegisterSet &s)
{

View File

@ -525,7 +525,6 @@ class VFPRegister
return FloatRegisters::FromName(name);
}
static TypedRegisterSet<VFPRegister> ReduceSetForPush(const TypedRegisterSet<VFPRegister> &s);
static uint32_t GetSizeInBytes(const TypedRegisterSet<VFPRegister> &s);
static uint32_t GetPushSizeInBytes(const TypedRegisterSet<VFPRegister> &s);
uint32_t getRegisterDumpOffsetInBytes();
static uint32_t FirstBit(SetType x) {

View File

@ -114,14 +114,6 @@ FloatRegister::ReduceSetForPush(const FloatRegisterSet &s)
return mod;
}
uint32_t
FloatRegister::GetSizeInBytes(const FloatRegisterSet &s)
{
uint64_t bits = s.bits();
uint32_t ret = mozilla::CountPopulation32(bits & 0xffffffff) * sizeof(float);
ret += mozilla::CountPopulation32(bits >> 32) * sizeof(double);
return ret;
}
uint32_t
FloatRegister::GetPushSizeInBytes(const FloatRegisterSet &s)
{

View File

@ -498,7 +498,6 @@ class FloatRegister
return FloatRegisters::FromName(name);
}
static TypedRegisterSet<FloatRegister> ReduceSetForPush(const TypedRegisterSet<FloatRegister> &s);
static uint32_t GetSizeInBytes(const TypedRegisterSet<FloatRegister> &s);
static uint32_t GetPushSizeInBytes(const TypedRegisterSet<FloatRegister> &s);
uint32_t getRegisterDumpOffsetInBytes();
static uint32_t FirstBit(SetType x) {

View File

@ -336,7 +336,6 @@ struct FloatRegister {
}
static TypedRegisterSet<FloatRegister> ReduceSetForPush(const TypedRegisterSet<FloatRegister> &s);
static uint32_t GetSizeInBytes(const TypedRegisterSet<FloatRegister> &s);
static uint32_t GetPushSizeInBytes(const TypedRegisterSet<FloatRegister> &s);
uint32_t getRegisterDumpOffsetInBytes();
};

View File

@ -310,12 +310,6 @@ FloatRegister::ReduceSetForPush(const FloatRegisterSet &s)
return s;
}
uint32_t
FloatRegister::GetSizeInBytes(const FloatRegisterSet &s)
{
uint32_t ret = s.size() * sizeof(double);
return ret;
}
uint32_t
FloatRegister::GetPushSizeInBytes(const FloatRegisterSet &s)
{
SetType all = s.bits();

View File

@ -309,7 +309,6 @@ struct FloatRegister {
}
static TypedRegisterSet<FloatRegister> ReduceSetForPush(const TypedRegisterSet<FloatRegister> &s);
static uint32_t GetSizeInBytes(const TypedRegisterSet<FloatRegister> &s);
static uint32_t GetPushSizeInBytes(const TypedRegisterSet<FloatRegister> &s);
uint32_t getRegisterDumpOffsetInBytes();
};

View File

@ -102,13 +102,6 @@ Assembler::TraceJumpRelocations(JSTracer *trc, JitCode *code, CompactBufferReade
}
}
uint32_t
FloatRegister::GetSizeInBytes(const FloatRegisterSet &s)
{
uint32_t ret = s.size() * sizeof(double);
return ret;
}
FloatRegisterSet
FloatRegister::ReduceSetForPush(const FloatRegisterSet &s)
{