add machine.cpp changes

This commit is contained in:
Joshua Warner 2014-06-28 23:48:17 -06:00 committed by Joshua Warner
parent b5a1d97bd1
commit b4798550a3
2 changed files with 576 additions and 537 deletions

View File

@ -74,6 +74,13 @@ class Heap : public avian::util::Allocator {
virtual void mark(void* p, unsigned offset, unsigned count) = 0;
virtual void pad(void* p) = 0;
virtual void* follow(void* p) = 0;
template<class T>
T* follow(T* p)
{
return static_cast<T*>(follow((void*)p));
}
virtual void postVisit() = 0;
virtual Status status(void* p) = 0;
virtual CollectionType collectionType() = 0;

File diff suppressed because it is too large Load Diff