From a3c6698ccc0d0963d77b43b3e3f0c615594ba962 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 20 Jul 1999 16:14:30 +0000 Subject: [PATCH] Example for the remove pop analyzer git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1104 379699f6-c40d-0410-875b-85095c16579e --- jode/test/RemovePopExample.j | 70 ++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 jode/test/RemovePopExample.j diff --git a/jode/test/RemovePopExample.j b/jode/test/RemovePopExample.j new file mode 100644 index 0000000..bd131e2 --- /dev/null +++ b/jode/test/RemovePopExample.j @@ -0,0 +1,70 @@ +.class public RemovePopExample +.super java/lang/Object + +.field private sng I +.field private dlb J +.field private obj Ljava/lang/Object; + +.method ()V + .limit locals 1 + .limit stack 1 + aload_0 + invokespecial java/lang/Object/()V + return +.end method + +.method singlePop()V + .limit locals 3 + .limit stack 20 + + iconst_0 + istore 0 + + iconst_0 + pop + dconst_0 + pop2 + + iload_0 + pop + + aconst_null + iconst_0 + iaload + pop + + iconst_0 + dup + pop + + dup + istore_0 + pop + + lconst_1 + iconst_0 + dup_x2 + lshl + lstore_1 + pop + + iload_0 + iconst_4 + dup_x1 + pop + pop2 + + iconst_4 + lload_1 + dup2 + pop2 + + dup2_x1 + lstore_1 + istore_0 + pop2 + + return + +.end method +