Allow nested instruction counting.

It is traditional to store counts in variables with more than one
bit of storage.

Also, fixed some of the decorations.

Bug 2863796.

Change-Id: I167d6803e955159e35e75d1e2924754145ea1361
diff --git a/vm/Globals.h b/vm/Globals.h
index 5362916..f28aab5 100644
--- a/vm/Globals.h
+++ b/vm/Globals.h
@@ -637,7 +637,7 @@
      * Dalvik instruction counts (256 entries).
      */
     int*        executedInstrCounts;
-    bool        instructionCountEnableCount;
+    int         instructionCountEnableCount;
 
     /*
      * Signal catcher thread (for SIGQUIT).
diff --git a/vm/Profile.c b/vm/Profile.c
index 957ef0d..6463dab 100644
--- a/vm/Profile.c
+++ b/vm/Profile.c
@@ -897,7 +897,7 @@
 /*
  * Start instruction counting.
  */
-void dvmStartInstructionCounting()
+void dvmStartInstructionCounting(void)
 {
 #if defined(WITH_INLINE_PROFILING)
     LOGW("Instruction counting not supported with inline profiling");
@@ -908,9 +908,9 @@
 }
 
 /*
- * Start instruction counting.
+ * Stop instruction counting.
  */
-void dvmStopInstructionCounting()
+void dvmStopInstructionCounting(void)
 {
     if (gDvm.instructionCountEnableCount == 0) {
         LOGE("ERROR: instruction counting not enabled\n");