Mark some functions "static".
Change-Id: Ia80bccab1f72690729e43f99783d34fe366108b2
*
* Returns the string's length, in characters.
*/
-int convertUtf8ToUtf16BEUA(u1* utf16Str, const char* utf8Str)
+static int convertUtf8ToUtf16BEUA(u1* utf16Str, const char* utf8Str)
{
u1* origUtf16Str = utf16Str;
/*
* Converts the given relative waiting time into an absolute time.
*/
-void absoluteTime(s8 msec, s4 nsec, struct timespec *ts)
+static void absoluteTime(s8 msec, s4 nsec, struct timespec *ts)
{
s8 endSec;
dvmCompilerPatchInlineCache();
}
-bool compilerThreadStartup(void)
+static bool compilerThreadStartup(void)
{
JitEntry *pJitTable = NULL;
unsigned char *pJitProfTable = NULL;
* Crawl the stack of the thread that requesed compilation to see if any of the
* ancestors are on the blacklist.
*/
-bool filterMethodByCallGraph(Thread *thread, const char *curMethodName)
+static bool filterMethodByCallGraph(Thread *thread, const char *curMethodName)
{
/* Crawl the Dalvik stack frames and compare the method name*/
StackSaveArea *ssaPtr = ((StackSaveArea *) thread->curFrame) - 1;
int last;
} LiveRange;
-int computeLiveRange(LiveRange *list, BasicBlock *bb, int seqNum)
+static int computeLiveRange(LiveRange *list, BasicBlock *bb, int seqNum)
{
MIR *mir;
int i;
}
/* Create the PC reconstruction slot if not already done */
-extern ArmLIR *genCheckCommon(CompilationUnit *cUnit, int dOffset,
+static ArmLIR *genCheckCommon(CompilationUnit *cUnit, int dOffset,
ArmLIR *branch,
ArmLIR *pcrLabel)
{
info->inUse = true;
}
-void copyRegInfo(CompilationUnit *cUnit, int newReg, int oldReg)
+static void copyRegInfo(CompilationUnit *cUnit, int newReg, int oldReg)
{
RegisterInfo *newInfo = getRegInfo(cUnit, newReg);
RegisterInfo *oldInfo = getRegInfo(cUnit, oldReg);
}
-void setTraceConstruction(JitEntry *slot, bool value)
+static void setTraceConstruction(JitEntry *slot, bool value)
{
JitEntryInfoUnion oldValue;
&slot->u.infoWord) != 0);
}
-void resetTracehead(InterpState* interpState, JitEntry *slot)
+static void resetTracehead(InterpState* interpState, JitEntry *slot)
{
slot->codeAddress = dvmCompilerGetInterpretTemplate();
setTraceConstruction(slot, false);