fixed array of doubles

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@313 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 3a2d077de0
commit a86862df6d
  1. 7
      jode/jode/flow/CreateConstantArray.java

@ -27,8 +27,8 @@ public class CreateConstantArray {
public static boolean transform(InstructionContainer ic,
StructuredBlock last) {
/* Situation:
* PUSH new Array[]
* DUP
* PUSH new Array[] // or a constant array operator.
* DUP // duplicate array reference
* PUSH index
* PUSH value
* stack_2[stack_1] = stack_0
@ -67,8 +67,7 @@ public class CreateConstantArray {
if (!indexOp.getType().isOfType(Type.tUInt)
|| dup.type != SpecialBlock.DUP
|| dup.depth != 0
|| dup.count != store.getLValueType().stackSize()
|| dup.depth != 0 || dup.count != 1
|| !(sequBlock.subBlocks[0] instanceof InstructionBlock))
return false;

Loading…
Cancel
Save