Check-in [a41cf59111]

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

Overview
Comment:Remove some debug code.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a41cf59111d23cae44c78fccbfc0a2ea9775d690
User & Date: stephanie.gawroriski 2019-09-12 00:16:18
Context
2019-09-12
07:04
Backup developer notes. check-in: e450239b4e user: squirreljme tags: trunk
00:16
Remove some debug code. check-in: a41cf59111 user: stephanie.gawroriski tags: trunk
2019-09-11
22:59
Correct load of string constant entries (use UsedString); Add get of this name for a class. check-in: 3382ce9d92 user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/libs/tool-classfile/dev/shadowtail/classfile/mini/DualPoolEncoder.java.

146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
...
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
				if (iswide)
					numparts = -numparts;
				
				// Resulting parts and value
				Object value;
				int[] parts = new int[numparts];
				
				// Debug
				todo.DEBUG.note("Entry: ty=%s, np=%d, of=%d(%d), ln=%d",
					etype, numparts, eoff, baseoff + eoff, elen);
				
				// Depends on the type
				switch (etype)
				{
						// String
					case STRING:
						// Read hash code and length
						parts[0] = xd.readUnsignedShort();
................................................................................
						// Unknown
					default:
						throw new todo.OOPS(etype.name());
				}
				
				// Record entry
				entries.add(new BasicPoolEntry(i, value, parts));
				
				// Debug
				todo.DEBUG.note("Entry: ty=%s, np=%d, of=%d(%d), ln=%d --> %s",
					etype, numparts, eoff, baseoff + eoff, elen, value);
			}
			
			// Debug
			todo.DEBUG.note("Entry Count: %d", entries.size());
			
			// Build pool
			BasicPool result = new BasicPool(entries);
			
			// Store pool in the right spot
			if (isruntime)
				runpool = result;
			else







<
<
<
<







 







|
<
<
<
|
<
<
<
<







146
147
148
149
150
151
152




153
154
155
156
157
158
159
...
319
320
321
322
323
324
325
326



327




328
329
330
331
332
333
334
				if (iswide)
					numparts = -numparts;
				
				// Resulting parts and value
				Object value;
				int[] parts = new int[numparts];
				




				// Depends on the type
				switch (etype)
				{
						// String
					case STRING:
						// Read hash code and length
						parts[0] = xd.readUnsignedShort();
................................................................................
						// Unknown
					default:
						throw new todo.OOPS(etype.name());
				}
				
				// Record entry
				entries.add(new BasicPoolEntry(i, value, parts));
			}



			




			// Build pool
			BasicPool result = new BasicPool(entries);
			
			// Store pool in the right spot
			if (isruntime)
				runpool = result;
			else

Changes to runt/libs/tool-classfile/dev/shadowtail/classfile/pool/BasicPool.java.

126
127
128
129
130
131
132
133


134









	 * @since 2019/09/11
	 */
	public final BasicPoolEntry byValue(Object __v)
		throws IndexOutOfBoundsException
	{
		return this._entries.get(__v);
	}
}



















|
>
>
|
>
>
>
>
>
>
>
>
>
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
	 * @since 2019/09/11
	 */
	public final BasicPoolEntry byValue(Object __v)
		throws IndexOutOfBoundsException
	{
		return this._entries.get(__v);
	}
	
	/**
	 * Returns the size of the pool.
	 *
	 * @return The pool size.
	 * @since 2019/09/11
	 */
	public final int size()
	{
		return this._entries.size();
	}
}