File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/call Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 51
51
import com .oracle .graal .python .runtime .PythonContext .PythonThreadState ;
52
52
import com .oracle .truffle .api .Assumption ;
53
53
import com .oracle .truffle .api .RootCallTarget ;
54
- import com .oracle .truffle .api .Truffle ;
55
54
import com .oracle .truffle .api .dsl .Cached ;
56
55
import com .oracle .truffle .api .dsl .Cached .Shared ;
57
56
import com .oracle .truffle .api .dsl .GenerateUncached ;
60
59
import com .oracle .truffle .api .frame .VirtualFrame ;
61
60
import com .oracle .truffle .api .nodes .IndirectCallNode ;
62
61
import com .oracle .truffle .api .profiles .ConditionProfile ;
62
+ import com .oracle .truffle .api .utilities .NeverValidAssumption ;
63
63
64
64
@ GenerateUncached
65
65
public abstract class GenericInvokeNode extends InvokeNode {
66
- private static final Assumption invalid = Truffle .getRuntime ().createAssumption ();
67
- static {
68
- invalid .invalidate ();
69
- }
70
66
71
67
public static GenericInvokeNode create () {
72
68
return GenericInvokeNodeGen .create ();
@@ -81,12 +77,12 @@ protected GenericInvokeNode() {
81
77
82
78
@ Override
83
79
public Assumption needNotPassExceptionAssumption () {
84
- return invalid ;
80
+ return NeverValidAssumption . INSTANCE ;
85
81
}
86
82
87
83
@ Override
88
84
public Assumption needNotPassFrameAssumption () {
89
- return invalid ;
85
+ return NeverValidAssumption . INSTANCE ;
90
86
}
91
87
92
88
/**
You can’t perform that action at this time.
0 commit comments