Add an Array::Alloc convenience for the compiler.
Change-Id: Ie65321d7439ac0ff0b4a39cb507710df088baa6d
diff --git a/src/object.cc b/src/object.cc
index 8765713..bfa200a 100644
--- a/src/object.cc
+++ b/src/object.cc
@@ -14,6 +14,10 @@
namespace art {
+Array* Array::Alloc(Class* array_class, size_t component_count) {
+ return Alloc(array_class, component_count, array_class->GetComponentSize());
+}
+
bool Class::Implements(const Class* klass) const {
DCHECK(klass != NULL);
DCHECK(klass->IsInterface());