Commit 7db43d37 by Tom Tromey Committed by Tom Tromey

verify.cc (_Jv_BytecodeVerifier::branch_prepass): Skip a short, not a byte.

	* verify.cc (_Jv_BytecodeVerifier::branch_prepass) [op_sipush]:
	Skip a short, not a byte.
	[op_newarray]: Skip a byte, not a short.

From-SVN: r47163
parent 4c6d901a
2001-11-18 Tom Tromey <tromey@redhat.com> 2001-11-18 Tom Tromey <tromey@redhat.com>
* verify.cc (_Jv_BytecodeVerifier::branch_prepass) [op_sipush]:
Skip a short, not a byte.
[op_newarray]: Skip a byte, not a short.
* verify.cc (_Jv_BytecodeVerifier::get_type_val_for_signature): * verify.cc (_Jv_BytecodeVerifier::get_type_val_for_signature):
Added `B' case. Added `B' case.
......
...@@ -1347,7 +1347,6 @@ private: ...@@ -1347,7 +1347,6 @@ private:
break; break;
case op_bipush: case op_bipush:
case op_sipush:
case op_ldc: case op_ldc:
case op_iload: case op_iload:
case op_lload: case op_lload:
...@@ -1361,9 +1360,11 @@ private: ...@@ -1361,9 +1360,11 @@ private:
case op_astore: case op_astore:
case op_arraylength: case op_arraylength:
case op_ret: case op_ret:
case op_newarray:
get_byte (); get_byte ();
break; break;
case op_sipush:
case op_ldc_w: case op_ldc_w:
case op_ldc2_w: case op_ldc2_w:
case op_getstatic: case op_getstatic:
...@@ -1371,7 +1372,6 @@ private: ...@@ -1371,7 +1372,6 @@ private:
case op_putfield: case op_putfield:
case op_putstatic: case op_putstatic:
case op_new: case op_new:
case op_newarray:
case op_anewarray: case op_anewarray:
case op_instanceof: case op_instanceof:
case op_checkcast: case op_checkcast:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment