mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Use a typedef SlotList instead of Queue<uint16>.
This commit is contained in:
parent
a21818bc72
commit
3ac96b066b
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user