mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Bug 950716 - IonMonkey: Reorder struct fields for micro-efficiency. r=nbp
This commit is contained in:
parent
fbee2260d8
commit
be2485b3fc
@ -29,11 +29,11 @@ class BitSet : private TempObject
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
BitSet(unsigned int numBits) :
|
BitSet(unsigned int numBits) :
|
||||||
numBits_(numBits),
|
bits_(nullptr),
|
||||||
bits_(nullptr) {}
|
numBits_(numBits) {}
|
||||||
|
|
||||||
unsigned int numBits_;
|
|
||||||
uint32_t *bits_;
|
uint32_t *bits_;
|
||||||
|
const unsigned int numBits_;
|
||||||
|
|
||||||
static inline uint32_t bitForValue(unsigned int value) {
|
static inline uint32_t bitForValue(unsigned int value) {
|
||||||
return 1l << uint32_t(value % BitsPerWord);
|
return 1l << uint32_t(value % BitsPerWord);
|
||||||
|
@ -19,8 +19,8 @@ namespace jit {
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
class FixedList
|
class FixedList
|
||||||
{
|
{
|
||||||
size_t length_;
|
|
||||||
T *list_;
|
T *list_;
|
||||||
|
size_t length_;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
FixedList(const FixedList&); // no copy definition.
|
FixedList(const FixedList&); // no copy definition.
|
||||||
|
Loading…
Reference in New Issue
Block a user