Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-93429: MergeLOAD_METHOD back intoLOAD_ATTR#93430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
markshannon merged 17 commits intopython:mainfromFidget-Spinner:load_attr_load_method
Jun 14, 2022
Merged
Changes from1 commit
Commits
Show all changes
17 commits
Select commitHold shift + click to select a range
7ea8f66
Merge LOAD_METHOD back into LOAD_ATTR
Fidget-SpinnerJun 2, 2022
51e34f1
📜🤖 Added by blurb_it.
blurb-it[bot]Jun 2, 2022
7e8dd23
Remove LOAD_ATTR_METHOD_MODULE
Fidget-SpinnerJun 2, 2022
c95fb97
Merge branch 'load_attr_load_method' of https://github.com/Fidget-Spi…
Fidget-SpinnerJun 2, 2022
e0eb7ee
Make LOAD_METHOD a virtual instruction
Fidget-SpinnerJun 7, 2022
c912f30
Merge remote-tracking branch 'upstream/main' into load_attr_load_method
Fidget-SpinnerJun 7, 2022
da7fc17
Regen files, add unused field
Fidget-SpinnerJun 7, 2022
65e6aba
Merge specialization code more (stats are still broken)
Fidget-SpinnerJun 7, 2022
a6f9099
Merge remote-tracking branch 'upstream/main' into load_attr_load_method
Fidget-SpinnerJun 7, 2022
b8baebd
fix up stats and comments
Fidget-SpinnerJun 7, 2022
56ea61a
Shrink load method cache
Fidget-SpinnerJun 7, 2022
42340ee
fix formatting
Fidget-SpinnerJun 7, 2022
b0e5b6b
fail automatically when seeing a method
Fidget-SpinnerJun 7, 2022
20b3352
add back METHOD to the switch-case to avoid warnings
Fidget-SpinnerJun 7, 2022
28ddf12
fix a deopt
Fidget-SpinnerJun 8, 2022
6fb980e
PEP 7 nits
Fidget-SpinnerJun 9, 2022
5cc98f2
Apply mark's suggestions
Fidget-SpinnerJun 13, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
fail automatically when seeing a method
  • Loading branch information
@Fidget-Spinner
Fidget-Spinner committedJun 7, 2022
commitb0e5b6b97a0e6abd921cd1b46eaaf7704abef0fb
14 changes: 7 additions & 7 deletionsPython/specialize.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -679,19 +679,19 @@ _Py_Specialize_LoadAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name)
PyObject *descr = NULL;
DescriptorClassification kind = analyze_descriptor(type, name, &descr, 0);
assert(descr != NULL || kind == ABSENT || kind == GETSET_OVERRIDDEN);
if ((oparg & 1) && kind == METHOD) {
if (specialize_attr_loadmethod(owner, instr, name, descr, kind)) {
goto success;
if (kind == METHOD) {
if (oparg & 1) {
if (specialize_attr_loadmethod(owner, instr, name, descr, kind)) {
goto success;
}
}
/* (fail), fall through and let LOAD_ATTR specialize for it */
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_METHOD);
goto fail;
}
switch(kind) {
case OVERRIDING:
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_OVERRIDING_DESCRIPTOR);
goto fail;
case METHOD:
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_METHOD);
goto fail;
case PROPERTY:
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_PROPERTY);
goto fail;
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp