Selaa lähdekoodia

+ generic set handling

carl 23 vuotta sitten
vanhempi
commit
2091014e89
2 muutettua tiedostoa jossa 15 lisäystä ja 5 poistoa
  1. 5 2
      compiler/ncgset.pas
  2. 10 3
      compiler/nset.pas

+ 5 - 2
compiler/ncgset.pas

@@ -27,7 +27,7 @@ unit ncgset;
 interface
 interface
 
 
     uses
     uses
-       node,nset,cpubase,cginfo,cgbase,cgobj,aasm;
+       node,nset,cpubase,cginfo,cgbase,cgobj,aasmbase,aasmtai;
 
 
     type
     type
        tcgsetelementnode = class(tsetelementnode)
        tcgsetelementnode = class(tsetelementnode)
@@ -586,7 +586,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2002-07-01 16:23:53  peter
+  Revision 1.3  2002-07-06 20:19:25  carl
+  + generic set handling
+
+  Revision 1.2  2002/07/01 16:23:53  peter
     * cg64 patch
     * cg64 patch
     * basics for currency
     * basics for currency
     * asnode updates for class and interface (not finished)
     * asnode updates for class and interface (not finished)

+ 10 - 3
compiler/nset.pas

@@ -269,11 +269,15 @@ implementation
       end;
       end;
 
 
 
 
+    { Warning : This is the first pass for the generic version }
+    { the only difference is mainly the result location which  }
+    { is changed, compared to the i386 version.                }
+    { ALSO REGISTER ALLOC IS WRONG?                            }
     function tinnode.pass_1 : tnode;
     function tinnode.pass_1 : tnode;
       begin
       begin
          result:=nil;
          result:=nil;
-         location.loc:=LOC_FLAGS;
-
+         location.loc:=LOC_REGISTER;
+         
          firstpass(right);
          firstpass(right);
          firstpass(left);
          firstpass(left);
          if codegenerror then
          if codegenerror then
@@ -574,7 +578,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.25  2002-07-01 18:46:24  peter
+  Revision 1.26  2002-07-06 20:19:25  carl
+  + generic set handling
+
+  Revision 1.25  2002/07/01 18:46:24  peter
     * internal linker
     * internal linker
     * reorganized aasm layer
     * reorganized aasm layer