Package org.jnode.vm.x86.compiler.l1b

Examples of org.jnode.vm.x86.compiler.l1b.MagicHelper


     *
     * @param resolver
     * @return NativeStream
     */
    public NativeStream createNativeStream(ObjectResolver resolver) {
        X86CpuID cpuid = (X86CpuID) VmProcessor.current().getCPUID();
        X86BinaryAssembler os = new X86BinaryAssembler(cpuid, getMode(), 0);
        os.setResolver(resolver);
        return os;
    }
View Full Code Here


     *
     * @param resolver
     * @return NativeStream
     */
    public NativeStream createNativeStream(ObjectResolver resolver) {
        X86CpuID cpuid = (X86CpuID) VmProcessor.current().getCPUID();
        X86BinaryAssembler os = new X86BinaryAssembler(cpuid, getMode(), 0);
        os.setResolver(resolver);
        return os;
    }
View Full Code Here

     *
     * @param resolver
     * @return NativeStream
     */
    public NativeStream createNativeStream(ObjectResolver resolver) {
        X86CpuID cpuid = (X86CpuID) VmProcessor.current().getCPUID();
        X86BinaryAssembler os = new X86BinaryAssembler(cpuid, getMode(), 0);
        os.setResolver(resolver);
        return os;
    }
View Full Code Here

            this.ADDRSIZE = X86Constants.BITS64;
            this.SLOTSIZE = 8;
        }
        this.entryPoints = entryPoints;
        this.stackMgr = stackMgr;
        final X86CpuID cpuId = (X86CpuID) os.getCPUID();
        haveCMOV = cpuId.hasFeature(X86CpuID.FEAT_CMOV);
    }
View Full Code Here

        vm.toString();
        VmType.initializeForBootImage(cl);
        System.out.println("Architecture: " + arch.getFullName());

        //final ObjectResolver resolver = new DummyResolver();
        final X86CpuID cpuId = X86CpuID.createID(processorId);
        //NativeCodeCompiler c = cs[0];
        final NativeCodeCompiler[] cs = {
            //new X86Level1Compiler(),
            new X86Level1ACompiler(),
            new X86Level2Compiler()
View Full Code Here

*/
public class IRTest {
    public static void main(String args[]) throws SecurityException, IOException, ClassNotFoundException,
        InstantiationException {
//        System.in.read();
        X86CpuID cpuId = X86CpuID.createID("p5");
        boolean binary = false;

        String className = "org.jnode.vm.compiler.ir.PrimitiveTest";
//        String className = "org.jnode.games.tetris.Tetris";
        if (args.length > 0) {
View Full Code Here

        VmType.initializeForBootImage(cl);
        final VmImpl vm = new VmImpl("?", arch, cl.getSharedStatics(), false, cl, null);
        vm.toString();

        //final ObjectResolver resolver = new DummyResolver();
        final X86CpuID cpuId = X86CpuID.createID(processorId);


        final String[] clsNames = CompilerTest.clsNames;

        final long start = System.currentTimeMillis();
View Full Code Here

        modules.add(new MMX(labels, constants));
        modules.add(assembler.getPseudo());
    }

    public void assemble(int baseAddress) {
        X86CpuID cpuId = X86CpuID.createID("pentium");
        nativeStream = new X86BinaryAssembler(cpuId, X86Constants.Mode.CODE32, baseAddress);
        ((X86BinaryAssembler) nativeStream).setByteValueEnabled(true);
        ((X86BinaryAssembler) nativeStream).setRelJumpEnabled(false);
        doAssembly();
    }
View Full Code Here

        return 0;
    }

    public static void main(String args[]) throws SecurityException, IOException, ClassNotFoundException {
        System.in.read();
        X86CpuID cpuId = X86CpuID.createID("p5");
        boolean binary = false;

        String className = "org.jnode.vm.compiler.ir.PrimitiveTest";
        if (args.length > 0) {
            String arg0 = args[0];
View Full Code Here

        } else {
            gprPool = new X86RegisterPool.GPRs64();
            xmmPool = new X86RegisterPool.XMMs64();
        }
        this.ifac = ItemFactory.getFactory();
        final AbstractX86StackManager stackMgr = vstack.createStackMgr(gprPool, ifac);
        this.helper = new X86CompilerHelper(os, stackMgr, context, isBootstrap);
        this.cm = cm;
        final int slotSize = helper.SLOTSIZE;
        this.arrayLengthOffset = VmArray.LENGTH_OFFSET * slotSize;
        this.arrayDataOffset = VmArray.DATA_OFFSET * slotSize;
 
View Full Code Here

TOP

Related Classes of org.jnode.vm.x86.compiler.l1b.MagicHelper

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.