mirror of https://github.com/aamine/cbc
fix preproc tag only
git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4252 1b9489fe-b721-0410-924e-b54b9192deb8
This commit is contained in:
parent
9fc50d2179
commit
53e8ae748d
|
@ -569,7 +569,7 @@ public class CodeGenerator
|
|||
* Allocates addresses of local variables, but offset is still
|
||||
* not determined, assign unfixed IndirectMemoryReference.
|
||||
*/
|
||||
// #@@range/allocateVariablesTemp{
|
||||
// #@@range/allocateLocalVariablesTemp{
|
||||
private void allocateLocalVariablesTemp(LocalScope scope) {
|
||||
for (DefinedVariable var : scope.allLocalVariables()) {
|
||||
var.setMemref(new IndirectMemoryReference(bp()));
|
||||
|
@ -582,7 +582,7 @@ public class CodeGenerator
|
|||
* Returns byte-length of the local variable area.
|
||||
* Note that numSavedRegs includes bp.
|
||||
*/
|
||||
// #@@range/allocateVariables{
|
||||
// #@@range/allocateLocalVariables{
|
||||
private long allocateLocalVariables(LocalScope scope, long initLen) {
|
||||
long maxLen = allocateScope(scope, initLen);
|
||||
return maxLen - initLen;
|
||||
|
@ -642,7 +642,7 @@ public class CodeGenerator
|
|||
* * All arguments are on stack.
|
||||
* * Caller rewinds stack pointer.
|
||||
*/
|
||||
// #@@range/Funcall{
|
||||
// #@@range/Call{
|
||||
public Void visit(Call node) {
|
||||
for (Expr arg : ListUtils.reverse(node.args())) {
|
||||
compile(arg);
|
||||
|
@ -686,7 +686,7 @@ public class CodeGenerator
|
|||
}
|
||||
// #@@}
|
||||
|
||||
// #@@range/Stmt{
|
||||
// #@@range/ExprStmt{
|
||||
public Void visit(ExprStmt stmt) {
|
||||
compile(stmt.expr());
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue