Package org.jnode.vm.x86

Examples of org.jnode.vm.x86.MPFloatingPointerStructure


        //final ObjectResolver resolver = new DummyResolver();
        final X86CpuID cpuId = X86CpuID.createID(processorId);
        //NativeCodeCompiler c = cs[0];
        final NativeCodeCompiler[] cs = {
            //new X86Level1Compiler(),
            new X86Level1ACompiler(),
            new X86Level2Compiler()
        };
        for (int i = 0; i < cs.length; i++) {
            cs[i].initialize(cl);
        }
View Full Code Here


        if (compiler != null && compiler.length() > 0 &&
            !compiler.equalsIgnoreCase("default")) {
            if ("L1B".equalsIgnoreCase(compiler)) {
                this.compilers[1] = new X86Level1BCompiler();
            } else if ("L1A".equalsIgnoreCase(compiler)) {
                this.compilers[1] = new X86Level1ACompiler();
            } else {
                BootLogInstance.get().warn("JNode native compiler '" + compiler + "' is unknown.");
            }
        }
        if (this.compilers[1] == null) {
            BootLogInstance.get().warn("JNode native compiler defaulting to 'L1A'");
            this.compilers[1] = new X86Level1ACompiler();
        }
        this.testCompilers = new NativeCodeCompiler[1];
        this.testCompilers[0] = new X86Level2Compiler();
    }
View Full Code Here

        // Compare insensitively, producing a warning if the user selects
        // an unknown compiler, and using a default where appropriate.
        if (compiler != null && compiler.length() > 0 &&
            !compiler.equalsIgnoreCase("default")) {
            if ("L1B".equalsIgnoreCase(compiler)) {
                this.compilers[1] = new X86Level1BCompiler();
            } else if ("L1A".equalsIgnoreCase(compiler)) {
                this.compilers[1] = new X86Level1ACompiler();
            } else {
                BootLogInstance.get().warn("JNode native compiler '" + compiler + "' is unknown.");
            }
View Full Code Here

        X86CompilerHelper helper = new X86CompilerHelper(os, null, context, true);
        CompiledMethod cm = new CompiledMethod(1);
        TypeSizeInfo typeSizeInfo = loader.getArchitecture().getTypeSizeInfo();
        helper.setMethod(method);
        X86StackFrame stackFrame = new X86StackFrame(os, helper, method, context, cm);
        X86CodeGenerator x86cg = new X86CodeGenerator(method, os, code.getLength(), typeSizeInfo, stackFrame);

        generateCode(os, code, x86cg, stackFrame, arithMethod, typeSizeInfo);


//        X86CodeGenerator x86cg = null;//new X86CodeGenerator(os, code.getLength());
View Full Code Here

        throws MalformedURLException, ClassNotFoundException {


        VmByteCode code = loadByteCode(className);

        X86CodeGenerator x86cg = null; //new X86CodeGenerator(os, code.getLength());

        IRControlFlowGraph cfg = new IRControlFlowGraph(code);

        BytecodeViewer bv = new BytecodeViewer();
        BytecodeParser.parse(code, bv);
View Full Code Here

        final X86CpuID cpuId = X86CpuID.createID(processorId);
        //NativeCodeCompiler c = cs[0];
        final NativeCodeCompiler[] cs = {
            //new X86Level1Compiler(),
            new X86Level1ACompiler(),
            new X86Level2Compiler()
        };
        for (int i = 0; i < cs.length; i++) {
            cs[i].initialize(cl);
        }
        long times[] = new long[cs.length];
View Full Code Here

        if (this.compilers[1] == null) {
            BootLogInstance.get().warn("JNode native compiler defaulting to 'L1A'");
            this.compilers[1] = new X86Level1ACompiler();
        }
        this.testCompilers = new NativeCodeCompiler[1];
        this.testCompilers[0] = new X86Level2Compiler();
    }
View Full Code Here

        EntryPoints context = new EntryPoints(loader, VmUtils.getVm().getHeapManager(), 1);
        X86CompilerHelper helper = new X86CompilerHelper(os, null, context, true);
        CompiledMethod cm = new CompiledMethod(1);
        TypeSizeInfo typeSizeInfo = loader.getArchitecture().getTypeSizeInfo();
        helper.setMethod(method);
        X86StackFrame stackFrame = new X86StackFrame(os, helper, method, context, cm);
        X86CodeGenerator x86cg = new X86CodeGenerator(method, os, code.getLength(), typeSizeInfo, stackFrame);

        generateCode(os, code, x86cg, stackFrame, arithMethod, typeSizeInfo);

View Full Code Here

     *                 one of the known names, the default compiler will be used.
     */
    public VmX86Architecture(int referenceSize, String compiler) {
        super(referenceSize, new VmX86StackReader(referenceSize));
        this.compilers = new NativeCodeCompiler[2];
        this.compilers[0] = new X86StubCompiler();
        // Compare insensitively, producing a warning if the user selects
        // an unknown compiler, and using a default where appropriate.
        if (compiler != null && compiler.length() > 0 &&
            !compiler.equalsIgnoreCase("default")) {
            if ("L1B".equalsIgnoreCase(compiler)) {
View Full Code Here

TOP

Related Classes of org.jnode.vm.x86.MPFloatingPointerStructure

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.