Removed unused functions and imports

master
Apoorva Ranade 4 years ago
parent 10fe9dbfb6
commit be2822416c

@ -1,9 +1,7 @@
package chocopy.pa3;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Stack;
import chocopy.common.analysis.*;
@ -220,20 +218,10 @@ public class CodeGenImpl extends CodeGenBase
registerAvilMap[handle] = true;
}
private int getParamLocationOffset(int index, int paramSize)
{
return (paramSize - index - 1) * wordSize;
}
private int getLocalVarLocationOffset(int index, int paramSize) {
return - (index - paramSize + 1) * wordSize;
}
private int getStaticLinkOffset(int paramSize)
{
return paramSize * wordSize;
}
/**
* An analyzer for the function described by FUNCINFO0, which is null for the
* top level.

Loading…
Cancel
Save