These are chat archives for dropbox/pyston
test_intissue. I made some modification, but encounter a test error:
statcheck: noninit_count('slowpath_runtimecall') < 10.
slowpathstuff. What does it mean. What may cause the
statcheckerror? Could anyone give some tips, please? Thanks!
('noninit_count("slowpath_runtimecall") < 10', 'slowpath_runtimecall', 12)
('noninit_count("slowpath_runtimecall") < 10', 'slowpath_runtimecall', 1xxx), four digit number. in test `int_ics"
int(). I will find what cause it.
int()is tricky since int is actually a constructor, which has more complicated rules than just a simple function call
int_newin Pyston cpp style?
__init__there are some more performance benefits to leaving things in the pyston style
*argswhich is more expensive than our register-based calling convention)
callattrInternal (pretty sure this is an old, old comment)
// For rewriting purposes, this function assumes that nargs will be constant. // That's probably fine for some uses (ex binops), but otherwise it should be guarded on beforehand.
Why ever would the number of args not be constant?
ic = createCallattrIC(); ic(attr1, 1, arg1); ic(attr2, 2, arg1, arg2);
nargs=2would apply, but really it had already generated a rewrite that assumed that attr was attr1 and there was one arg
val = condition ? f() : g()