fix preproc tags only

git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4251 1b9489fe-b721-0410-924e-b54b9192deb8
This commit is contained in:
Minero Aoki 2009-05-24 14:08:43 +00:00
parent 64e91a4737
commit 9fc50d2179
1 changed files with 8 additions and 10 deletions

View File

@ -748,7 +748,7 @@ public class CodeGenerator
} }
// #@@} // #@@}
// #@@range/compile_Bin{ // #@@range/Bin{
public Void visit(Bin node) { public Void visit(Bin node) {
AsmOperand right = null; AsmOperand right = null;
if (!doesSpillRegister(node.op()) && node.right().isConstant()){ if (!doesSpillRegister(node.op()) && node.right().isConstant()){
@ -862,11 +862,9 @@ public class CodeGenerator
as.movzb(t, al(), ax(t)); as.movzb(t, al(), ax(t));
} }
// #@@} // #@@}
// #@@range/compileBinaryOp_end{
} }
// #@@}
// #@@range/compile_Uni{ // #@@range/Uni{
public Void visit(Uni node) { public Void visit(Uni node) {
Type src = node.expr().type(); Type src = node.expr().type();
Type dest = node.type(); Type dest = node.type();
@ -897,21 +895,21 @@ public class CodeGenerator
} }
// #@@} // #@@}
// #@@range/compile_Var{ // #@@range/Var{
public Void visit(Var node) { public Void visit(Var node) {
loadVariable(node, ax()); loadVariable(node, ax());
return null; return null;
} }
// #@@} // #@@}
// #@@range/compile_Int{ // #@@range/Int{
public Void visit(Int node) { public Void visit(Int node) {
loadConstant(node, ax()); loadConstant(node, ax());
return null; return null;
} }
// #@@} // #@@}
// #@@range/compile_Str{ // #@@range/Str{
public Void visit(Str node) { public Void visit(Str node) {
loadConstant(node, ax()); loadConstant(node, ax());
return null; return null;
@ -922,7 +920,7 @@ public class CodeGenerator
// Assignable expressions // Assignable expressions
// //
// #@@range/compile_Assign{ // #@@range/Assign{
public Void visit(Assign node) { public Void visit(Assign node) {
if (node.lhs().isAddr() && node.lhs().memref() != null) { if (node.lhs().isAddr() && node.lhs().memref() != null) {
compile(node.rhs()); compile(node.rhs());
@ -946,7 +944,7 @@ public class CodeGenerator
} }
// #@@} // #@@}
// #@@range/compile_Mem{ // #@@range/Mem{
public Void visit(Mem node) { public Void visit(Mem node) {
compile(node.expr()); compile(node.expr());
load(node.type(), mem(ax()), ax()); load(node.type(), mem(ax()), ax());
@ -954,7 +952,7 @@ public class CodeGenerator
} }
// #@@} // #@@}
// #@@range/compile_Addr{ // #@@range/Addr{
public Void visit(Addr node) { public Void visit(Addr node) {
loadAddress(node.entity(), ax()); loadAddress(node.entity(), ax());
return null; return null;