Bug 589199 - Cleanup: remove unused DEPTH_SLOT from BlockObject. (r=efaust)

This commit is contained in:
Shu-yu Guo 2015-10-06 14:00:28 -07:00
parent 90183c451d
commit a2244691ca

View File

@ -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