summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsScriptC.cpp
diff options
context:
space:
mode:
authorShih-wei Liao <sliao@google.com>2010-10-23 02:15:57 -0700
committerShih-wei Liao <sliao@google.com>2010-10-23 22:12:29 -0700
commit0175e01f54670d0133d131222826f7033e2e2c03 (patch)
tree409ae836e4dcfbf82c55529f09f742f598cee28a /libs/rs/rsScriptC.cpp
parent4de82c7885bd41f9fa5ca3938d617cae5edacbdf (diff)
downloadframeworks_base-0175e01f54670d0133d131222826f7033e2e2c03.zip
frameworks_base-0175e01f54670d0133d131222826f7033e2e2c03.tar.gz
frameworks_base-0175e01f54670d0133d131222826f7033e2e2c03.tar.bz2
Enable optimized bitcode that is also jitted faster.
Change-Id: I08832cfaf4e8465c16b445eeb1b82f72d874d0ef
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
-rw-r--r--libs/rs/rsScriptC.cpp6
1 files changed, 4 insertions, 2 deletions
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)
}
}
-
-