Check-in [c249eafd1f]

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

Overview
Comment:Add print of static field pointer; Clear the percent flag so that formatted strings are printed correctly.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c249eafd1f6745f757fff421a19cc56c50616d76
User & Date: stephanie.gawroriski 2019-06-16 14:12:30
Context
2019-06-16
14:23
Correct bug in the allocator where free chunks were only marked used when they had to be split. check-in: b5598278dd user: stephanie.gawroriski tags: trunk
14:12
Add print of static field pointer; Clear the percent flag so that formatted strings are printed correctly. check-in: c249eafd1f user: stephanie.gawroriski tags: trunk
13:19
Remove exception throwing in JVMFunctions and instead breakpoint if those conditions are met. check-in: 78ebebc5a6 user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

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

41
42
43
44
45
46
47




48
49
50
51
52
53
54
	{
		// Banner for self test
		todo.DEBUG.note("SquirrelJME 0.3.0 Self-Test");
		
		// Could throw any kind of exception
		try
		{




			// I have had a bunch of issues with subsequent jvmLoadString()s
			// failing with calling bad pointers and such. So this is a basic
			// test to ensure that things are working.
			todo.DEBUG.note("%s %s?", "Triple jvmLoadString()?", "Okay!");
		}
		
		// Exception was caught??







>
>
>
>







41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
	{
		// Banner for self test
		todo.DEBUG.note("SquirrelJME 0.3.0 Self-Test");
		
		// Could throw any kind of exception
		try
		{
			// Static field pointer
			todo.DEBUG.code('S', 'P',
				Assembly.specialGetStaticFieldRegister());
			
			// I have had a bunch of issues with subsequent jvmLoadString()s
			// failing with calling bad pointers and such. So this is a basic
			// test to ensure that things are working.
			todo.DEBUG.note("%s %s?", "Triple jvmLoadString()?", "Okay!");
		}
		
		// Exception was caught??

Changes to runt/klib/supervisor/todo/DEBUG.java.

91
92
93
94
95
96
97



98
99
100
101
102
103
104
...
110
111
112
113
114
115
116




117
118
119
120
121
122
123
		{
			// Read character here
			char c = __fmt.charAt(i);
			
			// Handle percent
			if (percent)
			{



				// Plain percent
				if (c == '%')
					DEBUG.__pipe(fd, '%');
				
				// Newline
				else if (c == 'n')
					DEBUG.__pipe(fd, '\n');
................................................................................
					Object av = __args[argp++];
					String sv = (av == null ? "null" : av.toString());
					
					// Pipe through all string characters
					for (int j = 0, q = sv.length(); j < q; j++)
						DEBUG.__pipe(fd, sv.charAt(j));
				}




			}
			
			// Flag percent
			else if (c == '%')
				percent = true;
			
			// Plain character







>
>
>







 







>
>
>
>







91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
...
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
		{
			// Read character here
			char c = __fmt.charAt(i);
			
			// Handle percent
			if (percent)
			{
				// Clear flag
				percent = false;
				
				// Plain percent
				if (c == '%')
					DEBUG.__pipe(fd, '%');
				
				// Newline
				else if (c == 'n')
					DEBUG.__pipe(fd, '\n');
................................................................................
					Object av = __args[argp++];
					String sv = (av == null ? "null" : av.toString());
					
					// Pipe through all string characters
					for (int j = 0, q = sv.length(); j < q; j++)
						DEBUG.__pipe(fd, sv.charAt(j));
				}
				
				// Unknown sequence?
				else
					DEBUG.__pipe(fd, '?');
			}
			
			// Flag percent
			else if (c == '%')
				percent = true;
			
			// Plain character