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

Side by Side Diff: src/objects-visiting.cc

Issue 18173013: AllocationSite objects weakly linked for traversal (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed final nits Created 7 years, 5 months 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
« no previous file with comments | « src/objects-visiting.h ('k') | src/objects-visiting-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 case EXTERNAL_FLOAT_ARRAY_TYPE: 175 case EXTERNAL_FLOAT_ARRAY_TYPE:
176 case EXTERNAL_DOUBLE_ARRAY_TYPE: 176 case EXTERNAL_DOUBLE_ARRAY_TYPE:
177 return GetVisitorIdForSize(kVisitDataObject, 177 return GetVisitorIdForSize(kVisitDataObject,
178 kVisitDataObjectGeneric, 178 kVisitDataObjectGeneric,
179 instance_size); 179 instance_size);
180 180
181 #define MAKE_STRUCT_CASE(NAME, Name, name) \ 181 #define MAKE_STRUCT_CASE(NAME, Name, name) \
182 case NAME##_TYPE: 182 case NAME##_TYPE:
183 STRUCT_LIST(MAKE_STRUCT_CASE) 183 STRUCT_LIST(MAKE_STRUCT_CASE)
184 #undef MAKE_STRUCT_CASE 184 #undef MAKE_STRUCT_CASE
185 if (instance_type == ALLOCATION_SITE_TYPE) {
186 return kVisitAllocationSite;
187 }
188
185 return GetVisitorIdForSize(kVisitStruct, 189 return GetVisitorIdForSize(kVisitStruct,
186 kVisitStructGeneric, 190 kVisitStructGeneric,
187 instance_size); 191 instance_size);
188 192
189 default: 193 default:
190 UNREACHABLE(); 194 UNREACHABLE();
191 return kVisitorIdCount; 195 return kVisitorIdCount;
192 } 196 }
193 } 197 }
194 198
195 } } // namespace v8::internal 199 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-visiting.h ('k') | src/objects-visiting-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698