Changeset 36794 in webkit for trunk/JavaScriptCore/kjs/nodes.h
- Timestamp:
- Sep 22, 2008, 10:22:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.h
r36660 r36794 2270 2270 void setSource(const SourceRange& source) { m_source = source; } 2271 2271 UString toSourceString() const JSC_FAST_CALL { return UString("{") + m_source.toString() + UString("}"); } 2272 2273 // These objects are ref/deref'd a lot in the scope chain, so this is a faster ref/deref. 2274 // If the virtual machine changes so this doesn't happen as much we can change back. 2275 void ref() 2276 { 2277 if (++m_refCount == 1) 2278 ScopeNode::ref(); 2279 } 2280 void deref() 2281 { 2282 ASSERT(m_refCount); 2283 if (!--m_refCount) 2284 ScopeNode::deref(); 2285 } 2286 2272 2287 protected: 2273 2288 FunctionBodyNode(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, bool usesEval, bool needsClosure, int numConstants) JSC_FAST_CALL; … … 2280 2295 OwnPtr<CodeBlock> m_code; 2281 2296 SourceRange m_source; 2297 unsigned m_refCount; 2282 2298 }; 2283 2299
Note:
See TracChangeset
for help on using the changeset viewer.