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

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

Issue 101413006: Implement in-heap backing store for typed arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: GC fixes Created 6 years, 11 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 case EXTERNAL_SHORT_ARRAY_TYPE: 177 case EXTERNAL_SHORT_ARRAY_TYPE:
178 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: 178 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE:
179 case EXTERNAL_INT_ARRAY_TYPE: 179 case EXTERNAL_INT_ARRAY_TYPE:
180 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: 180 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE:
181 case EXTERNAL_FLOAT_ARRAY_TYPE: 181 case EXTERNAL_FLOAT_ARRAY_TYPE:
182 case EXTERNAL_DOUBLE_ARRAY_TYPE: 182 case EXTERNAL_DOUBLE_ARRAY_TYPE:
183 return GetVisitorIdForSize(kVisitDataObject, 183 return GetVisitorIdForSize(kVisitDataObject,
184 kVisitDataObjectGeneric, 184 kVisitDataObjectGeneric,
185 instance_size); 185 instance_size);
186 186
187 case FIXED_UINT8_ARRAY_TYPE:
188 case FIXED_INT8_ARRAY_TYPE:
189 case FIXED_UINT16_ARRAY_TYPE:
190 case FIXED_INT16_ARRAY_TYPE:
191 case FIXED_UINT32_ARRAY_TYPE:
192 case FIXED_INT32_ARRAY_TYPE:
193 case FIXED_FLOAT32_ARRAY_TYPE:
194 case FIXED_UINT8_CLAMPED_ARRAY_TYPE:
195 return kVisitFixedTypedArray;
196
197 case FIXED_FLOAT64_ARRAY_TYPE:
198 return kVisitFixedFloat64Array;
199
187 #define MAKE_STRUCT_CASE(NAME, Name, name) \ 200 #define MAKE_STRUCT_CASE(NAME, Name, name) \
188 case NAME##_TYPE: 201 case NAME##_TYPE:
189 STRUCT_LIST(MAKE_STRUCT_CASE) 202 STRUCT_LIST(MAKE_STRUCT_CASE)
190 #undef MAKE_STRUCT_CASE 203 #undef MAKE_STRUCT_CASE
191 if (instance_type == ALLOCATION_SITE_TYPE) { 204 if (instance_type == ALLOCATION_SITE_TYPE) {
192 return kVisitAllocationSite; 205 return kVisitAllocationSite;
193 } 206 }
194 207
195 return GetVisitorIdForSize(kVisitStruct, 208 return GetVisitorIdForSize(kVisitStruct,
196 kVisitStructGeneric, 209 kVisitStructGeneric,
197 instance_size); 210 instance_size);
198 211
199 default: 212 default:
200 UNREACHABLE(); 213 UNREACHABLE();
201 return kVisitorIdCount; 214 return kVisitorIdCount;
202 } 215 }
203 } 216 }
204 217
205 } } // namespace v8::internal 218 } } // 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