remove unused function; call logicalFlush in pop functions

This commit is contained in:
Joel Dice 2007-12-11 17:08:55 -07:00
parent d70e3aaefb
commit 740e86a084

View File

@ -491,13 +491,6 @@ temporary(Context* c, bool reserve)
} }
} }
void
release(Context* c UNUSED, RegisterOperand* v)
{
assert(c, v->reserved);
v->reserved = false;
}
StackOperand* StackOperand*
push(Context* c, MyOperand* base) push(Context* c, MyOperand* base)
{ {
@ -511,6 +504,7 @@ pop(Context* c, MyOperand* dst)
dst->apply(c, MyOperand::pop); dst->apply(c, MyOperand::pop);
} else { } else {
c->stack->base->apply(c, MyOperand::mov, dst); c->stack->base->apply(c, MyOperand::mov, dst);
c->stack->base->logicalFlush(c, c->stack);
} }
c->stack = c->stack->next; c->stack = c->stack->next;
} }
@ -525,6 +519,7 @@ pop(Context* c)
r = tmp; r = tmp;
} else { } else {
r = c->stack->base; r = c->stack->base;
c->stack->base->logicalFlush(c, c->stack);
} }
c->stack = c->stack->next; c->stack = c->stack->next;
return r; return r;
@ -1392,4 +1387,4 @@ makeCompiler(System* system, void* indirectCaller)
MyCompiler(system, indirectCaller); MyCompiler(system, indirectCaller);
} }
} // namespace vm } // namespace v