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

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

Issue 640303006: Weak Cells (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Skip cleared weak cells Created 6 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 | Annotate | Revision Log
« 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/heap/objects-visiting.h" 7 #include "src/heap/objects-visiting.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 case CODE_TYPE: 63 case CODE_TYPE:
64 return kVisitCode; 64 return kVisitCode;
65 65
66 case CELL_TYPE: 66 case CELL_TYPE:
67 return kVisitCell; 67 return kVisitCell;
68 68
69 case PROPERTY_CELL_TYPE: 69 case PROPERTY_CELL_TYPE:
70 return kVisitPropertyCell; 70 return kVisitPropertyCell;
71 71
72 case WEAK_CELL_TYPE:
73 return kVisitWeakCell;
74
72 case JS_SET_TYPE: 75 case JS_SET_TYPE:
73 return GetVisitorIdForSize(kVisitStruct, kVisitStructGeneric, 76 return GetVisitorIdForSize(kVisitStruct, kVisitStructGeneric,
74 JSSet::kSize); 77 JSSet::kSize);
75 78
76 case JS_MAP_TYPE: 79 case JS_MAP_TYPE:
77 return GetVisitorIdForSize(kVisitStruct, kVisitStructGeneric, 80 return GetVisitorIdForSize(kVisitStruct, kVisitStructGeneric,
78 JSMap::kSize); 81 JSMap::kSize);
79 82
80 case JS_WEAK_MAP_TYPE: 83 case JS_WEAK_MAP_TYPE:
81 case JS_WEAK_SET_TYPE: 84 case JS_WEAK_SET_TYPE:
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 407
405 408
406 template Object* VisitWeakList<JSArrayBuffer>(Heap* heap, Object* list, 409 template Object* VisitWeakList<JSArrayBuffer>(Heap* heap, Object* list,
407 WeakObjectRetainer* retainer); 410 WeakObjectRetainer* retainer);
408 411
409 412
410 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, 413 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list,
411 WeakObjectRetainer* retainer); 414 WeakObjectRetainer* retainer);
412 } 415 }
413 } // namespace v8::internal 416 } // namespace v8::internal
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