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

Side by Side Diff: src/objects-visiting-inl.h

Issue 101413006: Implement in-heap backing store for typed arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Self-review Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 &FixedBodyVisitor<StaticVisitor, 53 &FixedBodyVisitor<StaticVisitor,
54 Symbol::BodyDescriptor, 54 Symbol::BodyDescriptor,
55 int>::Visit); 55 int>::Visit);
56 56
57 table_.Register(kVisitFixedArray, 57 table_.Register(kVisitFixedArray,
58 &FlexibleBodyVisitor<StaticVisitor, 58 &FlexibleBodyVisitor<StaticVisitor,
59 FixedArray::BodyDescriptor, 59 FixedArray::BodyDescriptor,
60 int>::Visit); 60 int>::Visit);
61 61
62 table_.Register(kVisitFixedDoubleArray, &VisitFixedDoubleArray); 62 table_.Register(kVisitFixedDoubleArray, &VisitFixedDoubleArray);
63 table_.Register(kVisitFixedTypedArray, &VisitFixedTypedArray);
63 64
64 table_.Register(kVisitNativeContext, 65 table_.Register(kVisitNativeContext,
65 &FixedBodyVisitor<StaticVisitor, 66 &FixedBodyVisitor<StaticVisitor,
66 Context::ScavengeBodyDescriptor, 67 Context::ScavengeBodyDescriptor,
67 int>::Visit); 68 int>::Visit);
68 69
69 table_.Register(kVisitByteArray, &VisitByteArray); 70 table_.Register(kVisitByteArray, &VisitByteArray);
70 71
71 table_.Register(kVisitSharedFunctionInfo, 72 table_.Register(kVisitSharedFunctionInfo,
72 &FixedBodyVisitor<StaticVisitor, 73 &FixedBodyVisitor<StaticVisitor,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 179
179 table_.Register(kVisitSymbol, 180 table_.Register(kVisitSymbol,
180 &FixedBodyVisitor<StaticVisitor, 181 &FixedBodyVisitor<StaticVisitor,
181 Symbol::BodyDescriptor, 182 Symbol::BodyDescriptor,
182 void>::Visit); 183 void>::Visit);
183 184
184 table_.Register(kVisitFixedArray, &FixedArrayVisitor::Visit); 185 table_.Register(kVisitFixedArray, &FixedArrayVisitor::Visit);
185 186
186 table_.Register(kVisitFixedDoubleArray, &DataObjectVisitor::Visit); 187 table_.Register(kVisitFixedDoubleArray, &DataObjectVisitor::Visit);
187 188
189 table_.Register(kVisitFixedTypedArray, &DataObjectVisitor::Visit);
190
188 table_.Register(kVisitConstantPoolArray, &VisitConstantPoolArray); 191 table_.Register(kVisitConstantPoolArray, &VisitConstantPoolArray);
189 192
190 table_.Register(kVisitNativeContext, &VisitNativeContext); 193 table_.Register(kVisitNativeContext, &VisitNativeContext);
191 194
192 table_.Register(kVisitAllocationSite, &VisitAllocationSite); 195 table_.Register(kVisitAllocationSite, &VisitAllocationSite);
193 196
194 table_.Register(kVisitByteArray, &DataObjectVisitor::Visit); 197 table_.Register(kVisitByteArray, &DataObjectVisitor::Visit);
195 198
196 table_.Register(kVisitFreeSpace, &DataObjectVisitor::Visit); 199 table_.Register(kVisitFreeSpace, &DataObjectVisitor::Visit);
197 200
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 RelocIterator it(this, mode_mask); 924 RelocIterator it(this, mode_mask);
922 for (; !it.done(); it.next()) { 925 for (; !it.done(); it.next()) {
923 it.rinfo()->template Visit<StaticVisitor>(heap); 926 it.rinfo()->template Visit<StaticVisitor>(heap);
924 } 927 }
925 } 928 }
926 929
927 930
928 } } // namespace v8::internal 931 } } // namespace v8::internal
929 932
930 #endif // V8_OBJECTS_VISITING_INL_H_ 933 #endif // V8_OBJECTS_VISITING_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698