Check-in [bc4f03c934]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add base interfaces for values; Add base for the SCRF representation; Implement most of the code needed to start a thread.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:bc4f03c934a894a81c35679feb81ef71d64b2cd7
User & Date: stephanie.gawroriski 2019-01-11 01:41:00
Context
2019-01-11
01:46
Add base API for entering methods. check-in: aed04b090e user: stephanie.gawroriski tags: trunk
01:41
Add base interfaces for values; Add base for the SCRF representation; Implement most of the code needed to start a thread. check-in: bc4f03c934 user: stephanie.gawroriski tags: trunk
2019-01-10
22:42
Start the thread after it has been setup. check-in: cea9d9902b user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added runt/libs/summercoat-vm/cc/squirreljme/vm/summercoat/ArrayInstance.java.

































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// Multi-Phasic Applications: SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
//     Copyright (C) Multi-Phasic Applications <multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.vm.summercoat;

/**
 * This interface represents any array instance.
 *
 * @since 2019/01/10
 */
public interface ArrayInstance
	extends Instance
{
	/**
	 * Sets the index to the specified value.
	 *
	 * @param __i The index to set.
	 * @param __v The value to store.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/01/10
	 */
	public abstract void set(int __i, Value __v)
		throws NullPointerException;
}

Changes to runt/libs/summercoat-vm/cc/squirreljme/vm/summercoat/ClassLoader.java.

8
9
10
11
12
13
14






15
16
17
18
19
20
21
22
23
24
25
26
27




28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

57
58
59
60
61
62
63
64
65

















66
67
68
69
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.vm.summercoat;

import cc.squirreljme.vm.VMClassLibrary;
import cc.squirreljme.vm.VMSuiteManager;







/**
 * This is a class loader which manages and can cache multiple classes.
 *
 * @since 2019/01/05
 */
public final class ClassLoader
{
	/** The class cache. */
	protected final RuntimeClassCache runtimeclasscache;
	
	/** The suite manager. */
	protected final VMSuiteManager suites;




	
	/** The classes in the class path. */
	private final VMClassLibrary[] _classpath;
	
	/**
	 * Initializes the class loader.
	 *
	 * @param __rcc The run-time class cache.
	 * @param __sm The suite manager.
	 * @param __cp The classpath.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/01/05
	 */
	public ClassLoader(RuntimeClassCache __rcc, VMSuiteManager __sm,
		VMClassLibrary[] __cp)
		throws NullPointerException
	{
		if (__rcc == null || __sm == null || __cp == null)
			throw new NullPointerException("NARG");
		
		this.runtimeclasscache = __rcc;
		this.suites = __sm;
		this._classpath = __cp.clone();
	}
	
	/**
	 * Loads the given class.
	 *
	 * @param __n The class to load.

	 * @throws NullPointerException On null arguments.
	 * @since 2019/01/06
	 */
	public final LoadedClass loadClass(String __n)
		throws NullPointerException
	{
		if (__n == null)
			throw new NullPointerException("NARG");
		

















		throw new todo.TODO();			
	}
}








>
>
>
>
>
>









|



>
>
>
>







|





|






|








>









>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.vm.summercoat;

import cc.squirreljme.vm.VMClassLibrary;
import cc.squirreljme.vm.VMSuiteManager;
import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
import java.util.HashMap;
import java.util.Map;
import net.multiphasicapps.classfile.ClassName;
import net.multiphasicapps.scrf.RegisterClass;

/**
 * This is a class loader which manages and can cache multiple classes.
 *
 * @since 2019/01/05
 */
public final class ClassLoader
{
	/** The class cache. */
	protected final RegisterClassCache scrfcache;
	
	/** The suite manager. */
	protected final VMSuiteManager suites;
	
	/** Loaded class cache. */
	private final Map<ClassName, LoadedClass> _classes =
		new HashMap<>();
	
	/** The classes in the class path. */
	private final VMClassLibrary[] _classpath;
	
	/**
	 * Initializes the class loader.
	 *
	 * @param __rcc The SCRF class cache.
	 * @param __sm The suite manager.
	 * @param __cp The classpath.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/01/05
	 */
	public ClassLoader(RegisterClassCache __rcc, VMSuiteManager __sm,
		VMClassLibrary[] __cp)
		throws NullPointerException
	{
		if (__rcc == null || __sm == null || __cp == null)
			throw new NullPointerException("NARG");
		
		this.scrfcache = __rcc;
		this.suites = __sm;
		this._classpath = __cp.clone();
	}
	
	/**
	 * Loads the given class.
	 *
	 * @param __n The class to load.
	 * @return The loaded class.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/01/06
	 */
	public final LoadedClass loadClass(String __n)
		throws NullPointerException
	{
		if (__n == null)
			throw new NullPointerException("NARG");
		
		return this.loadClass(new ClassName(__n));
	}
	
	/**
	 * Loads the given class.
	 *
	 * @param __n The class to load.
	 * @return The loaded class.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/01/10
	 */
	public final LoadedClass loadClass(ClassName __n)
		throws NullPointerException
	{
		if (__n == null)
			throw new NullPointerException("NARG");
		
		throw new todo.TODO();
	}
}

Added runt/libs/summercoat-vm/cc/squirreljme/vm/summercoat/Instance.java.













































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// Multi-Phasic Applications: SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
//     Copyright (C) Multi-Phasic Applications <multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.vm.summercoat;

/**
 * This interface represents an instance of an object.
 *
 * @since 2019/01/10
 */
public interface Instance
	extends Value
{
}

Added runt/libs/summercoat-vm/cc/squirreljme/vm/summercoat/IntegerValue.java.



































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// Multi-Phasic Applications: SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
//     Copyright (C) Multi-Phasic Applications <multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.vm.summercoat;

/**
 * This represents an integer value.
 *
 * @since 2019/01/10
 */
public final class IntegerValue
	implements Value
{
	/**
	 * Wraps the given value as an integer.
	 *
	 * @param __v The value to wrap.
	 * @return The wrapped value.
	 * @since 2019/01/10
	 */
	public static final IntegerValue of(int __v)
	{
		throw new todo.TODO();
	}
}

Name change from runt/libs/summercoat-vm/cc/squirreljme/vm/summercoat/RuntimeClassCache.java to runt/libs/summercoat-vm/cc/squirreljme/vm/summercoat/RegisterClassCache.java.

6
7
8
9
10
11
12


13
14
15

16
17
18
19
20
21
22
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.vm.summercoat;



/**
 * This is a cache of classes so that SCRF translation is kept in the run-time
 * rather than being repeated multiple times over and over.

 *
 * @since 2019/01/05
 */
public final class RuntimeClassCache
{
}








>
>


|
>



|



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.vm.summercoat;

import net.multiphasicapps.scrf.RegisterClass;

/**
 * This is a cache of classes so that SCRF translation is kept in the run-time
 * rather than being repeated multiple times over and over. This increases the
 * speed at which programs are launched.
 *
 * @since 2019/01/05
 */
public final class RegisterClassCache
{
}

Changes to runt/libs/summercoat-vm/cc/squirreljme/vm/summercoat/RootMachine.java.

36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
...
100
101
102
103
104
105
106



107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123


































124
125
126
127
128
129
130
131
132
133
134
135
136
	/** The base depth of this virtual machine. */
	protected final int baseguestdepth;
	
	/** Statuses for each task. */
	protected final TaskStatuses statuses =
		new TaskStatuses();
	
	/** Cache of classes. */
	protected final RuntimeClassCache runtimeclasscache =
		new RuntimeClassCache();
	
	/**
	 * Initializes the root machine.
	 *
	 * @param __s The suite manager.
	 * @param __p The profiler snapshot output, this is optional.
	 * @param __gd The guest depth of this VM.
................................................................................
		for (String s : __args)
			if (s == null)
				throw new NullPointerException("NARG");
		for (Map.Entry<String, String> e : __sprops.entrySet())
			if (e.getKey() == null || e.getValue() == null)
				throw new NullPointerException("NARG");
		



		// Create a new status for this task which contains some global
		// information that is needed, it needs our system properties and the
		// classpath since they both may be accessed
		ClassLoader cl;
		TaskStatus status = this.statuses.createNew(
			(cl = new ClassLoader(this.runtimeclasscache, suites, __cp)),
			__sprops, this.profiler);
		
		// Setup a new base running task, which has no threads yet until the
		// first is created
		RunningTask rv = new RunningTask(status);
		
		// Create a new main thread which will be where our execution context
		// will be (since we need to initialize objects)
		RunningThread thr = rv.createThread();
		
		// Setup main thread


































		if (true)
			throw new todo.TODO();
		
		// Now that the thread has been initialized it must be started, it
		// will keep running executing the method it starts in until
		// termination occurs
		thr.start();
		
		// Return out created task
		return rv;
	}
}








|
|
|







 







>
>
>





|










|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>













36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
...
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
	/** The base depth of this virtual machine. */
	protected final int baseguestdepth;
	
	/** Statuses for each task. */
	protected final TaskStatuses statuses =
		new TaskStatuses();
	
	/** Cache of SCRF classes. */
	protected final RegisterClassCache scrfcache =
		new RegisterClassCache();
	
	/**
	 * Initializes the root machine.
	 *
	 * @param __s The suite manager.
	 * @param __p The profiler snapshot output, this is optional.
	 * @param __gd The guest depth of this VM.
................................................................................
		for (String s : __args)
			if (s == null)
				throw new NullPointerException("NARG");
		for (Map.Entry<String, String> e : __sprops.entrySet())
			if (e.getKey() == null || e.getValue() == null)
				throw new NullPointerException("NARG");
		
		// Normalize the main class
		__maincl = __maincl.replace('.', '/');
		
		// Create a new status for this task which contains some global
		// information that is needed, it needs our system properties and the
		// classpath since they both may be accessed
		ClassLoader cl;
		TaskStatus status = this.statuses.createNew(
			(cl = new ClassLoader(this.scrfcache, suites, __cp)),
			__sprops, this.profiler);
		
		// Setup a new base running task, which has no threads yet until the
		// first is created
		RunningTask rv = new RunningTask(status);
		
		// Create a new main thread which will be where our execution context
		// will be (since we need to initialize objects)
		RunningThread thr = rv.createThread();
		
		// Determine the entry method and the entry arguments to use
		Instance vmsm;
		Instance entryarg;
		if (__ismid)
		{
			vmsm = thr.vmStaticMethod(false,
				"javax/microedition/midlet/MIDlet",
				"startApp", "()V");
			entryarg = thr.vmTranslateString(__maincl);
		}
		else
		{
			vmsm = thr.vmStaticMethod(true, __maincl,
				"main", "([Ljava/lang/String;)V");
			
			// Setup array that is the same size as the input arguments
			int n = __args.length;
			ArrayInstance ai = thr.vmNewArray("[Ljava/lang/String;", n);
			
			// Translate string arguments
			for (int i = 0; i < n; i++)
				ai.set(i, thr.vmTranslateString(__args[i]));
			
			// We just pass this to the thread
			entryarg = ai;
		}
		
		// Create main thread instance which uses our given starting points
		// accordingly so it knows which method to invoke
		Instance threadobj = thr.vmNewInstance("java/lang/Thread",
			"(Ljava/lang/String;ILcc/squirreljme/runtime/cldc/asm/" +
			"StaticMethod;Ljava/lang/Object;)V", thr.vmTranslateString("Main"),
			IntegerValue.of((__ismid ? 3 : 4)), vmsm, entryarg);
		
		// Enter the __start() method for Thread
		if (true)
			throw new todo.TODO();
		
		// Now that the thread has been initialized it must be started, it
		// will keep running executing the method it starts in until
		// termination occurs
		thr.start();
		
		// Return out created task
		return rv;
	}
}

Changes to runt/libs/summercoat-vm/cc/squirreljme/vm/summercoat/RunningThread.java.

6
7
8
9
10
11
12




13
14
15
16
17
18
19
..
48
49
50
51
52
53
54
55
56
57


58

















































































































































// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.vm.summercoat;





/**
 * This represents a thread which is running in the virtual machine.
 *
 * This class implements thread itself so it may be interrupted as needed and
 * such.
 *
 * @since 2019/01/05
................................................................................
	/**
	 * {@inheritDoc}
	 * @since 2019/01/05
	 */
	@Override
	public void run()
	{
		throw new todo.TODO();
	}
}



























































































































































>
>
>
>







 









|
>
>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
..
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.vm.summercoat;

import net.multiphasicapps.classfile.ClassName;
import net.multiphasicapps.classfile.MethodDescriptor;
import net.multiphasicapps.classfile.MethodNameAndType;

/**
 * This represents a thread which is running in the virtual machine.
 *
 * This class implements thread itself so it may be interrupted as needed and
 * such.
 *
 * @since 2019/01/05
................................................................................
	/**
	 * {@inheritDoc}
	 * @since 2019/01/05
	 */
	@Override
	public void run()
	{
		throw new todo.TODO();
	}
	
	/**
	 * Creates a new array instance.
	 *
	 * @param __cl The class to create an array of, this is not the component
	 * type.
	 * @param __len The length of the array.
	 * @return The newly created array.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/01/10
	 */
	public final ArrayInstance vmNewArray(String __cl, int __len)
		throws NullPointerException
	{
		return this.vmNewArray(this.status.classloader.loadClass(__cl), __len);
	}
	
	/**
	 * Creates a new array instance.
	 *
	 * @param __cl The class to create an array of, this is not the component
	 * type.
	 * @param __len The length of the array.
	 * @return The newly created array.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/01/10
	 */
	public final ArrayInstance vmNewArray(LoadedClass __cl, int __len)
		throws NullPointerException
	{
		if (__cl == null)
			throw new NullPointerException("NARG");
		
		throw new todo.TODO();
	}
	
	/**
	 * Creates a new instance of the given class.
	 *
	 * @param __cl The class to create an instance of.
	 * @param __desc The constructor method used.
	 * @param __args The arguments to the constructor.
	 * @return The newly constructed instance of the given class.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/01/10
	 */
	public final Instance vmNewInstance(String __cl, String __desc,
		Value... __args)
		throws NullPointerException
	{
		return this.vmNewInstance(this.status.classloader.loadClass(__cl),
			new MethodDescriptor(__desc), __args);
	}
	
	/**
	 * Creates a new instance of the given class.
	 *
	 * @param __cl The class to create an instance of.
	 * @param __desc The constructor method used.
	 * @param __args The arguments to the constructor.
	 * @return The newly constructed instance of the given class.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/01/10
	 */
	public final Instance vmNewInstance(LoadedClass __cl,
		MethodDescriptor __desc, Value... __args)
		throws NullPointerException
	{
		if (__cl == null || __desc == null)
			throw new NullPointerException("NARG");
		
		// Defensive copy
		__args = (__args == null ? new Value[0] : __args.clone());
		
		throw new todo.TODO();
	}
	
	/**
	 * Returns a {@code StaticMethod} to execute the given method.
	 *
	 * @param __static Should a static method be resolved?
	 * @param __cl The class to lookup.
	 * @param __name The method name.
	 * @param __desc The method type.
	 * @return The virtual static method.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/01/10
	 */
	public final Instance vmStaticMethod(boolean __static, String __cl,
		String __name, String __desc)
		throws NullPointerException
	{
		return this.vmStaticMethod(__static,
			this.status.classloader.loadClass(__cl),
			new MethodNameAndType(__name, __desc));
	}
	
	/**
	 * Returns a {@code StaticMethod} to execute the given method.
	 *
	 * @param __static Should a static method be resolved?
	 * @param __cl The class to lookup.
	 * @param __name The method name.
	 * @param __desc The method type.
	 * @return The virtual static method.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/01/10
	 */
	public final Instance vmStaticMethod(boolean __static, LoadedClass __cl,
		String __name, String __desc)
		throws NullPointerException
	{
		return this.vmStaticMethod(__static, __cl,
			new MethodNameAndType(__name, __desc));
	}
	
	/**
	 * Returns a {@code StaticMethod} to execute the given method.
	 *
	 * @param __static Should a static method be resolved?
	 * @param __cl The class to lookup.
	 * @param __nat The method name and type.
	 * @return The virtual static method.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/01/10
	 */
	public final Instance vmStaticMethod(boolean __static, LoadedClass __cl,
		MethodNameAndType __nat)
		throws NullPointerException
	{
		if (__cl == null || __nat == null)
			throw new NullPointerException("NARG");
		
		throw new todo.TODO();
	}
	
	/**
	 * Translates the specified string to an in VM string.
	 *
	 * @param __in The input string.
	 * @return The instance of the string or the associated {@code null}.
	 * @since 2019/01/10
	 */
	public final Instance vmTranslateString(String __in)
	{
		throw new todo.TODO();
	}
}

Added runt/libs/summercoat-vm/cc/squirreljme/vm/summercoat/Type.java.











































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// Multi-Phasic Applications: SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
//     Copyright (C) Multi-Phasic Applications <multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.vm.summercoat;

/**
 * This interface represents a type within the virtual machine.
 *
 * @since 2019/01/10
 */
public interface Type
{
}

Added runt/libs/summercoat-vm/cc/squirreljme/vm/summercoat/Value.java.











































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// Multi-Phasic Applications: SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
//     Copyright (C) Multi-Phasic Applications <multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.vm.summercoat;

/**
 * This interface represents anything which has a value.
 *
 * @since 2019/01/10
 */
public interface Value
{
}

Added runt/libs/tool-scrf/net/multiphasicapps/scrf/RegisterClass.java.













































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// Multi-Phasic Applications: SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
//     Copyright (C) Multi-Phasic Applications <multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package net.multiphasicapps.scrf;

/**
 * This class provides access to and encapsulate the raw SCRF data so that the
 * contained compiled information can easily be read.
 *
 * @since 2019/01/10
 */
public final class RegisterClass
{
}

Added runt/libs/tool-scrf/net/multiphasicapps/scrf/package-info.java.











































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// Multi-Phasic Applications: SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
//     Copyright (C) Multi-Phasic Applications <multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

/**
 * This package contains the definitions and readers for the SummerCoat
 * Register Format, this is a binary and simplified class format which uses
 * registers instead of a stack. This generally should be faster than stack
 * based pure interpreters.
 *
 * @since 2019/01/10
 */

package net.multiphasicapps.scrf;