| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1342 IsMoreGeneralElementsKindTransition(from, to)) { | 1342 IsMoreGeneralElementsKindTransition(from, to)) { |
| 1343 return TRACK_ALLOCATION_SITE; | 1343 return TRACK_ALLOCATION_SITE; |
| 1344 } | 1344 } |
| 1345 | 1345 |
| 1346 return DONT_TRACK_ALLOCATION_SITE; | 1346 return DONT_TRACK_ALLOCATION_SITE; |
| 1347 } | 1347 } |
| 1348 | 1348 |
| 1349 | 1349 |
| 1350 inline bool AllocationSite::CanTrack(InstanceType type) { | 1350 inline bool AllocationSite::CanTrack(InstanceType type) { |
| 1351 if (FLAG_allocation_site_pretenuring) { | 1351 if (FLAG_allocation_site_pretenuring) { |
| 1352 return type == JS_ARRAY_TYPE || | 1352 return type == JS_ARRAY_TYPE || type == JS_OBJECT_TYPE; |
| 1353 type == JS_OBJECT_TYPE || | |
| 1354 type < FIRST_NONSTRING_TYPE; | |
| 1355 } | 1353 } |
| 1356 return type == JS_ARRAY_TYPE; | 1354 return type == JS_ARRAY_TYPE; |
| 1357 } | 1355 } |
| 1358 | 1356 |
| 1359 | 1357 |
| 1360 inline DependentCode::DependencyGroup AllocationSite::ToDependencyGroup( | 1358 inline DependentCode::DependencyGroup AllocationSite::ToDependencyGroup( |
| 1361 Reason reason) { | 1359 Reason reason) { |
| 1362 switch (reason) { | 1360 switch (reason) { |
| 1363 case TENURING: | 1361 case TENURING: |
| 1364 return DependentCode::kAllocationSiteTenuringChangedGroup; | 1362 return DependentCode::kAllocationSiteTenuringChangedGroup; |
| (...skipping 5115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6480 #undef WRITE_UINT32_FIELD | 6478 #undef WRITE_UINT32_FIELD |
| 6481 #undef READ_SHORT_FIELD | 6479 #undef READ_SHORT_FIELD |
| 6482 #undef WRITE_SHORT_FIELD | 6480 #undef WRITE_SHORT_FIELD |
| 6483 #undef READ_BYTE_FIELD | 6481 #undef READ_BYTE_FIELD |
| 6484 #undef WRITE_BYTE_FIELD | 6482 #undef WRITE_BYTE_FIELD |
| 6485 | 6483 |
| 6486 | 6484 |
| 6487 } } // namespace v8::internal | 6485 } } // namespace v8::internal |
| 6488 | 6486 |
| 6489 #endif // V8_OBJECTS_INL_H_ | 6487 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |