Changeset 128428 in webkit for trunk/Source/JavaScriptCore/runtime/JSObject.cpp
- Timestamp:
- Sep 13, 2012, 1:43:33 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSObject.cpp
r128400 r128428 236 236 switch (thisObject->structure()->indexingType()) { 237 237 case NonArray: 238 case Array :238 case ArrayClass: 239 239 break; 240 240 … … 356 356 switch (thisObject->structure()->indexingType()) { 357 357 case NonArray: 358 case Array :358 case ArrayClass: 359 359 break; 360 360 … … 439 439 { 440 440 IndexingType oldType = structure()->indexingType(); 441 ASSERT_UNUSED(oldType, oldType == NonArray || oldType == Array );441 ASSERT_UNUSED(oldType, oldType == NonArray || oldType == ArrayClass); 442 442 Butterfly* newButterfly = m_butterfly->growArrayRight( 443 443 globalData, structure(), structure()->outOfLineCapacity(), false, 0, … … 472 472 return enterDictionaryIndexingModeWhenArrayStorageAlreadyExists(globalData, m_butterfly->arrayStorage()); 473 473 474 case Array :474 case ArrayClass: 475 475 case NonArray: { 476 476 createArrayStorage(globalData, 0, 0); … … 598 598 599 599 switch (thisObject->structure()->indexingType()) { 600 case Array :600 case ArrayClass: 601 601 case NonArray: 602 602 return true; … … 764 764 switch (object->structure()->indexingType()) { 765 765 case NonArray: 766 case Array :766 case ArrayClass: 767 767 break; 768 768 … … 1191 1191 switch (structure()->indexingType()) { 1192 1192 case NonArray: 1193 case Array : {1193 case ArrayClass: { 1194 1194 if (indexingShouldBeSparse()) { 1195 1195 putByIndexBeyondVectorLengthWithArrayStorage(exec, i, value, shouldThrow, ensureArrayStorageExistsAndEnterDictionaryIndexingMode(globalData)); … … 1300 1300 switch (structure()->indexingType()) { 1301 1301 case NonArray: 1302 case Array : {1302 case ArrayClass: { 1303 1303 if (indexingShouldBeSparse() || attributes) 1304 1304 return putDirectIndexBeyondVectorLengthWithArrayStorage(exec, i, value, attributes, mode, ensureArrayStorageExistsAndEnterDictionaryIndexingMode(globalData)); … … 1356 1356 switch (structure()->indexingType()) { 1357 1357 case NonArray: 1358 case Array :1358 case ArrayClass: 1359 1359 vectorLength = 0; 1360 1360 length = 0; … … 1480 1480 switch (object->structure()->indexingType()) { 1481 1481 case NonArray: 1482 case Array :1482 case ArrayClass: 1483 1483 return false; 1484 1484
Note:
See TracChangeset
for help on using the changeset viewer.