mirror of
https://github.com/corda/corda.git
synced 2025-01-23 04:48:09 +00:00
remove unused function; call logicalFlush in pop functions
This commit is contained in:
parent
d70e3aaefb
commit
740e86a084
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user