Check-in [08ccb21a57]

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

Overview
Comment:Debugging.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:08ccb21a5721937a9cc9d87536d416a306d61556
User & Date: stephanie.gawroriski 2019-06-13 23:42:13
Context
2019-06-13
23:59
Protect return values with temporary registers so they are not destroyed during uncounts. check-in: 1e543c9951 user: stephanie.gawroriski tags: trunk
23:42
Debugging. check-in: 08ccb21a57 user: stephanie.gawroriski tags: trunk
23:32
Add a bunch of dubug notes. check-in: 0237b5ee06 user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

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

296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
		
		// Load the string data into bytes
		byte[] bytes = new byte[rawlen];
		for (int i = 0, base = __p + 2; i < rawlen; i++)
			bytes[i] = (byte)Assembly.memReadByte(base, i);
		
		// Initialize and intern string
		String rv = new String(bytes).intern();
		
		// Debug
		todo.DEBUG.code('L', 's', Assembly.objectToPointer(rv));
		
		// Return it
		return rv;
	}
	
	/**
	 * Reads a long value from the given address
	 *
	 * @param __addr The address to access.
	 * @param __off The address offset.







|
<
<
<
<
<
<







296
297
298
299
300
301
302
303






304
305
306
307
308
309
310
		
		// Load the string data into bytes
		byte[] bytes = new byte[rawlen];
		for (int i = 0, base = __p + 2; i < rawlen; i++)
			bytes[i] = (byte)Assembly.memReadByte(base, i);
		
		// Initialize and intern string
		return new String(bytes).intern();






	}
	
	/**
	 * Reads a long value from the given address
	 *
	 * @param __addr The address to access.
	 * @param __off The address offset.