diff -r 7fab9b9222cb -r 9cb1a1fefc2c sourcepawn/jit/BaseRuntime.cpp --- a/sourcepawn/jit/BaseRuntime.cpp Sat Jan 31 22:51:48 2009 -0500 +++ b/sourcepawn/jit/BaseRuntime.cpp Sun Feb 01 02:03:03 2009 -0500 @@ -535,3 +535,21 @@ return m_NumFuncs; } + +int BaseRuntime::CreateBlank(uint32_t heastk) +{ + memset(m_pPlugin, 0, sizeof(sp_plugin_t)); + + /* Align to cell_t bytes */ + heastk += sizeof(cell_t); + heastk -= heastk % sizeof(cell_t); + + m_pPlugin->mem_size = heastk; + m_pPlugin->memory = new uint8_t[heastk]; + + m_pPlugin->profiler = g_engine2.GetProfiler(); + m_pCtx = new BaseContext(this); + m_pCo = g_Jit.StartCompilation(this); + + return SP_ERROR_NONE; +}