Lines Matching refs:jsObject
52 // fix them by adding a JSObject to RootObject dictionary.
54 RootObject* findProtectingRootObject(JSObject* jsObject)
58 if ((*it)->gcIsProtected(jsObject))
133 void RootObject::gcProtect(JSObject* jsObject)
137 if (!m_protectCountSet.contains(jsObject))
138 JSC::gcProtect(jsObject);
139 m_protectCountSet.add(jsObject);
142 void RootObject::gcUnprotect(JSObject* jsObject)
146 if (!jsObject)
149 if (m_protectCountSet.count(jsObject) == 1)
150 JSC::gcUnprotect(jsObject);
151 m_protectCountSet.remove(jsObject);
154 bool RootObject::gcIsProtected(JSObject* jsObject)
157 return m_protectCountSet.contains(jsObject);