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

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

Issue 1422773007: Make JSFunction::BodyDescriptor the only single place that knows how to iterate JSFunction's body. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments 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
« no previous file with comments | « src/heap/objects-visiting.h ('k') | src/heap/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 // 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 case JS_REGEXP_TYPE: 231 case JS_REGEXP_TYPE:
232 case JS_GLOBAL_PROXY_TYPE: 232 case JS_GLOBAL_PROXY_TYPE:
233 case JS_GLOBAL_OBJECT_TYPE: 233 case JS_GLOBAL_OBJECT_TYPE:
234 case JS_MESSAGE_OBJECT_TYPE: 234 case JS_MESSAGE_OBJECT_TYPE:
235 JSObject::BodyDescriptor::IterateBody(this, object_size, v); 235 JSObject::BodyDescriptor::IterateBody(this, object_size, v);
236 break; 236 break;
237 case JS_ARRAY_BUFFER_TYPE: 237 case JS_ARRAY_BUFFER_TYPE:
238 JSArrayBuffer::JSArrayBufferIterateBody(this, v); 238 JSArrayBuffer::JSArrayBufferIterateBody(this, v);
239 break; 239 break;
240 case JS_FUNCTION_TYPE: 240 case JS_FUNCTION_TYPE:
241 reinterpret_cast<JSFunction*>(this) 241 JSFunction::BodyDescriptor::IterateBody(this, object_size, v);
242 ->JSFunctionIterateBody(object_size, v);
243 break; 242 break;
244 case ODDBALL_TYPE: 243 case ODDBALL_TYPE:
245 Oddball::BodyDescriptor::IterateBody(this, v); 244 Oddball::BodyDescriptor::IterateBody(this, v);
246 break; 245 break;
247 case JS_PROXY_TYPE: 246 case JS_PROXY_TYPE:
248 JSProxy::BodyDescriptor::IterateBody(this, v); 247 JSProxy::BodyDescriptor::IterateBody(this, v);
249 break; 248 break;
250 case JS_FUNCTION_PROXY_TYPE: 249 case JS_FUNCTION_PROXY_TYPE:
251 JSFunctionProxy::BodyDescriptor::IterateBody(this, v); 250 JSFunctionProxy::BodyDescriptor::IterateBody(this, v);
252 break; 251 break;
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 }; 489 };
491 490
492 491
493 template Object* VisitWeakList<Context>(Heap* heap, Object* list, 492 template Object* VisitWeakList<Context>(Heap* heap, Object* list,
494 WeakObjectRetainer* retainer); 493 WeakObjectRetainer* retainer);
495 494
496 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, 495 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list,
497 WeakObjectRetainer* retainer); 496 WeakObjectRetainer* retainer);
498 } // namespace internal 497 } // namespace internal
499 } // namespace v8 498 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/objects-visiting.h ('k') | src/heap/objects-visiting-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698