-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-106706: Streamline family syntax #106716
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 11 commits
294750d
7dc364c
dac8eb5
b05a7f8
47f2491
d499926
6fee03d
d13dbf2
105871c
945f09d
c4ffdc5
b588c72
e091ca3
59dedfe
868ae1b
ae5cd52
843880d
906c8b2
c367600
d31258c
9986c2e
1601141
8ce84bc
ca8147a
58025d6
fd9f8d6
9acddfa
0941a94
c15f572
656c5bc
642cc0e
2dd5049
ea05f4d
178e300
eab1974
1e68564
85cbbed
82a9927
b05e24d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -287,7 +287,7 @@ def test_macro_instruction(): | |
inst(OP3, (unused/5, arg2, left, right -- res)) { | ||
res = op3(arg2, left, right); | ||
} | ||
family(op, INLINE_CACHE_ENTRIES_OP) = { OP, OP3 }; | ||
family(OP, INLINE_CACHE_ENTRIES_OP) = { OP3 }; | ||
""" | ||
output = """ | ||
TARGET(OP1) { | ||
|
@@ -321,13 +321,13 @@ def test_macro_instruction(): | |
_tmp_3 = res; | ||
} | ||
next_instr += 5; | ||
static_assert(INLINE_CACHE_ENTRIES_OP == 5, "incorrect cache size"); | ||
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. It isn't clear to me how/where the INLINE_CACHE_ENTRIES_OP instruction is generated. Changing the test to pass w/o understanding doesn't inspire confidence on my end so any guidance or explanation here is greatly appreciated. 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. It is the second parameter to |
||
STACK_SHRINK(2); | ||
stack_pointer[-1] = _tmp_3; | ||
DISPATCH(); | ||
} | ||
|
||
TARGET(OP3) { | ||
static_assert(INLINE_CACHE_ENTRIES_OP == 5, "incorrect cache size"); | ||
PyObject *right = stack_pointer[-1]; | ||
PyObject *left = stack_pointer[-2]; | ||
PyObject *arg2 = stack_pointer[-3]; | ||
|
Uh oh!
There was an error while loading. Please reload this page.