Use a typedef SlotList instead of Queue<uint16>.

This commit is contained in:
Andreas Gal 2008-08-07 17:22:21 -07:00
parent a21818bc72
commit 3ac96b066b
2 changed files with 5 additions and 3 deletions

View File

@ -536,7 +536,7 @@ public:
/* Capture the typemap for the selected slots of the global object. */
void
TypeMap::captureGlobalTypes(JSContext* cx, Queue<uint16>& slots)
TypeMap::captureGlobalTypes(JSContext* cx, SlotList& slots)
{
unsigned ngslots = slots.length();
uint16* gslots = slots.data();

View File

@ -160,9 +160,11 @@ public:
bool isStackSlotUndemotable(JSScript* script, jsbytecode* ip, unsigned slot) const;
};
typedef Queue<uint16> SlotList;
class TypeMap : public Queue<uint8> {
public:
void captureGlobalTypes(JSContext* cx, Queue<uint16>& slots);
void captureGlobalTypes(JSContext* cx, SlotList& slots);
void captureStackTypes(JSContext* cx, unsigned callDepth);
bool matches(TypeMap& other);
};
@ -175,7 +177,7 @@ public:
ptrdiff_t nativeStackBase;
unsigned maxCallDepth;
uint32 globalShape;
Queue<uint16> globalSlots;
SlotList globalSlots;
TypeMap stackTypeMap;
TypeMap globalTypeMap;
Queue<nanojit::Fragment*> outerTrees;