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

Loading…
Cancel
Save