--- a/ObjMem.st Sun Nov 01 16:59:12 1998 +0100
+++ b/ObjMem.st Thu Nov 05 13:36:55 1998 +0100
@@ -26,6 +26,7 @@
ImageName ImageSaveTime ChangeFileName MaxInterruptLatency
InterruptLatencyGoal VMSelectors DynamicCodeGCTrigger
DynamicCodeLimit JustInTimeCompilationEnabled
+ JavaJustInTimeCompilationEnabled JavaNativeCodeOptimization
BackgroundCollectMaximumInterval'
poolDictionaries:''
category:'System-Support'
@@ -3554,6 +3555,82 @@
"
!
+javaJustInTimeCompilation
+ "return the value of the java-just-in-time-compilation flag"
+
+%{ /* NOCONTEXT */
+ extern int __javaJustInTimeCompilation();
+
+ RETURN (__javaJustInTimeCompilation(-1) ? true : false);
+%}
+ "
+ ObjectMemory javaJustInTimeCompilation
+ "
+
+!
+
+javaJustInTimeCompilation:aBoolean
+ "enable/disable java just-in-time-compilation."
+
+ aBoolean notNil ifTrue:[
+ JavaJustInTimeCompilationEnabled := aBoolean.
+ ].
+
+%{ /* NOCONTEXT */
+ extern int __javaJustInTimeCompilation();
+ int prev;
+
+ prev = __javaJustInTimeCompilation(aBoolean == true
+ ? 1
+ : (aBoolean == false)
+ ? 0
+ : -1);
+ RETURN (prev ? true : false);
+%}.
+ "
+ ObjectMemory javaJustInTimeCompilation:true
+ ObjectMemory javaJustInTimeCompilation:false
+ "
+!
+
+javaNativeCodeOptimization
+ "return the value of the java-native-code-optimization flag"
+
+%{ /* NOCONTEXT */
+ extern int __javaNativeCodeOptimization();
+
+ RETURN (__javaNativeCodeOptimization(-1) ? true : false);
+%}
+ "
+ ObjectMemory javaNativeCodeOptimization
+ "
+
+!
+
+javaNativeCodeOptimization:aBoolean
+ "enable/disable java native code-optimization."
+
+ aBoolean notNil ifTrue:[
+ JavaNativeCodeOptimization := aBoolean.
+ ].
+
+%{ /* NOCONTEXT */
+ extern int __javaNativeCodeOptimization();
+ int prev;
+
+ prev = __javaNativeCodeOptimization(aBoolean == true
+ ? 1
+ : (aBoolean == false)
+ ? 0
+ : -1);
+ RETURN (prev ? true : false);
+%}.
+ "
+ ObjectMemory javaNativeCodeOptimization:true
+ ObjectMemory javaNativeCodeOptimization:false
+ "
+!
+
justInTimeCompilation
"return the value of the just-in-time-compilation flag"
@@ -4920,6 +4997,6 @@
!ObjectMemory class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/Attic/ObjMem.st,v 1.174 1998-10-19 21:11:23 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/Attic/ObjMem.st,v 1.175 1998-11-05 12:36:55 cg Exp $'
! !
ObjectMemory initialize!
--- a/ObjectMemory.st Sun Nov 01 16:59:12 1998 +0100
+++ b/ObjectMemory.st Thu Nov 05 13:36:55 1998 +0100
@@ -26,6 +26,7 @@
ImageName ImageSaveTime ChangeFileName MaxInterruptLatency
InterruptLatencyGoal VMSelectors DynamicCodeGCTrigger
DynamicCodeLimit JustInTimeCompilationEnabled
+ JavaJustInTimeCompilationEnabled JavaNativeCodeOptimization
BackgroundCollectMaximumInterval'
poolDictionaries:''
category:'System-Support'
@@ -3554,6 +3555,82 @@
"
!
+javaJustInTimeCompilation
+ "return the value of the java-just-in-time-compilation flag"
+
+%{ /* NOCONTEXT */
+ extern int __javaJustInTimeCompilation();
+
+ RETURN (__javaJustInTimeCompilation(-1) ? true : false);
+%}
+ "
+ ObjectMemory javaJustInTimeCompilation
+ "
+
+!
+
+javaJustInTimeCompilation:aBoolean
+ "enable/disable java just-in-time-compilation."
+
+ aBoolean notNil ifTrue:[
+ JavaJustInTimeCompilationEnabled := aBoolean.
+ ].
+
+%{ /* NOCONTEXT */
+ extern int __javaJustInTimeCompilation();
+ int prev;
+
+ prev = __javaJustInTimeCompilation(aBoolean == true
+ ? 1
+ : (aBoolean == false)
+ ? 0
+ : -1);
+ RETURN (prev ? true : false);
+%}.
+ "
+ ObjectMemory javaJustInTimeCompilation:true
+ ObjectMemory javaJustInTimeCompilation:false
+ "
+!
+
+javaNativeCodeOptimization
+ "return the value of the java-native-code-optimization flag"
+
+%{ /* NOCONTEXT */
+ extern int __javaNativeCodeOptimization();
+
+ RETURN (__javaNativeCodeOptimization(-1) ? true : false);
+%}
+ "
+ ObjectMemory javaNativeCodeOptimization
+ "
+
+!
+
+javaNativeCodeOptimization:aBoolean
+ "enable/disable java native code-optimization."
+
+ aBoolean notNil ifTrue:[
+ JavaNativeCodeOptimization := aBoolean.
+ ].
+
+%{ /* NOCONTEXT */
+ extern int __javaNativeCodeOptimization();
+ int prev;
+
+ prev = __javaNativeCodeOptimization(aBoolean == true
+ ? 1
+ : (aBoolean == false)
+ ? 0
+ : -1);
+ RETURN (prev ? true : false);
+%}.
+ "
+ ObjectMemory javaNativeCodeOptimization:true
+ ObjectMemory javaNativeCodeOptimization:false
+ "
+!
+
justInTimeCompilation
"return the value of the just-in-time-compilation flag"
@@ -4920,6 +4997,6 @@
!ObjectMemory class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/ObjectMemory.st,v 1.174 1998-10-19 21:11:23 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/ObjectMemory.st,v 1.175 1998-11-05 12:36:55 cg Exp $'
! !
ObjectMemory initialize!