Examples of VmX86Architecture32


Examples of org.jnode.vm.x86.VmX86Architecture32

     */
    @Before
    public void setUp() throws Exception {
        VmSystemClassLoader bib =
                new VmSystemClassLoader(new URL("file:///" + System.getProperty("classes.dir") +
                        "/"), new VmX86Architecture32());
        VmType.initializeForBootImage(bib);
        clc = bib;
    }
View Full Code Here

Examples of org.jnode.vm.x86.VmX86Architecture32

    public static void main(String[] args)
        throws Exception {

        final String className = (args.length > 0) ? args[0] : "java.lang.Object";
        final VmSystemClassLoader loader = new VmSystemClassLoader(new File(".").toURL(), new VmX86Architecture32());
        final VmType vmClass = loader.loadClass(className, true);

        for (int i = 0; i < vmClass.getNoDeclaredMethods(); i++) {
            TestCFG(vmClass.getDeclaredMethod(i));
        }
View Full Code Here

Examples of org.jnode.vm.x86.VmX86Architecture32

        final VmX86Architecture arch;
        if (archName.equals("x86_64")) {
            arch = new VmX86Architecture64();
        } else {
            arch = new VmX86Architecture32();
        }
        final VmSystemClassLoader cl = new VmSystemClassLoader(new java.net.URL[]{
            new File("./core/build/classes/").getCanonicalFile().toURI().toURL(),
            new File("./distr/build/classes/").getCanonicalFile().toURI().toURL(),
            new URL("jar:" + new File("./all/lib/classlib.jar").getCanonicalFile().toURI().toURL() + "!/"),
View Full Code Here

Examples of org.jnode.vm.x86.VmX86Architecture32

        //VmByteCode code = loadByteCode(className, "discriminant");
        //VmByteCode code = loadByteCode(className, "arithOptIntx");
        //VmByteCode code = loadByteCode(className, "simpleWhile");
        //VmByteCode code = loadByteCode(className, "terniary2");

        VmX86Architecture32 arch = new VmX86Architecture32();
        VmSystemClassLoader loader = new VmSystemClassLoader(new URL[]{
            new File("core/build/classes").toURL(),
            new File("distr/build/classes").toURL(),
            new File("local/classlib").toURL()
        }, arch);
View Full Code Here

Examples of org.jnode.vm.x86.VmX86Architecture32

    }

    private static VmByteCode loadByteCode(String className, String methodName)
        throws MalformedURLException, ClassNotFoundException, InstantiationException {
        //VmSystemClassLoader vmc = new VmSystemClassLoader(new File(".").toURL(), new VmX86Architecture32());
        VmX86Architecture32 arch = new VmX86Architecture32();
        VmSystemClassLoader vmc = new VmSystemClassLoader(new URL[]{
            new File("core/build/classes").toURL(),
            new File("local/classlib").toURL()
        }, arch);
        new VmImpl("?", arch, vmc.getSharedStatics(), true, vmc, null);
View Full Code Here

Examples of org.jnode.vm.x86.VmX86Architecture32

    public static void main(String[] args) throws Exception {

        final String processorId = System.getProperty("cpu", "p5");
        final String dir = System.getProperty("classes.dir", ".");

        final VmX86Architecture arch = new VmX86Architecture32();
        final VmSystemClassLoader cl = new VmSystemClassLoader(new URL[]{new File(dir)
            .toURL()}, arch, new CompilerTest.DummyResolver());
        final IMTCompiler cmp = arch.getIMTCompiler();
        cmp.initialize(cl);
        VmType.initializeForBootImage(cl);
        final VmImpl vm = new VmImpl("?", arch, cl.getSharedStatics(), false, cl, null);
        vm.toString();
View Full Code Here

Examples of org.jnode.vm.x86.VmX86Architecture32

     */
    protected final BaseVmArchitecture getArchitecture() throws BuildException {
        if (arch == null) {
            switch (bits) {
                case 32:
                    arch = new VmX86Architecture32(getJnodeCompiler());
                    break;
                case 64:
                    arch = new VmX86Architecture64(getJnodeCompiler());
                    break;
                default:
View Full Code Here

Examples of org.jnode.vm.x86.VmX86Architecture32

    protected BaseVmArchitecture getArchitecture() {
        if (arch == null) {
            switch (bits) {
                case 32:
                    arch = new VmX86Architecture32();
                    break;
                case 64:
                    arch = new VmX86Architecture64();
                    break;
                default:
View Full Code Here

Examples of org.jnode.vm.x86.VmX86Architecture32

//            }
    }

    private static VmByteCode loadByteCode(String className)
        throws MalformedURLException, ClassNotFoundException {
        VmSystemClassLoader vmc = new VmSystemClassLoader(new File(".").toURL(), new VmX86Architecture32());
        VmType type = vmc.loadClass(className, true);
        VmMethod arithMethod = null;
        int nMethods = type.getNoDeclaredMethods();
        for (int i = 0; i < nMethods; i += 1) {
            VmMethod method = type.getDeclaredMethod(i);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.