Ver código fonte

* don't decrease the evaluation stack counter twice for a_load_*_ref

git-svn-id: branches/jvmbackend@18356 -
Jonas Maebe 14 anos atrás
pai
commit
9bd753ba7a
1 arquivos alterados com 0 adições e 2 exclusões
  1. 0 2
      compiler/jvm/hlcgcpu.pas

+ 0 - 2
compiler/jvm/hlcgcpu.pas

@@ -664,7 +664,6 @@ implementation
       extra_slots:=prepare_stack_for_ref(list,ref,false);
       a_load_const_stack(list,tosize,a,def2regtyp(tosize));
       a_load_stack_ref(list,tosize,ref,extra_slots);
-      decstack(list,extra_slots);
     end;
 
   procedure thlcgjvm.a_load_reg_ref(list: TAsmList; fromsize, tosize: tdef; register: tregister; const ref: treference);
@@ -674,7 +673,6 @@ implementation
       extra_slots:=prepare_stack_for_ref(list,ref,false);
       a_load_reg_stack(list,fromsize,register);
       a_load_stack_ref(list,tosize,ref,extra_slots);
-      decstack(list,extra_slots);
     end;
 
   procedure thlcgjvm.a_load_reg_reg(list: TAsmList; fromsize, tosize: tdef; reg1, reg2: tregister);