mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-23 21:17:52 +00:00
Bug 589199 - Cleanup: remove unused DEPTH_SLOT from BlockObject. (r=efaust)
This commit is contained in:
parent
90183c451d
commit
a2244691ca
@ -608,18 +608,10 @@ class DynamicWithObject : public NestedScopeObject
|
||||
|
||||
class BlockObject : public NestedScopeObject
|
||||
{
|
||||
protected:
|
||||
static const unsigned DEPTH_SLOT = 1;
|
||||
|
||||
public:
|
||||
static const unsigned RESERVED_SLOTS = 2;
|
||||
static const Class class_;
|
||||
|
||||
/* Return the abstract stack depth right before entering this nested scope. */
|
||||
uint32_t stackDepth() const {
|
||||
return getReservedSlot(DEPTH_SLOT).toPrivateUint32();
|
||||
}
|
||||
|
||||
/* Return the number of variables associated with this block. */
|
||||
uint32_t numVariables() const {
|
||||
// TODO: propertyCount() is O(n), use O(1) lastProperty()->slot() instead
|
||||
|
Loading…
x
Reference in New Issue
Block a user