mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Backed out changeset 0ecba91f42b5 (bug 1194139)
This commit is contained in:
parent
11ac435465
commit
42e9d67975
@ -240,7 +240,7 @@ class BaseFloatRegisters
|
||||
f31,
|
||||
invalid_freg
|
||||
};
|
||||
typedef uint32_t Code;
|
||||
typedef FPRegisterID Code;
|
||||
typedef FPRegisterID Encoding;
|
||||
|
||||
// Content spilled during bailouts.
|
||||
@ -248,7 +248,7 @@ class BaseFloatRegisters
|
||||
double d;
|
||||
};
|
||||
|
||||
static const char* GetName(Encoding code) {
|
||||
static const char* GetName(Code code) {
|
||||
static const char * const Names[] = { "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7",
|
||||
"f8", "f9", "f10", "f11", "f12", "f13",
|
||||
"f14", "f15", "f16", "f17", "f18", "f19",
|
||||
@ -257,7 +257,7 @@ class BaseFloatRegisters
|
||||
return Names[code];
|
||||
}
|
||||
|
||||
static const Encoding Invalid = invalid_freg;
|
||||
static const Code Invalid = invalid_freg;
|
||||
|
||||
typedef uint64_t SetType;
|
||||
};
|
||||
|
@ -64,7 +64,7 @@ class FloatRegisters : public BaseFloatRegisters
|
||||
public:
|
||||
static const char* GetName(uint32_t i) {
|
||||
MOZ_ASSERT(i < Total);
|
||||
return BaseFloatRegisters::GetName(Encoding(i % 32));
|
||||
return GetName(Code(i % 32));
|
||||
}
|
||||
|
||||
static Code FromName(const char* name);
|
||||
@ -182,7 +182,7 @@ class FloatRegister : public BaseFloatRegister
|
||||
}
|
||||
Encoding encoding() const {
|
||||
MOZ_ASSERT(!isInvalid());
|
||||
return Encoding(code_);
|
||||
return Code(code_ | (kind_ << 5));
|
||||
}
|
||||
uint32_t id() const {
|
||||
return code_;
|
||||
|
Loading…
Reference in New Issue
Block a user