Changeset 119865 in webkit for trunk/Source/JavaScriptCore/runtime/JSObject.cpp
- Timestamp:
- Jun 8, 2012, 2:30:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSObject.cpp
r119795 r119865 99 99 } 100 100 101 if (thisObject->m_inheritorID) 102 visitor.append(&thisObject->m_inheritorID); 103 101 104 #if !ASSERT_DISABLED 102 105 visitor.m_isCheckingForDefaultMarkViolation = wasCheckingForDefaultMarkViolation; … … 534 537 Structure* JSObject::createInheritorID(JSGlobalData& globalData) 535 538 { 536 ASSERT(!getDirectLocation(globalData, globalData.m_inheritorIDKey));537 538 539 JSGlobalObject* globalObject; 539 540 if (isGlobalThis()) … … 542 543 globalObject = structure()->globalObject(); 543 544 ASSERT(globalObject); 544 545 Structure* inheritorID = createEmptyObjectStructure(globalData, globalObject, this); 546 ASSERT(inheritorID->isEmpty()); 547 548 PutPropertySlot slot; 549 putDirectInternal<PutModeDefineOwnProperty>(globalData, globalData.m_inheritorIDKey, inheritorID, 0, slot, 0); 550 return inheritorID; 545 m_inheritorID.set(globalData, this, createEmptyObjectStructure(globalData, globalObject, this)); 546 ASSERT(m_inheritorID->isEmpty()); 547 return m_inheritorID.get(); 551 548 } 552 549
Note:
See TracChangeset
for help on using the changeset viewer.