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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user