Changeset 2741 in webkit for trunk/JavaScriptCore/kjs/object.cpp
- Timestamp:
- Nov 18, 2002, 5:01:16 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object.cpp
r2740 r2741 62 62 63 63 ObjectImp::ObjectImp(const Object &proto) 64 : _prop(0), _proto(static_cast<ObjectImp*>(proto.imp())), _internalValue(0L), _scope( 0)64 : _prop(0), _proto(static_cast<ObjectImp*>(proto.imp())), _internalValue(0L), _scope(true) 65 65 { 66 66 //fprintf(stderr,"ObjectImp::ObjectImp %p\n",(void*)this); 67 _scope = ListImp::empty();68 _scope->setGcAllowed();69 67 _prop = new PropertyMap(); 70 68 } 71 69 72 ObjectImp::ObjectImp() 70 ObjectImp::ObjectImp() : 71 _scope(true) 73 72 { 74 73 //fprintf(stderr,"ObjectImp::ObjectImp %p\n",(void*)this); … … 76 75 _proto = NullImp::staticNull; 77 76 _internalValue = 0L; 78 _scope = ListImp::empty();79 _scope->setGcAllowed();80 77 _prop = new PropertyMap(); 81 78 } … … 99 96 if (_internalValue && !_internalValue->marked()) 100 97 _internalValue->mark(); 101 if (_scope && !_scope->marked()) 102 _scope->mark();98 99 _scope.mark(); 103 100 } 104 101 … … 391 388 void ObjectImp::setScope(const List &s) 392 389 { 393 if (_scope) _scope->setGcAllowed(); 394 _scope = static_cast<ListImp*>(s.imp()); 390 _scope = s; 395 391 } 396 392
Note:
See TracChangeset
for help on using the changeset viewer.