|
154 | 154 | import com.oracle.truffle.api.TruffleLanguage.LanguageReference;
|
155 | 155 | import com.oracle.truffle.api.TruffleLogger;
|
156 | 156 | import com.oracle.truffle.api.dsl.Cached;
|
157 |
| -import com.oracle.truffle.api.dsl.CachedLanguage; |
158 | 157 | import com.oracle.truffle.api.dsl.Cached.Exclusive;
|
| 158 | +import com.oracle.truffle.api.dsl.CachedLanguage; |
159 | 159 | import com.oracle.truffle.api.dsl.Specialization;
|
160 | 160 | import com.oracle.truffle.api.interop.ArityException;
|
161 | 161 | import com.oracle.truffle.api.interop.InteropException;
|
@@ -367,7 +367,8 @@ Object execute(Object[] arguments,
|
367 | 367 | writeAttrNode.execute(module, fun.getName(), method);
|
368 | 368 | }
|
369 | 369 | } catch (UnsupportedMessageException | InvalidArrayIndexException e) {
|
370 |
| - // should not happen since we check if 'legacyMethods' has array elements |
| 370 | + // should not happen since we check if 'legacyMethods' has array |
| 371 | + // elements |
371 | 372 | throw CompilerDirectives.shouldNotReachHere();
|
372 | 373 | }
|
373 | 374 | }
|
@@ -688,7 +689,8 @@ Object execute(Object[] arguments,
|
688 | 689 | }
|
689 | 690 | return context.getNullHandle();
|
690 | 691 | } catch (PException e) {
|
691 |
| - // This function has the same (odd) error behavior as PyDict_GetItem: If an error |
| 692 | + // This function has the same (odd) error behavior as PyDict_GetItem: If an |
| 693 | + // error |
692 | 694 | // occurred, the error is cleared and NULL is returned.
|
693 | 695 | return context.getNullHandle();
|
694 | 696 | }
|
@@ -1493,7 +1495,8 @@ Object execute(Object[] arguments,
|
1493 | 1495 | boolean mustRelease = gil.acquire();
|
1494 | 1496 | try {
|
1495 | 1497 | checkArity(arguments, 2);
|
1496 |
| - // IMPORTANT: this is not stealing the reference. The CPython implementation actually |
| 1498 | + // IMPORTANT: this is not stealing the reference. The CPython implementation |
| 1499 | + // actually |
1497 | 1500 | // increases the reference count by 1.
|
1498 | 1501 | Object resolvedPyObject = asPythonObjectNode.execute(resolveNativeReferenceNode.execute(resolveHandleNode.execute(arguments[1]), false));
|
1499 | 1502 | return asHandleNode.execute(asContextNode.execute(arguments[0]), resolvedPyObject);
|
|
0 commit comments