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

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

Issue 2405253006: [builtins] implement Array.prototype[@@iterator] in TFJ builtins (Closed)
Patch Set: latest round Created 4 years, 2 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
« no previous file with comments | « src/heap-symbols.h ('k') | src/js/array.js » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/heap/objects-visiting.h" 5 #include "src/heap/objects-visiting.h"
6 6
7 #include "src/heap/mark-compact-inl.h" 7 #include "src/heap/mark-compact-inl.h"
8 #include "src/heap/objects-visiting-inl.h" 8 #include "src/heap/objects-visiting-inl.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 case JS_GLOBAL_PROXY_TYPE: 115 case JS_GLOBAL_PROXY_TYPE:
116 case JS_GLOBAL_OBJECT_TYPE: 116 case JS_GLOBAL_OBJECT_TYPE:
117 case JS_MESSAGE_OBJECT_TYPE: 117 case JS_MESSAGE_OBJECT_TYPE:
118 case JS_TYPED_ARRAY_TYPE: 118 case JS_TYPED_ARRAY_TYPE:
119 case JS_DATA_VIEW_TYPE: 119 case JS_DATA_VIEW_TYPE:
120 case JS_SET_TYPE: 120 case JS_SET_TYPE:
121 case JS_MAP_TYPE: 121 case JS_MAP_TYPE:
122 case JS_SET_ITERATOR_TYPE: 122 case JS_SET_ITERATOR_TYPE:
123 case JS_MAP_ITERATOR_TYPE: 123 case JS_MAP_ITERATOR_TYPE:
124 case JS_STRING_ITERATOR_TYPE: 124 case JS_STRING_ITERATOR_TYPE:
125
126 case JS_TYPED_ARRAY_KEY_ITERATOR_TYPE:
127 case JS_FAST_ARRAY_KEY_ITERATOR_TYPE:
128 case JS_GENERIC_ARRAY_KEY_ITERATOR_TYPE:
129 case JS_UINT8_ARRAY_KEY_VALUE_ITERATOR_TYPE:
130 case JS_INT8_ARRAY_KEY_VALUE_ITERATOR_TYPE:
131 case JS_UINT16_ARRAY_KEY_VALUE_ITERATOR_TYPE:
132 case JS_INT16_ARRAY_KEY_VALUE_ITERATOR_TYPE:
133 case JS_UINT32_ARRAY_KEY_VALUE_ITERATOR_TYPE:
134 case JS_INT32_ARRAY_KEY_VALUE_ITERATOR_TYPE:
135 case JS_FLOAT32_ARRAY_KEY_VALUE_ITERATOR_TYPE:
136 case JS_FLOAT64_ARRAY_KEY_VALUE_ITERATOR_TYPE:
137 case JS_UINT8_CLAMPED_ARRAY_KEY_VALUE_ITERATOR_TYPE:
138 case JS_FAST_SMI_ARRAY_KEY_VALUE_ITERATOR_TYPE:
139 case JS_FAST_HOLEY_SMI_ARRAY_KEY_VALUE_ITERATOR_TYPE:
140 case JS_FAST_ARRAY_KEY_VALUE_ITERATOR_TYPE:
141 case JS_FAST_HOLEY_ARRAY_KEY_VALUE_ITERATOR_TYPE:
142 case JS_FAST_DOUBLE_ARRAY_KEY_VALUE_ITERATOR_TYPE:
143 case JS_FAST_HOLEY_DOUBLE_ARRAY_KEY_VALUE_ITERATOR_TYPE:
144 case JS_GENERIC_ARRAY_KEY_VALUE_ITERATOR_TYPE:
145 case JS_UINT8_ARRAY_VALUE_ITERATOR_TYPE:
146 case JS_INT8_ARRAY_VALUE_ITERATOR_TYPE:
147 case JS_UINT16_ARRAY_VALUE_ITERATOR_TYPE:
148 case JS_INT16_ARRAY_VALUE_ITERATOR_TYPE:
149 case JS_UINT32_ARRAY_VALUE_ITERATOR_TYPE:
150 case JS_INT32_ARRAY_VALUE_ITERATOR_TYPE:
151 case JS_FLOAT32_ARRAY_VALUE_ITERATOR_TYPE:
152 case JS_FLOAT64_ARRAY_VALUE_ITERATOR_TYPE:
153 case JS_UINT8_CLAMPED_ARRAY_VALUE_ITERATOR_TYPE:
154 case JS_FAST_SMI_ARRAY_VALUE_ITERATOR_TYPE:
155 case JS_FAST_HOLEY_SMI_ARRAY_VALUE_ITERATOR_TYPE:
156 case JS_FAST_ARRAY_VALUE_ITERATOR_TYPE:
157 case JS_FAST_HOLEY_ARRAY_VALUE_ITERATOR_TYPE:
158 case JS_FAST_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE:
159 case JS_FAST_HOLEY_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE:
160 case JS_GENERIC_ARRAY_VALUE_ITERATOR_TYPE:
161
125 case JS_PROMISE_TYPE: 162 case JS_PROMISE_TYPE:
126 case JS_BOUND_FUNCTION_TYPE: 163 case JS_BOUND_FUNCTION_TYPE:
127 return GetVisitorIdForSize(kVisitJSObject, kVisitJSObjectGeneric, 164 return GetVisitorIdForSize(kVisitJSObject, kVisitJSObjectGeneric,
128 instance_size, has_unboxed_fields); 165 instance_size, has_unboxed_fields);
129 case JS_API_OBJECT_TYPE: 166 case JS_API_OBJECT_TYPE:
130 case JS_SPECIAL_API_OBJECT_TYPE: 167 case JS_SPECIAL_API_OBJECT_TYPE:
131 return GetVisitorIdForSize(kVisitJSApiObject, kVisitJSApiObjectGeneric, 168 return GetVisitorIdForSize(kVisitJSApiObject, kVisitJSApiObjectGeneric,
132 instance_size, has_unboxed_fields); 169 instance_size, has_unboxed_fields);
133 170
134 case JS_FUNCTION_TYPE: 171 case JS_FUNCTION_TYPE:
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 }; 397 };
361 398
362 399
363 template Object* VisitWeakList<Context>(Heap* heap, Object* list, 400 template Object* VisitWeakList<Context>(Heap* heap, Object* list,
364 WeakObjectRetainer* retainer); 401 WeakObjectRetainer* retainer);
365 402
366 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, 403 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list,
367 WeakObjectRetainer* retainer); 404 WeakObjectRetainer* retainer);
368 } // namespace internal 405 } // namespace internal
369 } // namespace v8 406 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap-symbols.h ('k') | src/js/array.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698