harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arc...@apache.org
Subject svn commit: r367108 - /incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/interp.c
Date Sun, 08 Jan 2006 22:30:12 GMT
Author: archie
Date: Sun Jan  8 14:30:10 2006
New Revision: 367108

URL: http://svn.apache.org/viewcvs?rev=367108&view=rev
Log:
- Tiny optimization at method start.
- Fix a couple of comments.

Modified:
    incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/interp.c

Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/interp.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/interp.c?rev=367108&r1=367107&r2=367108&view=diff
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/interp.c (original)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/interp.c Sun Jan
 8 14:30:10 2006
@@ -418,7 +418,7 @@
 	locals = env->sp;
 	env->sp = locals + code->max_locals + code->max_stack;
 
-	/* Check Java stack overflow; release secret space during exception */
+	/* Check Java stack overflow */
 	if (_JC_UNLIKELY(env->sp > env->stack_data_end)) {
 		_jc_post_exception(env, _JC_StackOverflowError);
 		goto fail;
@@ -450,7 +450,8 @@
 	/* Begin execution */
 	ticker = PERIODIC_CHECK_TICKS;
 	sp = locals + code->max_locals;
-	JUMP(code->insns);
+	pc = code->insns;
+	RERUN();
 
 TARGET(aaload)
     {
@@ -2132,7 +2133,7 @@
 	/* Place paramters over top of the stack like _jc_interp() expects */
 	sp = env->sp;
 
-	/* Check Java stack overflow; release secret space during exception */
+	/* Check Java stack overflow */
 	if (sp + 1 + method->code.num_params2 > env->stack_data_end) {
 		_jc_post_exception(env, _JC_StackOverflowError);
 		_jc_throw_exception(env);



Mime
View raw message