-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-109094: replace frame->prev_instr by frame->instr_ptr #109095
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
637b5da
ffb980c
82a5b92
1fc0df1
6bbb1c2
be6d428
bbe8e2c
50a1f3a
4beb50b
8e4a310
58d3bc5
909de93
0a06b75
da6c97b
6488d69
6c684b0
b6a8b0c
1ceeba1
371fa66
557f36f
cb22365
9875704
aea21a6
b2221d1
7078fe5
3ac7cc6
5a672a4
4fd470e
d676f9c
1afba52
8b1643a
a386dee
32b2cfd
add2321
218228b
0d0c25d
4418fc4
e07b415
cb96aa0
729944f
44e37ee
b3b55ee
6f0fe7b
2cf7e94
66005ce
c9a9601
764bd37
30e74de
b63c8da
8bade18
8b14bde
d1387ed
9c10b8d
287c1a5
3639796
41bba62
d363fc3
efa8eab
86cf45f
19da0c0
cbee4f8
3a9a029
a44f4db
62ca8ce
3fa0423
488e5e7
85f08bc
012f911
3fcfc47
d796107
76474e3
3fcbc3a
2043c83
3511bef
6a85588
8ccbe6e
d55f048
b7f86a7
c6d69da
0da356b
0089b30
e1ab25d
3e0b86d
d0b2469
7d15260
2986b9c
91eb2a4
1bd0be3
91dddc0
f3c25b5
6617d60
661dad0
5a5103b
0b68e54
96a996c
8574469
855513a
0cf9ec9
82f9d9d
95b63df
f2d149b
578e266
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -805,7 +805,6 @@ dummy_func( | |
} | ||
|
||
macro(RETURN_VALUE) = | ||
_SET_IP + // Tier 2 only; special-cased oparg | ||
_SAVE_CURRENT_IP + // Sets frame->next_instr_offset | ||
_POP_FRAME; | ||
|
||
|
@@ -830,7 +829,6 @@ dummy_func( | |
|
||
macro(RETURN_CONST) = | ||
LOAD_CONST + | ||
_SET_IP + // Tier 2 only; special-cased oparg | ||
_SAVE_CURRENT_IP + // Sets frame->next_instr_offset | ||
_POP_FRAME; | ||
|
||
|
@@ -3117,7 +3115,6 @@ dummy_func( | |
_CHECK_FUNCTION_EXACT_ARGS + | ||
_CHECK_STACK_SPACE + | ||
_INIT_CALL_PY_EXACT_ARGS + | ||
_SET_IP + // Tier 2 only; special-cased oparg | ||
_SAVE_CURRENT_IP + // Sets frame->next_instr_offset | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems wrong. Maybe add a |
||
_PUSH_FRAME; | ||
|
||
|
@@ -3127,7 +3124,6 @@ dummy_func( | |
_CHECK_FUNCTION_EXACT_ARGS + | ||
_CHECK_STACK_SPACE + | ||
_INIT_CALL_PY_EXACT_ARGS + | ||
_SET_IP + // Tier 2 only; special-cased oparg | ||
_SAVE_CURRENT_IP + // Sets frame->next_instr_offset | ||
_PUSH_FRAME; | ||
|
||
|
@@ -3975,21 +3971,18 @@ dummy_func( | |
} | ||
|
||
op(_SET_IP, (--)) { | ||
TIER_TWO_ONLY | ||
frame->instr_ptr = ip_offset + oparg; | ||
} | ||
|
||
op(_SAVE_CURRENT_IP, (--)) { | ||
iritkatriel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#if TIER_ONE | ||
TIER_ONE_ONLY | ||
if (frame->next_instr_offset == 0) { | ||
frame->next_instr_offset = next_instr - frame->instr_ptr; | ||
C375 } | ||
else { | ||
assert(next_instr == frame->instr_ptr); | ||
} | ||
iritkatriel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#endif | ||
#if TIER_TWO | ||
// Relies on a preceding _SET_IP | ||
#endif | ||
} | ||
|
||
op(_EXIT_TRACE, (--)) { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.