Changeset 34791 in webkit for trunk/JavaScriptCore/kjs/JSFunction.cpp
- Timestamp:
- Jun 25, 2008, 12:07:38 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSFunction.cpp
r34754 r34791 164 164 165 165 if (static_cast<size_t>(index) >= body->parameters().size()) 166 return JSGlobalData::threadInstance().propertyNames->nullIdentifier;166 return _scope.globalObject()->globalData()->propertyNames->nullIdentifier; 167 167 168 168 const Identifier& name = parameters[index]; … … 172 172 for (size_t i = index + 1; i < size; ++i) 173 173 if (parameters[i] == name) 174 return JSGlobalData::threadInstance().propertyNames->nullIdentifier;174 return _scope.globalObject()->globalData()->propertyNames->nullIdentifier; 175 175 176 176 return name; … … 252 252 } 253 253 254 void IndexToNameMap::unMap( const Identifier& index)254 void IndexToNameMap::unMap(ExecState* exec, const Identifier& index) 255 255 { 256 256 bool indexIsNumber; … … 259 259 ASSERT(indexIsNumber && indexAsNumber < size); 260 260 261 _map[indexAsNumber] = JSGlobalData::threadInstance().propertyNames->nullIdentifier;261 _map[indexAsNumber] = exec->propertyNames().nullIdentifier; 262 262 } 263 263 … … 328 328 { 329 329 if (indexToNameMap.isMapped(propertyName)) { 330 indexToNameMap.unMap( propertyName);330 indexToNameMap.unMap(exec, propertyName); 331 331 return true; 332 332 } else {
Note:
See TracChangeset
for help on using the changeset viewer.