Refinements to array and class object size computation.

* Rename dvmArrayObjectLength to dvmArrayObjectSize.  In the context
  of arrays length may refer to the length of the array data and not
  the size of the array object instance.

* Add a new method dvmClassObjectSize which computes the total size of
  a class object including its static fields.

Change-Id: I693ec8e66dfa5df35c9f35474c80411ea917c899
diff --git a/vm/oo/Class.h b/vm/oo/Class.h
index 59e0da4..34fbff1 100644
--- a/vm/oo/Class.h
+++ b/vm/oo/Class.h
@@ -273,4 +273,9 @@
 int dvmCompareNameDescriptorAndMethod(const char* name,
     const char* descriptor, const Method* method);
 
+/*
+ * Returns the size of the given class object in bytes.
+ */
+size_t dvmClassObjectSize(const ClassObject *clazz);
+
 #endif /*_DALVIK_OO_CLASS*/