Merge remote-tracking branch 'origin/sanjar/improvements'
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
jr ra
|
||||
|
||||
.globl initchars
|
||||
initchars:
|
||||
jr ra
|
||||
@@ -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.*;
|
||||
@@ -219,21 +217,11 @@ public class CodeGenImpl extends CodeGenBase
|
||||
{ //handle used to free the register
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user