From 0175e01f54670d0133d131222826f7033e2e2c03 Mon Sep 17 00:00:00 2001 From: Shih-wei Liao Date: Sat, 23 Oct 2010 02:15:57 -0700 Subject: Enable optimized bitcode that is also jitted faster. Change-Id: I08832cfaf4e8465c16b445eeb1b82f72d874d0ef --- libs/rs/rsScriptC.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libs/rs/rsScriptC.cpp') diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp index 165fa71..9dce158 100644 --- a/libs/rs/rsScriptC.cpp +++ b/libs/rs/rsScriptC.cpp @@ -390,6 +390,9 @@ static BCCvoid* symbolLookup(BCCvoid* pContext, const BCCchar* name) return NULL; } +extern const char rs_runtime_lib_bc[]; +extern unsigned rs_runtime_lib_bc_size; + void ScriptCState::runCompiler(Context *rsc, ScriptC *s) { LOGV("%p ScriptCState::runCompiler ", rsc); @@ -398,6 +401,7 @@ void ScriptCState::runCompiler(Context *rsc, ScriptC *s) s->mBccScript = bccCreateScript(); s->mEnviroment.mIsThreadable = true; bccScriptBitcode(s->mBccScript, s->mEnviroment.mScriptText, s->mEnviroment.mScriptTextLength); + //bccLinkBitcode(s->mBccScript, rs_runtime_lib_bc, rs_runtime_lib_bc_size); bccRegisterSymbolCallback(s->mBccScript, symbolLookup, s); bccCompileScript(s->mBccScript); bccGetScriptLabel(s->mBccScript, "root", (BCCvoid**) &s->mProgram.mRoot); @@ -533,5 +537,3 @@ RsScript rsi_ScriptCCreate(Context * rsc) } } - - -- cgit v1.1