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 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1352 IsMoreGeneralElementsKindTransition(from, to)) { | 1352 IsMoreGeneralElementsKindTransition(from, to)) { |
1353 return TRACK_ALLOCATION_SITE; | 1353 return TRACK_ALLOCATION_SITE; |
1354 } | 1354 } |
1355 | 1355 |
1356 return DONT_TRACK_ALLOCATION_SITE; | 1356 return DONT_TRACK_ALLOCATION_SITE; |
1357 } | 1357 } |
1358 | 1358 |
1359 | 1359 |
1360 inline bool AllocationSite::CanTrack(InstanceType type) { | 1360 inline bool AllocationSite::CanTrack(InstanceType type) { |
1361 if (FLAG_allocation_site_pretenuring) { | 1361 if (FLAG_allocation_site_pretenuring) { |
1362 return type == JS_ARRAY_TYPE || type == JS_OBJECT_TYPE; | 1362 return type == JS_ARRAY_TYPE || |
1363 type == JS_OBJECT_TYPE || | |
1364 type <= FIRST_NONSTRING_TYPE; | |
mvstanton
2013/12/11 08:15:29
Shouldn't it be < instead of <=? My impression is
Benedikt Meurer
2013/12/11 12:17:46
Done.
| |
1363 } | 1365 } |
1364 return type == JS_ARRAY_TYPE; | 1366 return type == JS_ARRAY_TYPE; |
1365 } | 1367 } |
1366 | 1368 |
1367 | 1369 |
1368 inline DependentCode::DependencyGroup AllocationSite::ToDependencyGroup( | 1370 inline DependentCode::DependencyGroup AllocationSite::ToDependencyGroup( |
1369 Reason reason) { | 1371 Reason reason) { |
1370 switch (reason) { | 1372 switch (reason) { |
1371 case TENURING: | 1373 case TENURING: |
1372 return DependentCode::kAllocationSiteTenuringChangedGroup; | 1374 return DependentCode::kAllocationSiteTenuringChangedGroup; |
(...skipping 5090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6463 #undef WRITE_UINT32_FIELD | 6465 #undef WRITE_UINT32_FIELD |
6464 #undef READ_SHORT_FIELD | 6466 #undef READ_SHORT_FIELD |
6465 #undef WRITE_SHORT_FIELD | 6467 #undef WRITE_SHORT_FIELD |
6466 #undef READ_BYTE_FIELD | 6468 #undef READ_BYTE_FIELD |
6467 #undef WRITE_BYTE_FIELD | 6469 #undef WRITE_BYTE_FIELD |
6468 | 6470 |
6469 | 6471 |
6470 } } // namespace v8::internal | 6472 } } // namespace v8::internal |
6471 | 6473 |
6472 #endif // V8_OBJECTS_INL_H_ | 6474 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |