Changeset 190113 in webkit for trunk/Source/JavaScriptCore/runtime/Structure.cpp
- Timestamp:
- Sep 22, 2015, 5:21:31 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Structure.cpp
r190076 r190113 63 63 64 64 class SingleSlotTransitionWeakOwner final : public WeakHandleOwner { 65 void finalize( JSCell*&, void* context) override65 void finalize(Handle<Unknown>, void* context) override 66 66 { 67 67 StructureTransitionTable* table = reinterpret_cast<StructureTransitionTable*>(context); … … 83 83 if (WeakImpl* impl = this->weakImpl()) { 84 84 if (impl->state() == WeakImpl::Live) 85 return jsCast<Structure*>(impl-> cell());85 return jsCast<Structure*>(impl->jsValue().asCell()); 86 86 } 87 87 return nullptr; … … 93 93 if (WeakImpl* impl = this->weakImpl()) 94 94 WeakSet::deallocate(impl); 95 WeakImpl* impl = WeakSet::allocate( *structure, &singleSlotTransitionWeakOwner(), this);95 WeakImpl* impl = WeakSet::allocate(structure, &singleSlotTransitionWeakOwner(), this); 96 96 m_data = reinterpret_cast<intptr_t>(impl) | UsingSingleSlotFlag; 97 97 }
Note:
See TracChangeset
for help on using the changeset viewer.