mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
Bug 1112164
part 16 - Clean-up: Remove FloatRegister::GetSizeInBytes. r=bbouvier
This commit is contained in:
parent
e047218221
commit
b8f74c4cd2
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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) {
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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) {
|
||||
|
@ -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();
|
||||
};
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
};
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user