Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: src/objects-inl.h

Issue 106453003: Allocation site support for monomorphic StringAdds in BinaryOps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Michael's comments. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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;
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
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_
OLDNEW
« src/hydrogen.cc ('K') | « src/objects.cc ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698