overwrite parameter and use only one local

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@471 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent f06681c378
commit 6895f071d3
  1. 18
      jode/test/ObfuscateStrings.j

@ -6,7 +6,7 @@
.super java/lang/Object .super java/lang/Object
.method private static obf(Ljava/lang/String;)Ljava/lang/String; .method private static obf(Ljava/lang/String;)Ljava/lang/String;
.limit locals 2 .limit locals 1
.limit stack 7 .limit stack 7
aload_0 aload_0
invokevirtual java/lang/String/toCharArray()[C invokevirtual java/lang/String/toCharArray()[C
@ -20,7 +20,7 @@ loopstart:
; char array ; char array
dup_x1 dup_x1
swap swap
iload_1 iload_0
swap swap
ldc 0x7fffffff ldc 0x7fffffff
iand iand
@ -72,8 +72,8 @@ firstloop:
swap swap
dup_x1 dup_x1
istore_1 istore_0
iinc 1 1 iinc 0 1
castore castore
;stack content: ;stack content:
@ -84,7 +84,7 @@ firstloop:
swap swap
dup dup
arraylength arraylength
iload_1 iload_0
if_icmpne loopstart if_icmpne loopstart
new java/lang/String new java/lang/String
@ -96,12 +96,12 @@ firstloop:
.end method .end method
.method private static obf2(Ljava/lang/String;)Ljava/lang/String; .method private static obf2(Ljava/lang/String;)Ljava/lang/String;
.limit locals 2 .limit locals 1
.limit stack 8 .limit stack 8
aload_0 aload_0
invokevirtual java/lang/String/toCharArray()[C invokevirtual java/lang/String/toCharArray()[C
ldc 0x12345678 ldc 0x12345678
istore_1 istore_0
iconst_0 iconst_0
loop: loop:
@ -122,7 +122,7 @@ loop:
; current index ; current index
; original char ; original char
iload_1 iload_0
ldc 0x7fffffff ldc 0x7fffffff
iand iand
@ -131,7 +131,7 @@ loop:
imul imul
sipush 12345 sipush 12345
iadd iadd
istore_1 istore_0
sipush 0xff sipush 0xff
iand iand
ixor ixor

Loading…
Cancel
Save