JavaMethod.st
changeset 3419 aa30aeb2ee07
parent 3324 a58245c0e83a
child 3466 5c317b796c61
--- a/JavaMethod.st	Fri Mar 27 16:10:51 2015 +0000
+++ b/JavaMethod.st	Thu Apr 02 09:03:01 2015 +0100
@@ -20,6 +20,8 @@
 "
 "{ Package: 'stx:libjava' }"
 
+"{ NameSpace: Smalltalk }"
+
 CompiledCode variableSubclass:#JavaMethod
 	instanceVariableNames:'accessFlags selector javaClass descriptor signature lookupObject
 		lineNumberTable localVariableTable source annotations'
@@ -2332,26 +2334,6 @@
 
 !JavaMethod methodsFor:'queries'!
 
-canBeUpdatedFrom: anotherMethod
-    "Return if receiver can be updated from given method, i.e., if it is safe
-     to just to take anotherMethod's bytecode. Used to implement fix & restart
-     workflow"
-
-    "/ Allready jitted method cannot be updated - no way to restart existing context into
-    "/ new code
-    self code notNil ifTrue:[ ^ false ].
-
-    "/ Args and their types must match
-    selector ~~ anotherMethod selector ifTrue: [ ^ false ].
-
-    "/ max stack depth must be smaller or equal of the current
-    (self numVars + self stackSize) < (anotherMethod numVars + anotherMethod stackSize) ifTrue:[ ^ false ].
-
-    ^true
-
-    "Created: / 18-04-2013 / 23:43:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-!
-
 handlerFor:anException at:pc
     "return an exceptionHandlers pc, for an exception of the given type,
      occurring at pc. Returns nil, if there is none."