| 1998 | delete reinterpret_cast<int*>(func); |
| 1999 | } |
| 2000 | void Compile(asIScriptEngine* engine) |
| 2001 | { |
| 2002 | for (int n = 0; n <= engine->GetLastFunctionId(); n++) |
| 2003 | { |
| 2004 | asIScriptFunction* scriptFunc = engine->GetFunctionById(n); |
| 2005 | if (scriptFunc && scriptFunc->GetFuncType() == asFUNC_SCRIPT) |
| 2006 | { |
| 2007 | scriptFunc->SetJITFunction(reinterpret_cast<asJITFunction>(new int[1])); |
| 2008 | compileCount++; |
| 2009 | } |
| 2010 | } |
| 2011 | } |
| 2012 | int invokeCount; |
| 2013 | int compileCount; |
| 2014 | } jit; |
no test coverage detected