File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 184
184
import com .oracle .graal .python .runtime .exception .PException ;
185
185
import com .oracle .graal .python .runtime .exception .PythonErrorType ;
186
186
import com .oracle .graal .python .runtime .object .PythonObjectFactory ;
187
- import com .oracle .graal .python .runtime .sequence .storage .BasicSequenceStorage ;
188
187
import com .oracle .graal .python .runtime .sequence .storage .MroSequenceStorage ;
189
- import com .oracle .graal .python .runtime .sequence .storage .ObjectSequenceStorage ;
190
188
import com .oracle .graal .python .util .ComparisonOp ;
191
189
import com .oracle .graal .python .util .Function ;
192
190
import com .oracle .graal .python .util .PythonUtils ;
216
214
import com .oracle .truffle .api .interop .UnsupportedTypeException ;
217
215
import com .oracle .truffle .api .library .CachedLibrary ;
218
216
import com .oracle .truffle .api .nodes .Node ;
219
- import com .oracle .truffle .api .object .DynamicObject ;
220
- import com .oracle .truffle .api .object .DynamicObjectLibrary ;
221
217
import com .oracle .truffle .api .profiles .InlinedBranchProfile ;
222
218
import com .oracle .truffle .api .profiles .InlinedConditionProfile ;
223
- import com .oracle .truffle .api .profiles .InlinedLoopConditionProfile ;
224
219
import com .oracle .truffle .api .source .Source ;
225
220
import com .oracle .truffle .api .strings .TruffleString ;
226
221
import com .oracle .truffle .api .strings .TruffleString .Encoding ;
Original file line number Diff line number Diff line change @@ -1250,6 +1250,7 @@ protected boolean needsTransfer() {
1250
1250
1251
1251
@ Specialization
1252
1252
Object doNative (PythonAbstractNativeObject obj ,
1253
+ @ Bind ("this" ) Node inliningTarget ,
1253
1254
@ CachedLibrary (limit = "2" ) InteropLibrary lib ,
1254
1255
@ Cached InlinedBranchProfile inlinedBranchProfile ,
1255
1256
@ Cached UpdateRefNode updateRefNode ) {
@@ -1268,11 +1269,11 @@ Object doNative(PythonAbstractNativeObject obj,
1268
1269
* the replicated native references.
1269
1270
*/
1270
1271
if (newRefcnt == MANAGED_REFCNT + 1 && obj .getReplicatedNativeReferences () != null ) {
1271
- inlinedBranchProfile .enter (this );
1272
+ inlinedBranchProfile .enter (inliningTarget );
1272
1273
for (Object referent : obj .getReplicatedNativeReferences ()) {
1273
1274
if (referent instanceof PythonObject pythonObject ) {
1274
1275
PythonAbstractObjectNativeWrapper nativeWrapper = pythonObject .getNativeWrapper ();
1275
- updateRefNode .execute (this , nativeWrapper , nativeWrapper .getRefCount ());
1276
+ updateRefNode .execute (inliningTarget , nativeWrapper , nativeWrapper .getRefCount ());
1276
1277
}
1277
1278
}
1278
1279
}
You can’t perform that action at this time.
0 commit comments