Преглед изворни кода

* adjust integer type information before stores part of a_op_const_ref for
Dalvik type checker

git-svn-id: branches/jvmbackend@20628 -

Jonas Maebe пре 13 година
родитељ
комит
94bdf8a086
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      compiler/jvm/hlcgcpu.pas

+ 5 - 0
compiler/jvm/hlcgcpu.pas

@@ -1112,6 +1112,11 @@ implementation
       { TODO, here or in peepholeopt: use iinc when possible }
       a_load_ref_stack(list,size,ref,extra_slots);
       a_op_const_stack(list,op,size,a);
+      { for android verifier }
+      if (def2regtyp(size)=R_INTREGISTER) and
+         ((ref.arrayreftype<>art_none) or
+          assigned(ref.symbol)) then
+        resize_stack_int_val(list,size,size,true);
       a_load_stack_ref(list,size,ref,extra_slots);
     end;