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

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

Issue 6042007: Force inlining of BodyVisitorBase::IteratePointers. (Closed)
Patch Set: Created 10 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 } 179 }
180 180
181 private: 181 private:
182 Callback callbacks_[StaticVisitorBase::kVisitorIdCount]; 182 Callback callbacks_[StaticVisitorBase::kVisitorIdCount];
183 }; 183 };
184 184
185 185
186 template<typename StaticVisitor> 186 template<typename StaticVisitor>
187 class BodyVisitorBase : public AllStatic { 187 class BodyVisitorBase : public AllStatic {
188 public: 188 public:
189 static inline void IteratePointers(HeapObject* object, 189 INLINE(static void IteratePointers(HeapObject* object,
190 int start_offset, 190 int start_offset,
191 int end_offset) { 191 int end_offset)) {
192 Object** start_slot = reinterpret_cast<Object**>(object->address() + 192 Object** start_slot = reinterpret_cast<Object**>(object->address() +
193 start_offset); 193 start_offset);
194 Object** end_slot = reinterpret_cast<Object**>(object->address() + 194 Object** end_slot = reinterpret_cast<Object**>(object->address() +
195 end_offset); 195 end_offset);
196 StaticVisitor::VisitPointers(start_slot, end_slot); 196 StaticVisitor::VisitPointers(start_slot, end_slot);
197 } 197 }
198 }; 198 };
199 199
200 200
201 template<typename StaticVisitor, typename BodyDescriptor, typename ReturnType> 201 template<typename StaticVisitor, typename BodyDescriptor, typename ReturnType>
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 392
393 for (; !it.done(); it.next()) { 393 for (; !it.done(); it.next()) {
394 it.rinfo()->template Visit<StaticVisitor>(); 394 it.rinfo()->template Visit<StaticVisitor>();
395 } 395 }
396 } 396 }
397 397
398 398
399 } } // namespace v8::internal 399 } } // namespace v8::internal
400 400
401 #endif // V8_OBJECTS_VISITING_H_ 401 #endif // V8_OBJECTS_VISITING_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698