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

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: GC fixes Created 6 years, 11 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/objects-visiting.cc ('k') | src/runtime.cc » ('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 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);
64 table_.Register(kVisitFixedFloat64Array, &VisitFixedTypedArray);
63 65
64 table_.Register(kVisitNativeContext, 66 table_.Register(kVisitNativeContext,
65 &FixedBodyVisitor<StaticVisitor, 67 &FixedBodyVisitor<StaticVisitor,
66 Context::ScavengeBodyDescriptor, 68 Context::ScavengeBodyDescriptor,
67 int>::Visit); 69 int>::Visit);
68 70
69 table_.Register(kVisitByteArray, &VisitByteArray); 71 table_.Register(kVisitByteArray, &VisitByteArray);
70 72
71 table_.Register(kVisitSharedFunctionInfo, 73 table_.Register(kVisitSharedFunctionInfo,
72 &FixedBodyVisitor<StaticVisitor, 74 &FixedBodyVisitor<StaticVisitor,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 180
179 table_.Register(kVisitSymbol, 181 table_.Register(kVisitSymbol,
180 &FixedBodyVisitor<StaticVisitor, 182 &FixedBodyVisitor<StaticVisitor,
181 Symbol::BodyDescriptor, 183 Symbol::BodyDescriptor,
182 void>::Visit); 184 void>::Visit);
183 185
184 table_.Register(kVisitFixedArray, &FixedArrayVisitor::Visit); 186 table_.Register(kVisitFixedArray, &FixedArrayVisitor::Visit);
185 187
186 table_.Register(kVisitFixedDoubleArray, &DataObjectVisitor::Visit); 188 table_.Register(kVisitFixedDoubleArray, &DataObjectVisitor::Visit);
187 189
190 table_.Register(kVisitFixedTypedArray, &DataObjectVisitor::Visit);
191
192 table_.Register(kVisitFixedFloat64Array, &DataObjectVisitor::Visit);
193
188 table_.Register(kVisitConstantPoolArray, &VisitConstantPoolArray); 194 table_.Register(kVisitConstantPoolArray, &VisitConstantPoolArray);
189 195
190 table_.Register(kVisitNativeContext, &VisitNativeContext); 196 table_.Register(kVisitNativeContext, &VisitNativeContext);
191 197
192 table_.Register(kVisitAllocationSite, &VisitAllocationSite); 198 table_.Register(kVisitAllocationSite, &VisitAllocationSite);
193 199
194 table_.Register(kVisitByteArray, &DataObjectVisitor::Visit); 200 table_.Register(kVisitByteArray, &DataObjectVisitor::Visit);
195 201
196 table_.Register(kVisitFreeSpace, &DataObjectVisitor::Visit); 202 table_.Register(kVisitFreeSpace, &DataObjectVisitor::Visit);
197 203
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 RelocIterator it(this, mode_mask); 940 RelocIterator it(this, mode_mask);
935 for (; !it.done(); it.next()) { 941 for (; !it.done(); it.next()) {
936 it.rinfo()->template Visit<StaticVisitor>(heap); 942 it.rinfo()->template Visit<StaticVisitor>(heap);
937 } 943 }
938 } 944 }
939 945
940 946
941 } } // namespace v8::internal 947 } } // namespace v8::internal
942 948
943 #endif // V8_OBJECTS_VISITING_INL_H_ 949 #endif // V8_OBJECTS_VISITING_INL_H_
OLDNEW
« no previous file with comments | « src/objects-visiting.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698