| Index: src/lithium.h
|
| diff --git a/src/lithium.h b/src/lithium.h
|
| index d1e2e3cdef2edc104f6e5831db0580694e869b45..ec7269509f45f45f05a800d233f9b18ec9b467c2 100644
|
| --- a/src/lithium.h
|
| +++ b/src/lithium.h
|
| @@ -69,10 +69,6 @@ class LOperand: public ZoneObject {
|
| ASSERT(this->index() == index);
|
| }
|
|
|
| - // Calls SetUpCache() for each subclass. Don't forget to update this method
|
| - // if you add a new LOperand subclass.
|
| - static void SetUpCaches();
|
| -
|
| protected:
|
| static const int kKindFieldWidth = 3;
|
| class KindField : public BitField<Kind, 0, kKindFieldWidth> { };
|
| @@ -268,7 +264,7 @@ class LConstantOperand: public LOperand {
|
|
|
| private:
|
| static const int kNumCachedOperands = 128;
|
| - static LConstantOperand* cache;
|
| + static LConstantOperand cache[];
|
|
|
| LConstantOperand() : LOperand() { }
|
| explicit LConstantOperand(int index) : LOperand(CONSTANT_OPERAND, index) { }
|
| @@ -303,7 +299,7 @@ class LStackSlot: public LOperand {
|
|
|
| private:
|
| static const int kNumCachedOperands = 128;
|
| - static LStackSlot* cache;
|
| + static LStackSlot cache[];
|
|
|
| LStackSlot() : LOperand() { }
|
| explicit LStackSlot(int index) : LOperand(STACK_SLOT, index) { }
|
| @@ -327,7 +323,7 @@ class LDoubleStackSlot: public LOperand {
|
|
|
| private:
|
| static const int kNumCachedOperands = 128;
|
| - static LDoubleStackSlot* cache;
|
| + static LDoubleStackSlot cache[];
|
|
|
| LDoubleStackSlot() : LOperand() { }
|
| explicit LDoubleStackSlot(int index) : LOperand(DOUBLE_STACK_SLOT, index) { }
|
| @@ -351,7 +347,7 @@ class LRegister: public LOperand {
|
|
|
| private:
|
| static const int kNumCachedOperands = 16;
|
| - static LRegister* cache;
|
| + static LRegister cache[];
|
|
|
| LRegister() : LOperand() { }
|
| explicit LRegister(int index) : LOperand(REGISTER, index) { }
|
| @@ -375,7 +371,7 @@ class LDoubleRegister: public LOperand {
|
|
|
| private:
|
| static const int kNumCachedOperands = 16;
|
| - static LDoubleRegister* cache;
|
| + static LDoubleRegister cache[];
|
|
|
| LDoubleRegister() : LOperand() { }
|
| explicit LDoubleRegister(int index) : LOperand(DOUBLE_REGISTER, index) { }
|
|
|