Check-in [47cee9191d]

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

Overview
Comment:Add JavaStackState.doThrow().
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 47cee9191da8bec2d4bbf79a3b757d8edf310f92
User & Date: stephanie.gawroriski 2019-11-30 20:29:32
Context
2019-11-30
20:34
Print stack traces when a Throwable is made. check-in: ce45e65d52 user: stephanie.gawroriski tags: trunk
20:29
Add JavaStackState.doThrow(). check-in: 47cee9191d user: stephanie.gawroriski tags: trunk
20:12
In Throwable remove __debug(), a hiya appended to a message, and breakpoint on OOM. check-in: 7a4d1e94cc user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/libs/tool-classfile/dev/shadowtail/classfile/xlate/JavaStackState.java.

937
938
939
940
941
942
943











944
945
946
947
948
949
950
		
		// Build
		return new JavaStackResult(this,
			new JavaStackState(this._locals, newstack, newstacktop),
			new JavaStackEnqueueList(enqs.size(), enqs),
			new StateOperations(sops));
	}











	
	/**
	 * Transitions to the given stack state.
	 *
	 * @param __ts The target to transition.
	 * @return The result of the transition and the operations used.
	 * @throws NullPointerException On null arguments.







>
>
>
>
>
>
>
>
>
>
>







937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
		
		// Build
		return new JavaStackResult(this,
			new JavaStackState(this._locals, newstack, newstacktop),
			new JavaStackEnqueueList(enqs.size(), enqs),
			new StateOperations(sops));
	}
	
	/**
	 * Throws a variable from the top of the stack and tosses it.
	 *
	 * @return The result of the throw.
	 * @since 2019/11/30
	 */
	public final JavaStackResult doThrow()
	{
		return this.doStack(1);
	}
	
	/**
	 * Transitions to the given stack state.
	 *
	 * @param __ts The target to transition.
	 * @return The result of the transition and the operations used.
	 * @throws NullPointerException On null arguments.