Bug 950716 - IonMonkey: Reorder struct fields for micro-efficiency. r=nbp

This commit is contained in:
Dan Gohman 2013-12-16 11:13:31 -08:00
parent defffc1ead
commit ae1e283247
2 changed files with 4 additions and 4 deletions

View File

@ -29,11 +29,11 @@ class BitSet : private TempObject
private:
BitSet(unsigned int numBits) :
numBits_(numBits),
bits_(nullptr) {}
bits_(nullptr),
numBits_(numBits) {}
unsigned int numBits_;
uint32_t *bits_;
const unsigned int numBits_;
static inline uint32_t bitForValue(unsigned int value) {
return 1l << uint32_t(value % BitsPerWord);

View File

@ -19,8 +19,8 @@ namespace jit {
template <typename T>
class FixedList
{
size_t length_;
T *list_;
size_t length_;
private:
FixedList(const FixedList&); // no copy definition.