Browse Source

* do nothing for initialising temps in advance for the JVM target as that
happens automatically when required (for constructing arrays/records;
reference counted types don't need special treatment since everything
is garbage collected)

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

Jonas Maebe 14 years ago
parent
commit
89e70f347c
1 changed files with 8 additions and 0 deletions
  1. 8 0
      compiler/jvm/hlcgcpu.pas

+ 8 - 0
compiler/jvm/hlcgcpu.pas

@@ -150,6 +150,9 @@ uses
      protected
      protected
       procedure gen_load_uninitialized_function_result(list: TAsmList; pd: tprocdef; resdef: tdef; const resloc: tcgpara); override;
       procedure gen_load_uninitialized_function_result(list: TAsmList; pd: tprocdef; resdef: tdef; const resloc: tcgpara); override;
 
 
+      procedure inittempvariables(list:TAsmList);override;
+
+
       { in case of an array, the array base address and index have to be
       { in case of an array, the array base address and index have to be
         put on the evaluation stack before the stored value; similarly, for
         put on the evaluation stack before the stored value; similarly, for
         fields the self pointer has to be loaded first. Also checks whether
         fields the self pointer has to be loaded first. Also checks whether
@@ -775,6 +778,11 @@ implementation
       end;
       end;
     end;
     end;
 
 
+  procedure thlcgjvm.inittempvariables(list: TAsmList);
+    begin
+      { these are automatically initialised when allocated if necessary }
+    end;
+
   function thlcgjvm.prepare_stack_for_ref(list: TAsmList; const ref: treference; dup: boolean): longint;
   function thlcgjvm.prepare_stack_for_ref(list: TAsmList; const ref: treference; dup: boolean): longint;
     var
     var
       href: treference;
       href: treference;