Changeset 9145 in webkit for trunk/JavaScriptCore/bindings/runtime_root.h
- Timestamp:
- May 9, 2005, 4:57:33 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bindings/runtime_root.h
r9110 r9145 49 49 public: 50 50 RootObject (const void *nativeHandle) : _nativeHandle(nativeHandle), _imp(0), _interpreter(0) {} 51 ~RootObject (){ 52 #if !USE_CONSERVATIVE_GC 53 _imp->deref(); 54 #endif 55 #if USE_CONSERVATIVE_GC | TEST_CONSERVATIVE_GC 51 ~RootObject () { 56 52 gcUnprotect(_imp); 57 #endif58 53 } 59 54 60 55 void setRootObjectImp (ObjectImp *i) { 61 56 _imp = i; 62 #if !USE_CONSERVATIVE_GC63 _imp->ref();64 65 #endif66 #if USE_CONSERVATIVE_GC | TEST_CONSERVATIVE_GC67 57 gcProtect(_imp); 68 #endif69 58 } 70 59
Note:
See TracChangeset
for help on using the changeset viewer.