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

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

Issue 1468933004: Allow in-object properties in JSCollections, JSWeakCollections and JSRegExp. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 case JS_WEAK_MAP_TYPE: 82 case JS_WEAK_MAP_TYPE:
83 case JS_WEAK_SET_TYPE: 83 case JS_WEAK_SET_TYPE:
84 return kVisitJSWeakCollection; 84 return kVisitJSWeakCollection;
85 85
86 case JS_REGEXP_TYPE: 86 case JS_REGEXP_TYPE:
87 return kVisitJSRegExp; 87 return kVisitJSRegExp;
88 88
89 case SHARED_FUNCTION_INFO_TYPE: 89 case SHARED_FUNCTION_INFO_TYPE:
90 return kVisitSharedFunctionInfo; 90 return kVisitSharedFunctionInfo;
91 91
92 case JS_SET_TYPE:
93 case JS_MAP_TYPE:
94 case JS_PROXY_TYPE: 92 case JS_PROXY_TYPE:
95 case JS_FUNCTION_PROXY_TYPE: 93 case JS_FUNCTION_PROXY_TYPE:
96 return GetVisitorIdForSize(kVisitStruct, kVisitStructGeneric, 94 return GetVisitorIdForSize(kVisitStruct, kVisitStructGeneric,
97 instance_size, has_unboxed_fields); 95 instance_size, has_unboxed_fields);
98 96
99 case SYMBOL_TYPE: 97 case SYMBOL_TYPE:
100 return kVisitSymbol; 98 return kVisitSymbol;
101 99
102 case JS_ARRAY_BUFFER_TYPE: 100 case JS_ARRAY_BUFFER_TYPE:
103 return kVisitJSArrayBuffer; 101 return kVisitJSArrayBuffer;
104 102
105 case JS_TYPED_ARRAY_TYPE: 103 case JS_TYPED_ARRAY_TYPE:
106 return kVisitJSTypedArray; 104 return kVisitJSTypedArray;
107 105
108 case JS_DATA_VIEW_TYPE: 106 case JS_DATA_VIEW_TYPE:
109 return kVisitJSDataView; 107 return kVisitJSDataView;
110 108
111 case JS_OBJECT_TYPE: 109 case JS_OBJECT_TYPE:
112 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 110 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
113 case JS_GENERATOR_OBJECT_TYPE: 111 case JS_GENERATOR_OBJECT_TYPE:
114 case JS_MODULE_TYPE: 112 case JS_MODULE_TYPE:
115 case JS_VALUE_TYPE: 113 case JS_VALUE_TYPE:
116 case JS_DATE_TYPE: 114 case JS_DATE_TYPE:
117 case JS_ARRAY_TYPE: 115 case JS_ARRAY_TYPE:
118 case JS_GLOBAL_PROXY_TYPE: 116 case JS_GLOBAL_PROXY_TYPE:
119 case JS_GLOBAL_OBJECT_TYPE: 117 case JS_GLOBAL_OBJECT_TYPE:
120 case JS_MESSAGE_OBJECT_TYPE: 118 case JS_MESSAGE_OBJECT_TYPE:
119 case JS_SET_TYPE:
120 case JS_MAP_TYPE:
121 case JS_SET_ITERATOR_TYPE: 121 case JS_SET_ITERATOR_TYPE:
122 case JS_MAP_ITERATOR_TYPE: 122 case JS_MAP_ITERATOR_TYPE:
123 case JS_ITERATOR_RESULT_TYPE: 123 case JS_ITERATOR_RESULT_TYPE:
124 case JS_PROMISE_TYPE: 124 case JS_PROMISE_TYPE:
125 return GetVisitorIdForSize(kVisitJSObject, kVisitJSObjectGeneric, 125 return GetVisitorIdForSize(kVisitJSObject, kVisitJSObjectGeneric,
126 instance_size, has_unboxed_fields); 126 instance_size, has_unboxed_fields);
127 127
128 case JS_FUNCTION_TYPE: 128 case JS_FUNCTION_TYPE:
129 return kVisitJSFunction; 129 return kVisitJSFunction;
130 130
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 }; 354 };
355 355
356 356
357 template Object* VisitWeakList<Context>(Heap* heap, Object* list, 357 template Object* VisitWeakList<Context>(Heap* heap, Object* list,
358 WeakObjectRetainer* retainer); 358 WeakObjectRetainer* retainer);
359 359
360 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, 360 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list,
361 WeakObjectRetainer* retainer); 361 WeakObjectRetainer* retainer);
362 } // namespace internal 362 } // namespace internal
363 } // namespace v8 363 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/heap/objects-visiting-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698