Changeset 140259 in webkit for trunk/Source/JavaScriptCore/runtime/JSFunction.cpp
- Timestamp:
- Jan 19, 2013, 1:47:45 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSFunction.cpp
r139541 r140259 109 109 Structure* JSFunction::cacheInheritorID(ExecState* exec) 110 110 { 111 JSValue prototype = get(exec, exec->globalData().propertyNames->prototype); 111 JSGlobalData& globalData = exec->globalData(); 112 JSValue prototype = get(exec, globalData.propertyNames->prototype); 112 113 if (prototype.isObject()) 113 m_cachedInheritorID.set( exec->globalData(), this, asObject(prototype)->inheritorID(exec->globalData()));114 m_cachedInheritorID.set(globalData, this, globalData.prototypeMap.emptyObjectStructureForPrototype(asObject(prototype))); 114 115 else 115 m_cachedInheritorID.set( exec->globalData(), this, globalObject()->emptyObjectStructure());116 m_cachedInheritorID.set(globalData, this, globalData.prototypeMap.emptyObjectStructureForPrototype(globalObject()->objectPrototype())); 116 117 return m_cachedInheritorID.get(); 117 118 } … … 163 164 visitor.append(&thisObject->m_scope); 164 165 visitor.append(&thisObject->m_executable); 166 visitor.append(&thisObject->m_cachedInheritorID); 165 167 } 166 168
Note:
See TracChangeset
for help on using the changeset viewer.