mirror of https://github.com/aamine/cbc
r4827@macbookpro: aamine | 2009-05-11 01:47:38 +0900
* net/loveruby/cflat/codegenerator/CodeGenerator.java -> net/loveruby/cflat/sysdep * net/loveruby/cflat/codegenerator/CodeGeneratorOptions.java -> net/loveruby/cflat/sysdep * net/loveruby/cflat/sysdep/Platform.java: ditto. * net/loveruby/cflat/sysdep/x86/CodeGenerator.java: ditto. * net/loveruby/cflat/sysdep/x86/X86Linux.java: ditto. * net/loveruby/cflat/compiler/Compiler.java: ditto. * net/loveruby/cflat/compiler/Options.java: ditto. git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4205 1b9489fe-b721-0410-924e-b54b9192deb8
This commit is contained in:
parent
3a7d40e63d
commit
21f7253fc9
18
ChangeLog
18
ChangeLog
|
@ -1,3 +1,21 @@
|
||||||
|
Mon May 11 01:47:51 2009 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
* net/loveruby/cflat/codegenerator/CodeGenerator.java ->
|
||||||
|
net/loveruby/cflat/sysdep
|
||||||
|
|
||||||
|
* net/loveruby/cflat/codegenerator/CodeGeneratorOptions.java ->
|
||||||
|
net/loveruby/cflat/sysdep
|
||||||
|
|
||||||
|
* net/loveruby/cflat/sysdep/Platform.java: ditto.
|
||||||
|
|
||||||
|
* net/loveruby/cflat/sysdep/x86/CodeGenerator.java: ditto.
|
||||||
|
|
||||||
|
* net/loveruby/cflat/sysdep/x86/X86Linux.java: ditto.
|
||||||
|
|
||||||
|
* net/loveruby/cflat/compiler/Compiler.java: ditto.
|
||||||
|
|
||||||
|
* net/loveruby/cflat/compiler/Options.java: ditto.
|
||||||
|
|
||||||
Mon May 11 01:40:28 2009 Minero Aoki <aamine@loveruby.net>
|
Mon May 11 01:40:28 2009 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* net/loveruby/cflat/sysdep/x86/CodeGenerator.java: use
|
* net/loveruby/cflat/sysdep/x86/CodeGenerator.java: use
|
||||||
|
|
|
@ -4,7 +4,7 @@ import net.loveruby.cflat.ast.AST;
|
||||||
import net.loveruby.cflat.ast.StmtNode;
|
import net.loveruby.cflat.ast.StmtNode;
|
||||||
import net.loveruby.cflat.ast.ExprNode;
|
import net.loveruby.cflat.ast.ExprNode;
|
||||||
import net.loveruby.cflat.ir.IR;
|
import net.loveruby.cflat.ir.IR;
|
||||||
import net.loveruby.cflat.codegenerator.CodeGenerator;
|
import net.loveruby.cflat.sysdep.CodeGenerator;
|
||||||
import net.loveruby.cflat.utils.ErrorHandler;
|
import net.loveruby.cflat.utils.ErrorHandler;
|
||||||
import net.loveruby.cflat.exception.*;
|
import net.loveruby.cflat.exception.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
package net.loveruby.cflat.compiler;
|
package net.loveruby.cflat.compiler;
|
||||||
import net.loveruby.cflat.sysdep.Platform;
|
|
||||||
import net.loveruby.cflat.sysdep.x86.X86Linux;
|
|
||||||
import net.loveruby.cflat.parser.LibraryLoader;
|
import net.loveruby.cflat.parser.LibraryLoader;
|
||||||
import net.loveruby.cflat.type.TypeTable;
|
import net.loveruby.cflat.type.TypeTable;
|
||||||
import net.loveruby.cflat.asm.*;
|
import net.loveruby.cflat.asm.*;
|
||||||
import net.loveruby.cflat.codegenerator.*;
|
import net.loveruby.cflat.sysdep.*;
|
||||||
|
import net.loveruby.cflat.sysdep.x86.X86Linux;
|
||||||
import net.loveruby.cflat.utils.ErrorHandler;
|
import net.loveruby.cflat.utils.ErrorHandler;
|
||||||
import net.loveruby.cflat.exception.*;
|
import net.loveruby.cflat.exception.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package net.loveruby.cflat.codegenerator;
|
package net.loveruby.cflat.sysdep;
|
||||||
|
|
||||||
public interface CodeGenerator {
|
public interface CodeGenerator {
|
||||||
String generate(net.loveruby.cflat.ir.IR ir);
|
String generate(net.loveruby.cflat.ir.IR ir);
|
|
@ -1,4 +1,4 @@
|
||||||
package net.loveruby.cflat.codegenerator;
|
package net.loveruby.cflat.sysdep;
|
||||||
|
|
||||||
public class CodeGeneratorOptions {
|
public class CodeGeneratorOptions {
|
||||||
protected int optimizeLevel;
|
protected int optimizeLevel;
|
|
@ -1,7 +1,5 @@
|
||||||
package net.loveruby.cflat.sysdep;
|
package net.loveruby.cflat.sysdep;
|
||||||
import net.loveruby.cflat.type.TypeTable;
|
import net.loveruby.cflat.type.TypeTable;
|
||||||
import net.loveruby.cflat.codegenerator.CodeGenerator;
|
|
||||||
import net.loveruby.cflat.codegenerator.CodeGeneratorOptions;
|
|
||||||
import net.loveruby.cflat.utils.ErrorHandler;
|
import net.loveruby.cflat.utils.ErrorHandler;
|
||||||
|
|
||||||
public interface Platform {
|
public interface Platform {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
package net.loveruby.cflat.sysdep.x86;
|
package net.loveruby.cflat.sysdep.x86;
|
||||||
import net.loveruby.cflat.codegenerator.*;
|
import net.loveruby.cflat.sysdep.CodeGeneratorOptions;
|
||||||
import net.loveruby.cflat.ir.*;
|
import net.loveruby.cflat.ir.*;
|
||||||
import net.loveruby.cflat.entity.*;
|
import net.loveruby.cflat.entity.*;
|
||||||
import net.loveruby.cflat.asm.*;
|
import net.loveruby.cflat.asm.*;
|
||||||
|
@ -9,7 +9,7 @@ import net.loveruby.cflat.utils.ErrorHandler;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
class CodeGenerator
|
class CodeGenerator
|
||||||
implements net.loveruby.cflat.codegenerator.CodeGenerator,
|
implements net.loveruby.cflat.sysdep.CodeGenerator,
|
||||||
IRVisitor<Void,Void>,
|
IRVisitor<Void,Void>,
|
||||||
ELFConstants {
|
ELFConstants {
|
||||||
// #@@range/ctor{
|
// #@@range/ctor{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package net.loveruby.cflat.sysdep.x86;
|
package net.loveruby.cflat.sysdep.x86;
|
||||||
import net.loveruby.cflat.sysdep.Platform;
|
import net.loveruby.cflat.sysdep.Platform;
|
||||||
import net.loveruby.cflat.codegenerator.CodeGeneratorOptions;
|
import net.loveruby.cflat.sysdep.CodeGeneratorOptions;
|
||||||
import net.loveruby.cflat.utils.ErrorHandler;
|
import net.loveruby.cflat.utils.ErrorHandler;
|
||||||
import net.loveruby.cflat.type.TypeTable;
|
import net.loveruby.cflat.type.TypeTable;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue