[Compiler] use Art indentation standard
First of several CLs to bring code closer to alignment with Art and LLVM
standards. Move to 2-space indenting. Sticking with 80-col line
length (which LLVM apparently also wants). LLVM also prefers camel
case names, so keeping Dalvik convention there as well (for now).
Change-Id: I351ab234e640678d97747377cccdd6df0a770f4a
diff --git a/src/compiler/CompilerUtility.h b/src/compiler/CompilerUtility.h
index 4a15f26..d431678 100644
--- a/src/compiler/CompilerUtility.h
+++ b/src/compiler/CompilerUtility.h
@@ -31,10 +31,10 @@
//#define WITH_MEMSTATS
struct ArenaMemBlock {
- size_t blockSize;
- size_t bytesAllocated;
- ArenaMemBlock *next;
- char ptr[0];
+ size_t blockSize;
+ size_t bytesAllocated;
+ ArenaMemBlock *next;
+ char ptr[0];
};
void* oatNew(CompilationUnit* cUnit, size_t size, bool zero,
@@ -55,9 +55,9 @@
};
struct GrowableListIterator {
- GrowableList* list;
- size_t idx;
- size_t size;
+ GrowableList* list;
+ size_t idx;
+ size_t size;
};
/*
@@ -67,19 +67,19 @@
* All operations on a BitVector are unsynchronized.
*/
struct ArenaBitVector {
- bool expandable; /* expand bitmap if we run out? */
- u4 storageSize; /* current size, in 32-bit words */
- u4* storage;
+ bool expandable; /* expand bitmap if we run out? */
+ u4 storageSize; /* current size, in 32-bit words */
+ u4* storage;
#ifdef WITH_MEMSTATS
- oatBitMapKind kind; /* for memory use tuning */
+ oatBitMapKind kind; /* for memory use tuning */
#endif
};
/* Handy iterator to walk through the bit positions set to 1 */
struct ArenaBitVectorIterator {
- ArenaBitVector* pBits;
- u4 idx;
- u4 bitSize;
+ ArenaBitVector* pBits;
+ u4 idx;
+ u4 bitSize;
};
#define GET_ELEM_N(LIST, TYPE, N) (((TYPE*) LIST->elemList)[N])