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

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

Issue 1424703005: Remove JSBuiltinsObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 case JS_OBJECT_TYPE: 127 case JS_OBJECT_TYPE:
128 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 128 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
129 case JS_GENERATOR_OBJECT_TYPE: 129 case JS_GENERATOR_OBJECT_TYPE:
130 case JS_MODULE_TYPE: 130 case JS_MODULE_TYPE:
131 case JS_VALUE_TYPE: 131 case JS_VALUE_TYPE:
132 case JS_DATE_TYPE: 132 case JS_DATE_TYPE:
133 case JS_ARRAY_TYPE: 133 case JS_ARRAY_TYPE:
134 case JS_GLOBAL_PROXY_TYPE: 134 case JS_GLOBAL_PROXY_TYPE:
135 case JS_GLOBAL_OBJECT_TYPE: 135 case JS_GLOBAL_OBJECT_TYPE:
136 case JS_BUILTINS_OBJECT_TYPE:
137 case JS_MESSAGE_OBJECT_TYPE: 136 case JS_MESSAGE_OBJECT_TYPE:
138 case JS_SET_ITERATOR_TYPE: 137 case JS_SET_ITERATOR_TYPE:
139 case JS_MAP_ITERATOR_TYPE: 138 case JS_MAP_ITERATOR_TYPE:
140 case JS_ITERATOR_RESULT_TYPE: 139 case JS_ITERATOR_RESULT_TYPE:
141 return GetVisitorIdForSize(kVisitJSObject, kVisitJSObjectGeneric, 140 return GetVisitorIdForSize(kVisitJSObject, kVisitJSObjectGeneric,
142 instance_size, has_unboxed_fields); 141 instance_size, has_unboxed_fields);
143 142
144 case JS_FUNCTION_TYPE: 143 case JS_FUNCTION_TYPE:
145 return kVisitJSFunction; 144 return kVisitJSFunction;
146 145
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 case JS_SET_TYPE: 224 case JS_SET_TYPE:
226 case JS_MAP_TYPE: 225 case JS_MAP_TYPE:
227 case JS_SET_ITERATOR_TYPE: 226 case JS_SET_ITERATOR_TYPE:
228 case JS_MAP_ITERATOR_TYPE: 227 case JS_MAP_ITERATOR_TYPE:
229 case JS_ITERATOR_RESULT_TYPE: 228 case JS_ITERATOR_RESULT_TYPE:
230 case JS_WEAK_MAP_TYPE: 229 case JS_WEAK_MAP_TYPE:
231 case JS_WEAK_SET_TYPE: 230 case JS_WEAK_SET_TYPE:
232 case JS_REGEXP_TYPE: 231 case JS_REGEXP_TYPE:
233 case JS_GLOBAL_PROXY_TYPE: 232 case JS_GLOBAL_PROXY_TYPE:
234 case JS_GLOBAL_OBJECT_TYPE: 233 case JS_GLOBAL_OBJECT_TYPE:
235 case JS_BUILTINS_OBJECT_TYPE:
236 case JS_MESSAGE_OBJECT_TYPE: 234 case JS_MESSAGE_OBJECT_TYPE:
237 JSObject::BodyDescriptor::IterateBody(this, object_size, v); 235 JSObject::BodyDescriptor::IterateBody(this, object_size, v);
238 break; 236 break;
239 case JS_ARRAY_BUFFER_TYPE: 237 case JS_ARRAY_BUFFER_TYPE:
240 JSArrayBuffer::JSArrayBufferIterateBody(this, v); 238 JSArrayBuffer::JSArrayBufferIterateBody(this, v);
241 break; 239 break;
242 case JS_FUNCTION_TYPE: 240 case JS_FUNCTION_TYPE:
243 reinterpret_cast<JSFunction*>(this) 241 reinterpret_cast<JSFunction*>(this)
244 ->JSFunctionIterateBody(object_size, v); 242 ->JSFunctionIterateBody(object_size, v);
245 break; 243 break;
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 }; 490 };
493 491
494 492
495 template Object* VisitWeakList<Context>(Heap* heap, Object* list, 493 template Object* VisitWeakList<Context>(Heap* heap, Object* list,
496 WeakObjectRetainer* retainer); 494 WeakObjectRetainer* retainer);
497 495
498 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, 496 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list,
499 WeakObjectRetainer* retainer); 497 WeakObjectRetainer* retainer);
500 } // namespace internal 498 } // namespace internal
501 } // namespace v8 499 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698