Check-in [0237b5ee06]

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

Overview
Comment:Add a bunch of dubug notes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:0237b5ee065843a15859dfee80758a74a8d9df48
User & Date: stephanie.gawroriski 2019-06-13 23:32:50
Context
2019-06-13
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
23:21
Add test object. check-in: 0bb57d8e72 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
...
406
407
408
409
410
411
412



413
414
415
416
417
418
419
...
456
457
458
459
460
461
462



463
464
465
466
467
468
469
		
		// 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.
................................................................................
		
		// Write class information with an initial count of one
		Assembly.memWriteInt(rv, Constants.OBJECT_CLASS_OFFSET,
			__cl);
		Assembly.memWriteInt(rv, Constants.OBJECT_COUNT_OFFSET,
			1);
		



		// Use this pointer
		return rv;
	}
	
	/**
	 * Allocates a new array.
	 *
................................................................................
			__at);
		Assembly.memWriteInt(rv, Constants.OBJECT_COUNT_OFFSET,
			1);
		
		// Write length of array
		Assembly.memWriteInt(rv, Constants.ARRAY_LENGTH_OFFSET,
			__len);



		
		// Use this pointer
		return rv;
	}
	
	/**
	 * If this is an invoked then it just throws an exception to indicate that







|
>
>
>
>
>
>







 







>
>
>







 







>
>
>







296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
...
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
...
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
		
		// 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.
................................................................................
		
		// Write class information with an initial count of one
		Assembly.memWriteInt(rv, Constants.OBJECT_CLASS_OFFSET,
			__cl);
		Assembly.memWriteInt(rv, Constants.OBJECT_COUNT_OFFSET,
			1);
		
		// Debug
		todo.DEBUG.code('N', 'E', rv);
		
		// Use this pointer
		return rv;
	}
	
	/**
	 * Allocates a new array.
	 *
................................................................................
			__at);
		Assembly.memWriteInt(rv, Constants.OBJECT_COUNT_OFFSET,
			1);
		
		// Write length of array
		Assembly.memWriteInt(rv, Constants.ARRAY_LENGTH_OFFSET,
			__len);
			
		// Debug
		todo.DEBUG.code('N', 'A', rv);
		
		// Use this pointer
		return rv;
	}
	
	/**
	 * If this is an invoked then it just throws an exception to indicate that