Procházet zdrojové kódy

Fixed runtime calls to GarbageCollector.Watch

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@6426 8c9fc860-2736-0410-a75d-ab315db34111
eth.negelef před 9 roky
rodič
revize
869309ccf4
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      source/FoxIntermediateBackend.Mod

+ 2 - 2
source/FoxIntermediateBackend.Mod

@@ -7450,7 +7450,7 @@ TYPE
 						IF needsTrace THEN ModifyAssignments(true) END;
 						IF ~type(SyntaxTree.PointerType).isDisposable THEN
 							Emit(Push(position, pointer));
-							CallThis(position,"GarbageCollector","Watch",1);
+							CallThisChecked(position,"GarbageCollector","Watch",0,FALSE);
 							Emit(Pop(position, pointer));
 						END;
 						Designate(p0,l);
@@ -7642,7 +7642,7 @@ TYPE
 						IF needsTrace THEN ModifyAssignments(true) END;
 						IF ~p0.type.resolved(SyntaxTree.PointerType).isDisposable THEN
 							Emit(Push(position, pointer));
-							CallThis(position,"GarbageCollector","Watch",1);
+							CallThisChecked(position,"GarbageCollector","Watch",0,FALSE);
 							Emit(Pop(position, pointer));
 						END;
 						Designate(p0,l);