Check-in [3dea657674]

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

Overview
Comment:Define API for obtaining the call stack.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:3dea657674028e514b5fe339200299dae806e926
User & Date: stephanie.gawroriski 2019-06-16 22:40:47
Context
2019-06-16
23:01
Base for new way to do call traces via the system call interface. check-in: 335466fed4 user: stephanie.gawroriski tags: trunk
22:40
Define API for obtaining the call stack. check-in: 3dea657674 user: stephanie.gawroriski tags: trunk
20:16
Add exception handler catch all in the bootstrap. check-in: d365f39ae5 user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added runt/apis/cldc-compact/cc/squirreljme/jvm/CallStackItem.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
// -*- 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.jvm;

/**
 * This represents a single item within the call stack request.
 *
 * @since 2019/06/16
 */
public interface CallStackItem
{
	/** The class name. */
	public static final short CLASS_NAME =
		0;
	
	/** The method name. */
	public static final short METHOD_NAME
		1;
	
	/** The method type. */
	public static final short METHOD_TYPE =
		2;
	
	/** Source line. */
	public static final short SOURCE_LINE =
		3;
	
	/** The PC address. */
	public static final short PC_ADDRESS =
		4;
	
	/** Java operation. */
	public static final short JAVA_OPERATION =
		5;
	
	/** Java PC address. */
	public static final short JAVA_PC_ADDRESS =
		6;
	
	/** The number of supported items. */
	public static final short NUM_ITEMS =
		7;
}

Changes to runt/apis/cldc-compact/cc/squirreljme/jvm/SystemCallIndex.java.

87
88
89
90
91
92
93








94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
	/** Set memory. */
	public static final short MEM_SET =
		17;
	
	/** Set memory but in 4-byte pattern. */
	public static final short MEM_SET_INT =
		18;








	
	/** System call count. */
	public static final short NUM_SYSCALLS =
		19;
	
	/**
	 * Not used.
	 *
	 * @since 2019/05/23
	 */
	private SystemCallIndex()
	{
	}
}








>
>
>
>
>
>
>
>



|











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
	/** Set memory. */
	public static final short MEM_SET =
		17;
	
	/** Set memory but in 4-byte pattern. */
	public static final short MEM_SET_INT =
		18;
	
	/** Get the height of the call stack. */
	public static final short CALL_STACK_HEIGHT =
		19;
	
	/** Gets the specified call stack item. */
	public static final short CALL_STACK_ITEM =
		20;
	
	/** System call count. */
	public static final short NUM_SYSCALLS =
		21;
	
	/**
	 * Not used.
	 *
	 * @since 2019/05/23
	 */
	private SystemCallIndex()
	{
	}
}

Added runt/klib/supervisor/cc/squirreljme/jvm/CallStackItem.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
// -*- 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.jvm;

/**
 * This represents a single item within the call stack request.
 *
 * @since 2019/06/16
 */
public interface CallStackItem
{
	/** The class name. */
	public static final short CLASS_NAME =
		0;
	
	/** The method name. */
	public static final short METHOD_NAME
		1;
	
	/** The method type. */
	public static final short METHOD_TYPE =
		2;
	
	/** Source line. */
	public static final short SOURCE_LINE =
		3;
	
	/** The PC address. */
	public static final short PC_ADDRESS =
		4;
	
	/** Java operation. */
	public static final short JAVA_OPERATION =
		5;
	
	/** Java PC address. */
	public static final short JAVA_PC_ADDRESS =
		6;
	
	/** The number of supported items. */
	public static final short NUM_ITEMS =
		7;
}

Changes to runt/klib/supervisor/cc/squirreljme/jvm/SystemCallIndex.java.

87
88
89
90
91
92
93








94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
	/** Set memory. */
	public static final short MEM_SET =
		17;
	
	/** Set memory but in 4-byte pattern. */
	public static final short MEM_SET_INT =
		18;








	
	/** System call count. */
	public static final short NUM_SYSCALLS =
		19;
	
	/**
	 * Not used.
	 *
	 * @since 2019/05/23
	 */
	private SystemCallIndex()
	{
	}
}








>
>
>
>
>
>
>
>



|











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
	/** Set memory. */
	public static final short MEM_SET =
		17;
	
	/** Set memory but in 4-byte pattern. */
	public static final short MEM_SET_INT =
		18;
	
	/** Get the height of the call stack. */
	public static final short CALL_STACK_HEIGHT =
		19;
	
	/** Gets the specified call stack item. */
	public static final short CALL_STACK_ITEM =
		20;
	
	/** System call count. */
	public static final short NUM_SYSCALLS =
		21;
	
	/**
	 * Not used.
	 *
	 * @since 2019/05/23
	 */
	private SystemCallIndex()
	{
	}
}