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
|
* Allocates addresses of local variables, but offset is still
|
||||||
* not determined, assign unfixed IndirectMemoryReference.
|
* not determined, assign unfixed IndirectMemoryReference.
|
||||||
*/
|
*/
|
||||||
// #@@range/allocateVariablesTemp{
|
// #@@range/allocateLocalVariablesTemp{
|
||||||
private void allocateLocalVariablesTemp(LocalScope scope) {
|
private void allocateLocalVariablesTemp(LocalScope scope) {
|
||||||
for (DefinedVariable var : scope.allLocalVariables()) {
|
for (DefinedVariable var : scope.allLocalVariables()) {
|
||||||
var.setMemref(new IndirectMemoryReference(bp()));
|
var.setMemref(new IndirectMemoryReference(bp()));
|
||||||
|
@ -582,7 +582,7 @@ public class CodeGenerator
|
||||||
* Returns byte-length of the local variable area.
|
* Returns byte-length of the local variable area.
|
||||||
* Note that numSavedRegs includes bp.
|
* Note that numSavedRegs includes bp.
|
||||||
*/
|
*/
|
||||||
// #@@range/allocateVariables{
|
// #@@range/allocateLocalVariables{
|
||||||
private long allocateLocalVariables(LocalScope scope, long initLen) {
|
private long allocateLocalVariables(LocalScope scope, long initLen) {
|
||||||
long maxLen = allocateScope(scope, initLen);
|
long maxLen = allocateScope(scope, initLen);
|
||||||
return maxLen - initLen;
|
return maxLen - initLen;
|
||||||
|
@ -642,7 +642,7 @@ public class CodeGenerator
|
||||||
* * All arguments are on stack.
|
* * All arguments are on stack.
|
||||||
* * Caller rewinds stack pointer.
|
* * Caller rewinds stack pointer.
|
||||||
*/
|
*/
|
||||||
// #@@range/Funcall{
|
// #@@range/Call{
|
||||||
public Void visit(Call node) {
|
public Void visit(Call node) {
|
||||||
for (Expr arg : ListUtils.reverse(node.args())) {
|
for (Expr arg : ListUtils.reverse(node.args())) {
|
||||||
compile(arg);
|
compile(arg);
|
||||||
|
@ -686,7 +686,7 @@ public class CodeGenerator
|
||||||
}
|
}
|
||||||
// #@@}
|
// #@@}
|
||||||
|
|
||||||
// #@@range/Stmt{
|
// #@@range/ExprStmt{
|
||||||
public Void visit(ExprStmt stmt) {
|
public Void visit(ExprStmt stmt) {
|
||||||
compile(stmt.expr());
|
compile(stmt.expr());
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue