Skip to content

Commit

Permalink
Make the classfile reader part of the run-time since it is needed by …
Browse files Browse the repository at this point in the history
…the Java compiler.
  • Loading branch information
XerTheSquirrel committed Mar 6, 2018
1 parent 597c7f0 commit 9480c94
Show file tree
Hide file tree
Showing 58 changed files with 61 additions and 63 deletions.
2 changes: 1 addition & 1 deletion bldt/libs/java-to-c/META-INF/MANIFEST.MF
Expand Up @@ -8,6 +8,6 @@ X-SquirrelJME-Description: This is used to translate Java class files to C
source code. It does not generate optimized code and is intended to be
used by the bootstrap to setup a Java compiler and run-time for systems
which do not have a virtual machine at all but do have a C compiler.
X-SquirrelJME-Depends: class-file
X-SquirrelJME-Depends: tool-classfile
Microedition-Configuration: CLDC-1.8-Compact

2 changes: 1 addition & 1 deletion jitt/libs/basic-interpreter/META-INF/MANIFEST.MF
Expand Up @@ -8,7 +8,7 @@ X-SquirrelJME-Description: This is an interpreter which interprets the byte
code in the class file directly to run the programs it contains. It is
intended for use in JIT development and testing to make sure thigns
work.
X-SquirrelJME-Depends: class-file jit-library
X-SquirrelJME-Depends: tool-classfile jit-library
Main-Class: cc.squirreljme.jit.interpreter.Main
Microedition-Configuration: CLDC-1.8-Compact

Expand Up @@ -10,7 +10,7 @@

package cc.squirreljme.jit.compiler;

import cc.squirreljme.jit.classfile.ClassFile;
import net.multiphasicapps.classfile.ClassFile;
import cc.squirreljme.jit.library.Library;
import cc.squirreljme.jit.objectfile.ObjectFile;

Expand Down
Expand Up @@ -10,9 +10,9 @@

package cc.squirreljme.jit.compiler;

import cc.squirreljme.jit.classfile.ClassFile;
import cc.squirreljme.jit.classfile.Field;
import cc.squirreljme.jit.classfile.Method;
import net.multiphasicapps.classfile.ClassFile;
import net.multiphasicapps.classfile.Field;
import net.multiphasicapps.classfile.Method;
import cc.squirreljme.jit.library.Library;
import cc.squirreljme.jit.objectfile.DataProperties;
import cc.squirreljme.jit.objectfile.ObjectFile;
Expand Down
2 changes: 1 addition & 1 deletion jitt/libs/jit-library/META-INF/MANIFEST.MF
Expand Up @@ -7,6 +7,6 @@ X-SquirrelJME-Version: 0.0.2
X-SquirrelJME-Description: This class contains the interfaces which are
used to provide libraries which provide class files and resources for
the JIT to use.
X-SquirrelJME-Depends: class-file
X-SquirrelJME-Depends: tool-classfile jit-base
Microedition-Configuration: CLDC-1.8-Compact

Expand Up @@ -10,7 +10,7 @@

package cc.squirreljme.jit.library;

import cc.squirreljme.jit.classfile.ClassFile;
import net.multiphasicapps.classfile.ClassFile;
import java.io.InputStream;
import java.io.IOException;
import java.lang.ref.Reference;
Expand Down
Expand Up @@ -5,6 +5,6 @@ X-SquirrelJME-Name: Class File Reader
X-SquirrelJME-Vendor: Stephanie Gawroriski
X-SquirrelJME-Version: 0.0.2
X-SquirrelJME-Description: This contains support for reading class files.
X-SquirrelJME-Depends: collections io jit-base
X-SquirrelJME-Depends: collections io
Microedition-Configuration: CLDC-1.8-Compact

Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* These are flags which are associated with accessible objects to determine
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* This represents any element which has been annotated.
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.io.DataInputStream;
import java.io.IOException;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.io.DataInputStream;
import java.io.InputStream;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* These are flags which modify how a class is accessed and is behaved.
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.util.ArrayList;
import java.util.List;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* This is used to identify the fragment of a class or package.
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.util.Objects;

Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* This represents the class verion that a class may be.
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.io.DataInputStream;
import java.io.IOException;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.io.DataInputStream;
import java.io.IOException;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* These are flags which are associated with class fields.
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* This represent the set of flags for fields.
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* This represents the name of a field. It has the same constraints as
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* This interface is used to flag the types used for flags.
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.util.AbstractSet;
import java.util.ArrayList;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* This represents an identifier which acts as a name of a fragment of a class
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* This interface contains instruction identification numbers which identify
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* This contains instruction mnemonics.
Expand Down
Expand Up @@ -8,17 +8,15 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;

import cc.squirreljme.jit.JITException;
package net.multiphasicapps.classfile;

/**
* This is thrown when the format of a class is not valid.
*
* @since 2017/09/27
*/
public class InvalidClassFormatException
extends JITException
extends RuntimeException
{
/**
* Initialize the exception with no message or cause.
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* This represents the base for members within classes.
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* This is a flagging interface for flags which are associated with members.
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* This is the base class for flags which are for member types.
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* This is the base class for field and method references.
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.io.DataInputStream;
import java.io.IOException;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

import java.util.ArrayList;
import java.util.List;
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* These are flags which are used by methods.
Expand Down
Expand Up @@ -8,7 +8,7 @@
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.jit.classfile;
package net.multiphasicapps.classfile;

/**
* This represents the set of flags for methods.
Expand Down

0 comments on commit 9480c94

Please sign in to comment.