[JAEGER] House cleaning... re-org.

This commit is contained in:
David Anderson
2010-05-26 00:21:47 -07:00
parent fb07a1926e
commit f23d3fd4b0
13 changed files with 76 additions and 157 deletions

View File

@@ -61,9 +61,9 @@ NotCheckedSSE2;
#endif
mjit::Compiler::Compiler(JSContext *cx, JSScript *script, JSFunction *fun, JSObject *scopeChain)
: CompilerBase(cx), cx(cx), script(script), scopeChain(scopeChain),
globalObj(scopeChain->getGlobal()), fun(fun), analysis(cx, script), jumpMap(NULL),
frame(cx, script, masm), cg(masm, frame), branchPatches(ContextAllocPolicy(cx))
: cx(cx), script(script), scopeChain(scopeChain), globalObj(scopeChain->getGlobal()), fun(fun),
analysis(cx, script), jumpMap(NULL), frame(cx, script, masm), cg(masm, frame),
branchPatches(ContextAllocPolicy(cx))
{
}
@@ -304,6 +304,13 @@ mjit::Compiler::labelOf(jsbytecode *pc)
return jumpMap[offs];
}
JSC::ExecutablePool *
mjit::Compiler::getExecPool(size_t size)
{
ThreadData *jaegerData = &JS_METHODJIT_DATA(cx);
return jaegerData->execPool->poolForSize(size);
}
uint32
mjit::Compiler::fullAtomIndex(jsbytecode *pc)
{