Check-in [7a1c68e49d]

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

Overview
Comment:Remove the UniversalAPI and UniversalCallback stuff.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:7a1c68e49d38cca03e7c45901c5e6f4160d1b5ef
User & Date: stephanie.gawroriski 2019-05-23 18:29:57
Context
2019-05-23
23:07
Move memory information to system calls. check-in: d2e5d8e2e9 user: stephanie.gawroriski tags: trunk
18:29
Remove the UniversalAPI and UniversalCallback stuff. check-in: 7a1c68e49d user: stephanie.gawroriski tags: trunk
17:17
Remove DatabaseAccess, it was never used. check-in: aa8e87694a user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Deleted runt/apis/cldc-compact/cc/squirreljme/runtime/cldc/asm/UniversalAPI.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// Multi-Phasic Applications: SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.runtime.cldc.asm;

import cc.squirreljme.runtime.cldc.annotation.Api;
import cc.squirreljme.runtime.cldc.lang.ApiLevel;

/**
 * This class represents universal system calls which are designed to reduce
 * the complexity of the system call interface and reduce the amount of
 * extra handlers that are needed.
 *
 * @since 2019/05/06
 */
public final class UniversalAPI
{
	/**
	 * Not used.
	 *
	 * @since 2019/05/06
	 */
	private UniversalAPI()
	{
	}
	
	/**
	 * Returns the type of packages the VM uses.
	 *
	 * @return The package type.
	 * @since 2019/05/06
	 */
	@Api(ApiLevel.LEVEL_SQUIRRELJME_0_3_0_DEV)
	public static native int packageType();
	
	/**
	 * Performs a universal API call.
	 *
	 * @param __func The function to call.
	 * @param __pkg The API package arguments.
	 * @return The result of the universal call, this will be another package.
	 * @since 2019/05/06
	 */
	@Api(ApiLevel.LEVEL_SQUIRRELJME_0_3_0_DEV)
	public static native Object universalCall(int __func, Object __pkg);
}

<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<










































































































Deleted runt/apis/cldc-compact/cc/squirreljme/runtime/cldc/asm/UniversalAPIFunction.java.

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

package cc.squirreljme.runtime.cldc.asm;

import cc.squirreljme.runtime.cldc.annotation.Api;
import cc.squirreljme.runtime.cldc.lang.ApiLevel;

/**
 * This represents a universal API function by the function index.
 *
 * @since 2019/05/06
 */
public interface UniversalAPIFunction
{
}

<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<














































Deleted runt/apis/cldc-compact/cc/squirreljme/runtime/cldc/asm/UniversalCallback.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
34
35
36
37
38
39
40
41
42
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// Multi-Phasic Applications: SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.runtime.cldc.asm;

import cc.squirreljme.runtime.cldc.annotation.Api;
import cc.squirreljme.runtime.cldc.lang.ApiLevel;

/**
 * This is used when a callback is ever needed by any code.
 *
 * @since 2019/05/06
 */
public final class UniversalCallback
{
	/**
	 * Not used.
	 *
	 * @since 2019/05/06
	 */
	private UniversalCallback()
	{
	}
	
	/**
	 * Handles a universal callback.
	 *
	 * @param __func The function being called.
	 * @param __pkg The API package arguments.
	 * @return The result of the universal call, this will be another package.
	 * @since 2019/05/06
	 */
	@Api(ApiLevel.LEVEL_SQUIRRELJME_0_3_0_DEV)
	public static native Object universalCallback(int __func, Object __pkg);
}

<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<




















































































Deleted runt/apis/cldc-compact/cc/squirreljme/runtime/cldc/asm/UniversalCallbackFunction.java.

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

package cc.squirreljme.runtime.cldc.asm;

/**
 * This represents a universal callback function.
 *
 * @since 2019/05/06
 */
public interface UniversalCallbackFunction
{
}

<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<








































Deleted runt/apis/cldc-compact/cc/squirreljme/runtime/cldc/asm/UniversalPackage.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
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
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// Multi-Phasic Applications: SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.runtime.cldc.asm;

import cc.squirreljme.runtime.cldc.annotation.Api;
import cc.squirreljme.runtime.cldc.lang.ApiLevel;

/**
 * This is used to package API calls which are either {@link Object[]} if they
 * use in-VM boxed types, or {@link int[]} if they consist of raw pointers
 * and such.
 *
 * @since 2019/05/06
 */
public final class UniversalPackage
{
	/** Packaged as boxed values. */
	public static final int PACKAGE_BOXED =
		0;
	
	/** Packaged as integer values. */
	public static final int PACKAGE_INTEGER =
		1;
	
	/** Value packaged as integer. */
	public static final int VALUE_INTEGER =
		0;
	
	/** Value package as long. */
	public static final int VALUE_LONG =
		1;
	
	/** Value packaged as float. */
	public static final int VALUE_FLOAT =
		2;
	
	/** Value packages as double. */
	public static final int VALUE_DOUBLE =
		3;
	
	/** Value packaged as object. */
	public static final int VALUE_OBJECT =
		4;
	
	/** Cached package type used for encoding and decoding. */
	static final int _PACKAGE_TYPE =
		UniversalAPI.packageType();
	
	/**
	 * Not used.
	 *
	 * @since 2019/05/06
	 */
	private UniversalPackage()
	{
	}
	
	/**
	 * Decodes the given package to boxed values.
	 *
	 * @param __pkg The package to decode.
	 * @return The result of the unpackage.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/05/06
	 */
	public static final Object[] decode(Object __pkg)
		throws NullPointerException
	{
		if (__pkg == null)
			throw new NullPointerException("NARG");
		
		throw new todo.TODO();
	}
	
	/**
	 * Encodes the given values to a package.
	 *
	 * @param __args The arguments to package.
	 * @return The resulting package.
	 * @since 2019/05/06
	 */
	public static final Object encode(Object... __args)
	{
		throw new todo.TODO();
	}
}

<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<