#FEATURE by sr
authorsr
Mon, 16 Oct 2017 15:26:15 +0200
changeset 1864 56875e744fee
parent 1863 0af9cae4cecb
child 1865 138c16432f69
#FEATURE by sr class: RegressionTests::Helper class added: #isStcCompiledMethod:inClass:
RegressionTests__Helper.st
--- a/RegressionTests__Helper.st	Mon Oct 16 15:15:55 2017 +0200
+++ b/RegressionTests__Helper.st	Mon Oct 16 15:26:15 2017 +0200
@@ -31,6 +31,17 @@
 
 !Helper class methodsFor:'queries'!
 
+isStcCompiledMethod:aMethod
+    inClass:aClass
+
+    |compiledMethod|
+
+    compiledMethod := aClass compiledMethodAt:aMethod.
+
+    ^ (compiledMethod notNil 
+    and:[compiledMethod byteCode isNil])
+!
+
 packageDirectoryForRegressionTests
     ^ self workDirectory / 'stx' / 'goodies' / 'regression'     
 !