Fixed cases of the tests not prepping the tracer properly for verbosity

This commit is contained in:
dvander@traceknight.local 2008-06-20 13:55:56 -07:00
parent f086d675e7
commit ee94b07a44

View File

@ -338,8 +338,8 @@ do_test(Test* test)
{
NIns *code;
LIns *instr;
SideExit exit;
Fragment *frag;
SideExit *pExit;
Fragmento *frago;
JIT_ENTRANCE jit;
LirBuffer *lirbuf;
@ -358,21 +358,19 @@ do_test(Test* test)
state.f = NULL;
/* Begin a dummy trace */
frago->labels = new (gc) LabelMap(core, NULL);
frag = frago->getLoop(state);
lirbuf = new (gc) LirBuffer(frago, NULL);
lirbuf->names = new (gc) LirNameMap(gc, NULL, frago->labels);
frag->lirbuf = lirbuf;
lirout = new LirBufWriter(lirbuf);
frag->param0 = lirout->ins2(LIR_param, Assembler::argRegs[0], 0);
frag->param1 = lirout->ins2(LIR_param, Assembler::argRegs[1], 0);
//:TODO:
//frag->param0 = lirout->insImm8(LIR_in, Assembler::argRegs[0]);
lirout->ins0(LIR_trace);
frag->param0 = lirout->insImm8(LIR_param, Assembler::argRegs[0], 0);
frag->param1 = lirout->insImm8(LIR_param, Assembler::argRegs[1], 0);
test->Compile(lirout);
instr = lirout->skip(sizeof(SideExit));
pExit = (SideExit *)instr->payload();
memset(pExit, 0, sizeof(pExit));
pExit->target = NULL;
pExit->from = frag;
lirout->ins2(LIR_x, NULL, instr);
memset(&exit, 0, sizeof(exit));
exit.from = frag;
instr = lirout->insGuard(LIR_x, NULL, &exit);
compile(frago->assm(), frag);
code = frag->code();
jit = (JIT_ENTRANCE)code;