Changeset 178928 in webkit for trunk/Source/JavaScriptCore/runtime/JSObject.h
- Timestamp:
- Jan 22, 2015, 11:34:34 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSObject.h
r178894 r178928 1245 1245 if (object->inlineGetOwnPropertySlot(vm, structure, propertyName, slot)) 1246 1246 return true; 1247 if (Optional<uint32_t> index = propertyName.asIndex()) 1248 return getOwnPropertySlotByIndex(object, exec, index.value(), slot); 1247 unsigned index = propertyName.asIndex(); 1248 if (index != PropertyName::NotAnIndex) 1249 return getOwnPropertySlotByIndex(object, exec, index, slot); 1249 1250 return false; 1250 1251 } … … 1274 1275 } 1275 1276 1276 if (Optional<uint32_t> index = propertyName.asIndex()) 1277 return getPropertySlot(exec, index.value(), slot); 1277 unsigned index = propertyName.asIndex(); 1278 if (index != PropertyName::NotAnIndex) 1279 return getPropertySlot(exec, index, slot); 1278 1280 return false; 1279 1281 } … … 1319 1321 ASSERT(value.isGetterSetter() == !!(attributes & Accessor)); 1320 1322 ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this)); 1321 ASSERT( !propertyName.asIndex());1323 ASSERT(propertyName.asIndex() == PropertyName::NotAnIndex); 1322 1324 1323 1325 Structure* structure = this->structure(vm);
Note:
See TracChangeset
for help on using the changeset viewer.