fixed a few really dumb crash bugs in refac-jit

--HG--
branch : refac-jit
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/refac-jit%402383
This commit is contained in:
David Anderson
2008-07-08 07:59:33 +00:00
parent af54ae6af7
commit aa096f2385
4 changed files with 40 additions and 26 deletions
+5 -1
View File
@@ -2495,6 +2495,7 @@ bool JITX86::Compile(ICompilation *co, BaseRuntime *prt, int *err)
}
data->SetRuntime(prt);
plugin = data->plugin;
}
/* The first phase is to browse */
@@ -2914,10 +2915,13 @@ ICompilation *JITX86::StartCompilation()
void CompData::SetRuntime(BaseRuntime *runtime)
{
plugin = runtime->m_pPlugin;
uint32_t max_natives = plugin->info.natives_num;
const char *strbase = plugin->info.stringbase;
plugin = runtime->m_pPlugin;
this->runtime = runtime;
inline_level = JIT_INLINE_ERRORCHECKS|JIT_INLINE_NATIVES;
error_set = SP_ERROR_NONE;