Removing copies of Rhino code
git-svn-id: svn://10.0.0.236/trunk@29406 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
|
||||
import java.util.Stack;
|
||||
|
||||
class JSStack {
|
||||
|
||||
Stack stack = new Stack();
|
||||
int frameTop;
|
||||
|
||||
void newFrame(StackValue returnAddress)
|
||||
{
|
||||
stack.push(returnAddress);
|
||||
stack.push(new StackValue(frameTop));
|
||||
frameTop = stack.size();
|
||||
}
|
||||
|
||||
StackValue popFrame()
|
||||
{
|
||||
stack.setSize(frameTop);
|
||||
StackValue oldFrame = (StackValue)(stack.pop());
|
||||
frameTop = oldFrame.i;
|
||||
return (StackValue)stack.pop();
|
||||
}
|
||||
|
||||
void push(StackValue v)
|
||||
{
|
||||
stack.push(v);
|
||||
}
|
||||
|
||||
boolean isEmpty()
|
||||
{
|
||||
return stack.isEmpty();
|
||||
}
|
||||
|
||||
StackValue pop()
|
||||
{
|
||||
return (StackValue)stack.pop();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user