Commit 8a832a0
committed
Refactor according to gates.
- Fix: `IsNotTypeSlot` check in `PyObjectLookupAttr` contained a boolean logic error which led to viewing every attribute
not named "mro" as a non-type-slot attribute. It has now been converted into the easier readable `IsTypeSlot`.
- Update: For the comparison to the string constant marker `NOT_SET` an object identity check is applicable (as argued
in previous commits), the `Object.equals()` check which implements this without the compiler warning of a String comparison
with `==` needs to be moved behind a Truffle boundary.1 parent e091a56 commit 8a832a0
File tree
3 files changed
+10
-7
lines changed- graalpython/com.oracle.graal.python/src/com/oracle/graal/python
- builtins/modules/csv
- lib
- util
3 files changed
+10
-7
lines changedLines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
205 | | - | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | | - | |
| 546 | + | |
547 | 547 | | |
548 | | - | |
549 | 548 | | |
550 | 549 | | |
551 | 550 | | |
| |||
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 125 | + | |
| 126 | + | |
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
| |||
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
182 | | - | |
| 181 | + | |
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
589 | 594 | | |
590 | 595 | | |
591 | 596 | | |
| |||
0 commit comments