added a separate query for justInTimeCompilation
authorClaus Gittinger <cg@exept.de>
Fri, 08 Nov 1996 23:32:18 +0100
changeset 1947 7ef53563e2f9
parent 1946 370f57e569dc
child 1948 ca8c3f2f5374
added a separate query for justInTimeCompilation
ObjMem.st
ObjectMemory.st
--- a/ObjMem.st	Fri Nov 08 23:07:17 1996 +0100
+++ b/ObjMem.st	Fri Nov 08 23:32:18 1996 +0100
@@ -2664,8 +2664,22 @@
 %}
 !
 
+justInTimeCompilation
+    "return the value of the just-in-time-compilation flag"
+
+%{  /* NOCONTEXT */
+    extern int __justInTimeCompilation();
+
+    RETURN (__justInTimeCompilation(-1) ? true : false);
+%}
+    "
+     ObjectMemory justInTimeCompilation
+    "
+
+!
+
 justInTimeCompilation:aBoolean
-    "enable/disable just-in-time-compilation. Returns the previous setting."
+    "enable/disable just-in-time-compilation."
 
     aBoolean notNil ifTrue:[
         JustInTimeCompilationEnabled := aBoolean.
@@ -2685,7 +2699,6 @@
     "
      ObjectMemory justInTimeCompilation:true
      ObjectMemory justInTimeCompilation:false
-     ObjectMemory justInTimeCompilation:nil
     "
 
 !
@@ -3854,6 +3867,6 @@
 !ObjectMemory class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Attic/ObjMem.st,v 1.122 1996-11-08 18:39:45 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Attic/ObjMem.st,v 1.123 1996-11-08 22:32:18 cg Exp $'
 ! !
 ObjectMemory initialize!
--- a/ObjectMemory.st	Fri Nov 08 23:07:17 1996 +0100
+++ b/ObjectMemory.st	Fri Nov 08 23:32:18 1996 +0100
@@ -2664,8 +2664,22 @@
 %}
 !
 
+justInTimeCompilation
+    "return the value of the just-in-time-compilation flag"
+
+%{  /* NOCONTEXT */
+    extern int __justInTimeCompilation();
+
+    RETURN (__justInTimeCompilation(-1) ? true : false);
+%}
+    "
+     ObjectMemory justInTimeCompilation
+    "
+
+!
+
 justInTimeCompilation:aBoolean
-    "enable/disable just-in-time-compilation. Returns the previous setting."
+    "enable/disable just-in-time-compilation."
 
     aBoolean notNil ifTrue:[
         JustInTimeCompilationEnabled := aBoolean.
@@ -2685,7 +2699,6 @@
     "
      ObjectMemory justInTimeCompilation:true
      ObjectMemory justInTimeCompilation:false
-     ObjectMemory justInTimeCompilation:nil
     "
 
 !
@@ -3854,6 +3867,6 @@
 !ObjectMemory class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/ObjectMemory.st,v 1.122 1996-11-08 18:39:45 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ObjectMemory.st,v 1.123 1996-11-08 22:32:18 cg Exp $'
 ! !
 ObjectMemory initialize!