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

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

Issue 90643003: Experimental implementation: Exposing SIMD instructions into JavaScript Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
« no previous file with comments | « src/objects-printer.cc ('k') | src/property-details.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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 case JS_BUILTINS_OBJECT_TYPE: 164 case JS_BUILTINS_OBJECT_TYPE:
165 case JS_MESSAGE_OBJECT_TYPE: 165 case JS_MESSAGE_OBJECT_TYPE:
166 return GetVisitorIdForSize(kVisitJSObject, 166 return GetVisitorIdForSize(kVisitJSObject,
167 kVisitJSObjectGeneric, 167 kVisitJSObjectGeneric,
168 instance_size); 168 instance_size);
169 169
170 case JS_FUNCTION_TYPE: 170 case JS_FUNCTION_TYPE:
171 return kVisitJSFunction; 171 return kVisitJSFunction;
172 172
173 case HEAP_NUMBER_TYPE: 173 case HEAP_NUMBER_TYPE:
174 case FLOAT32x4_TYPE:
175 case INT32x4_TYPE:
174 case EXTERNAL_PIXEL_ARRAY_TYPE: 176 case EXTERNAL_PIXEL_ARRAY_TYPE:
175 case EXTERNAL_BYTE_ARRAY_TYPE: 177 case EXTERNAL_BYTE_ARRAY_TYPE:
176 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: 178 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE:
177 case EXTERNAL_SHORT_ARRAY_TYPE: 179 case EXTERNAL_SHORT_ARRAY_TYPE:
178 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: 180 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE:
179 case EXTERNAL_INT_ARRAY_TYPE: 181 case EXTERNAL_INT_ARRAY_TYPE:
180 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: 182 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE:
181 case EXTERNAL_FLOAT_ARRAY_TYPE: 183 case EXTERNAL_FLOAT_ARRAY_TYPE:
184 case EXTERNAL_FLOAT32x4_ARRAY_TYPE:
185 case EXTERNAL_INT32x4_ARRAY_TYPE:
182 case EXTERNAL_DOUBLE_ARRAY_TYPE: 186 case EXTERNAL_DOUBLE_ARRAY_TYPE:
183 return GetVisitorIdForSize(kVisitDataObject, 187 return GetVisitorIdForSize(kVisitDataObject,
184 kVisitDataObjectGeneric, 188 kVisitDataObjectGeneric,
185 instance_size); 189 instance_size);
186 190
187 #define MAKE_STRUCT_CASE(NAME, Name, name) \ 191 #define MAKE_STRUCT_CASE(NAME, Name, name) \
188 case NAME##_TYPE: 192 case NAME##_TYPE:
189 STRUCT_LIST(MAKE_STRUCT_CASE) 193 STRUCT_LIST(MAKE_STRUCT_CASE)
190 #undef MAKE_STRUCT_CASE 194 #undef MAKE_STRUCT_CASE
191 if (instance_type == ALLOCATION_SITE_TYPE) { 195 if (instance_type == ALLOCATION_SITE_TYPE) {
192 return kVisitAllocationSite; 196 return kVisitAllocationSite;
193 } 197 }
194 198
195 return GetVisitorIdForSize(kVisitStruct, 199 return GetVisitorIdForSize(kVisitStruct,
196 kVisitStructGeneric, 200 kVisitStructGeneric,
197 instance_size); 201 instance_size);
198 202
199 default: 203 default:
200 UNREACHABLE(); 204 UNREACHABLE();
201 return kVisitorIdCount; 205 return kVisitorIdCount;
202 } 206 }
203 } 207 }
204 208
205 } } // namespace v8::internal 209 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/property-details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698