@@ -84,58 +84,50 @@ protected final Object getObject(Frame frame) {
84
84
return FrameUtil .getObjectSafe (frame , frameSlot );
85
85
}
86
86
87
- @ SuppressWarnings ("unused" )
88
87
protected final boolean isNotIllegal (Frame frame ) {
89
- return frameSlot . getKind ( ) != FrameSlotKind .Illegal ;
88
+ return frame . getFrameDescriptor (). getFrameSlotKind ( frameSlot ) != FrameSlotKind .Illegal ;
90
89
}
91
90
92
- @ SuppressWarnings ("unused" )
93
91
protected final boolean isBooleanKind (Frame frame ) {
94
- return isKind (FrameSlotKind .Boolean );
92
+ return isKind (frame , FrameSlotKind .Boolean );
95
93
}
96
94
97
- @ SuppressWarnings ("unused" )
98
95
protected final boolean isIntegerKind (Frame frame ) {
99
- return isKind (FrameSlotKind .Int );
96
+ return isKind (frame , FrameSlotKind .Int );
100
97
}
101
98
102
- @ SuppressWarnings ("unused" )
103
99
protected final boolean isLongKind (Frame frame ) {
104
- return isKind (FrameSlotKind .Long );
100
+ return isKind (frame , FrameSlotKind .Long );
105
101
}
106
102
107
- @ SuppressWarnings ("unused" )
108
103
protected final boolean isDoubleKind (Frame frame ) {
109
- return isKind (FrameSlotKind .Double );
104
+ return isKind (frame , FrameSlotKind .Double );
110
105
}
111
106
112
- @ SuppressWarnings ("unused" )
113
107
protected final boolean isIntOrObjectKind (Frame frame ) {
114
- return isKind (FrameSlotKind .Int ) || isKind (FrameSlotKind .Object );
108
+ return isKind (frame , FrameSlotKind .Int ) || isKind (frame , FrameSlotKind .Object );
115
109
}
116
110
117
- @ SuppressWarnings ("unused" )
118
111
protected final boolean isLongOrObjectKind (Frame frame ) {
119
- return isKind (FrameSlotKind .Long ) || isKind (FrameSlotKind .Object );
112
+ return isKind (frame , FrameSlotKind .Long ) || isKind (frame , FrameSlotKind .Object );
120
113
}
121
114
122
- @ SuppressWarnings ("unused" )
123
115
protected final boolean isObjectKind (Frame frame ) {
124
- if (frameSlot . getKind ( ) != FrameSlotKind .Object ) {
116
+ if (frame . getFrameDescriptor (). getFrameSlotKind ( frameSlot ) != FrameSlotKind .Object ) {
125
117
CompilerDirectives .transferToInterpreter ();
126
- frameSlot . setKind ( FrameSlotKind .Object );
118
+ frame . getFrameDescriptor (). setFrameSlotKind ( frameSlot , FrameSlotKind .Object );
127
119
}
128
120
return true ;
129
121
}
130
122
131
- private boolean isKind (FrameSlotKind kind ) {
132
- return frameSlot . getKind () == kind || initialSetKind (kind );
123
+ private boolean isKind (Frame frame , FrameSlotKind kind ) {
124
+ return frame . getFrameDescriptor (). getFrameSlotKind ( frameSlot ) == kind || initialSetKind (frame , kind );
133
125
}
134
126
135
- private boolean initialSetKind (FrameSlotKind kind ) {
136
- if (frameSlot . getKind ( ) == FrameSlotKind .Illegal ) {
127
+ private boolean initialSetKind (Frame frame , FrameSlotKind kind ) {
128
+ if (frame . getFrameDescriptor (). getFrameSlotKind ( frameSlot ) == FrameSlotKind .Illegal ) {
137
129
CompilerDirectives .transferToInterpreter ();
138
- frameSlot . setKind ( kind );
130
+ frame . getFrameDescriptor (). setFrameSlotKind ( frameSlot , kind );
139
131
return true ;
140
132
}
141
133
return false ;
0 commit comments