forked from mirrors/0ad
Delete unused SpiderMonkey GarbageCollection ScriptFunctions ForceGC in the AI and GUI context (e9e05f4efc) and MaybeGC in the random mapgen context (942a45372c).
Optimizing the memory footprint requires likely different functions following the new SM versions and a lot of testing, so having these doesn't lower the effort to achieve optimization while confusing the reader. Differential Revision: https://code.wildfiregames.com/D1073 Reviewed By: Yves This was SVN commit r20572.
This commit is contained in:
@@ -1103,17 +1103,6 @@ void* ScriptInterface::GetPrivate(JS::HandleObject obj)
|
||||
return JS_GetPrivate(obj);
|
||||
}
|
||||
|
||||
void ScriptInterface::MaybeGC()
|
||||
{
|
||||
JS_MaybeGC(m->m_cx);
|
||||
}
|
||||
|
||||
void ScriptInterface::ForceGC()
|
||||
{
|
||||
PROFILE2("JS_GC");
|
||||
JS_GC(this->GetJSRuntime());
|
||||
}
|
||||
|
||||
JS::Value ScriptInterface::CloneValueFromOtherContext(const ScriptInterface& otherContext, JS::HandleValue val) const
|
||||
{
|
||||
PROFILE("CloneValueFromOtherContext");
|
||||
|
||||
Reference in New Issue
Block a user