Add ObjectArray::CopyOf
As part of doing this, moved Heap::Alloc* helpers to the corresponding
classes in object.h to break heap.h<->object.h cycle due to use of
Heap from ObjectArray::CopyOf (which is templatized and needs to be
defined in .h file).
Change-Id: I1870af6e9dc6552820034ead5e20d13ae4da67da
diff --git a/src/object.cc b/src/object.cc
index 289f526..fbcfa8b 100644
--- a/src/object.cc
+++ b/src/object.cc
@@ -6,6 +6,7 @@
#include <algorithm>
#include "globals.h"
+#include "heap.h"
#include "logging.h"
#include "dex_cache.h"
#include "dex_file.h"