Commit Graph

6425 Commits

Author SHA1 Message Date
Jeong Yunwon
c6b33aab02 Refactor DictKey - remove PyStrRef 2022-05-16 18:14:19 +09:00
Jeong Yunwon
8a2cd2ba08 Refactor DictKey - Remove &PyObject / PyObjectRef 2022-05-16 18:14:19 +09:00
Jeong Yunwon
f335d60657 add Py<PyStr> 2022-05-16 18:14:19 +09:00
Jeong Yunwon
709a2c8698 fix intern 2022-05-16 18:14:19 +09:00
Jeong YunWon
2e1ed81d8e Merge pull request #3707 from youknowone/frozen-lazy
Clean up CodeObject, Constant and PyCode
2022-05-16 07:10:04 +09:00
Jeong Yunwon
e67662d9e7 PyConstant -> Literal 2022-05-16 05:45:49 +09:00
Jeong Yunwon
b0e65d1a65 ToObject for CodeObject(s) & Replace PyRef::new_ref with ctx.new_code 2022-05-16 05:37:53 +09:00
Jeong Yunwon
a2a18f25b8 Fix make_frozen to return PyRef<PyCode> 2022-05-16 05:36:42 +09:00
Jeong Yunwon
d446a5ad18 Bag as Copy 2022-05-16 05:08:45 +09:00
Jeong Yunwon
00a1af9e15 Remove Constant::make_name 2022-05-16 05:00:34 +09:00
Jeong Yunwon
b2c9b3ce90 Remove Constant::map_constant 2022-05-16 04:50:54 +09:00
Jeong Yunwon
abe644bd72 remove make_constant_borrowed 2022-05-16 04:46:37 +09:00
Jeong Yunwon
f6218bb9e5 No generic FrozenModule. Map names lazy 2022-05-16 04:45:14 +09:00
Jeong Yunwon
93d1438345 PyObjBag refers Context instead of vm 2022-05-16 04:45:13 +09:00
Jeong Yunwon
ad7c966310 more str tools 2022-05-16 02:03:22 +09:00
Dennis Zhuang
7cb391e140 Repalce all PyStr::from().into_ref(vm) with vm.ctx.empty_str 2022-05-14 21:45:55 +08:00
Dennis Zhuang
eba6833096 PyStr::mul optimization for i=0 or str='' 2022-05-14 21:38:23 +08:00
Jeong YunWon
b5b07385a7 Merge pull request #3699 from youknowone/slot-del-cold
call_slot_del is cold
2022-05-12 18:38:20 +09:00
Jeong YunWon
543360da57 Merge pull request #3698 from youknowone/cmp
Improve comparison ops performance
2022-05-12 18:36:02 +09:00
Jeong Yunwon
e76d79e725 call_slot_del is cold 2022-05-12 04:39:07 +09:00
Jeong Yunwon
436f984950 clean up PyComparisonOp::map_eq 2022-05-12 04:21:40 +09:00
Jeong Yunwon
3b9721c326 Add microbenchmarks/cmp.py 2022-05-12 04:21:40 +09:00
Jeong Yunwon
7df0acd6b6 share comparisonop between bytecode and vm 2022-05-12 04:02:14 +09:00
Jeong Yunwon
53d835faa7 split comapre and richcompare instruction 2022-05-12 04:02:14 +09:00
Jeong Yunwon
1fa1a7c5c5 drain with open range 2022-05-12 03:02:58 +09:00
djrmarques
996250d959 Added self and self_class to super (#3691) 2022-05-08 04:19:38 +09:00
Jeong Yunwon
c9f1f61bae fix clippy warnings 2022-05-07 20:00:57 +09:00
Jeong Yunwon
251ce4e68e ArgByteOrder 2022-05-04 08:29:15 +09:00
Jeong Yunwon
4d244f0d07 int.format error handling 2022-05-04 08:29:15 +09:00
Jeong Yunwon
a50ca743dc empty vm/functin/mod.rs 2022-05-04 08:29:15 +09:00
Jeong Yunwon
580bcb526f remove duplicated type check 2022-05-04 08:29:15 +09:00
Jeong Yunwon
283c97cda7 cut down modpow to keep fast path smaller 2022-05-04 08:29:15 +09:00
Jeong Yunwon
987d9b9a9b prevent duplicated code generation 2022-05-04 07:49:19 +09:00
hrchu
e50ee53095 Fix lshift overflow handling 2022-05-04 07:36:43 +09:00
hrchu
8f0e40f2b2 Fix test_long::test_huge_rshift 2022-05-04 07:35:44 +09:00
Jeong Yunwon
3034217eae VirtualMachine::{run_frame_full => run_frame} 2022-05-02 10:37:47 +09:00
Jeong YunWon
4c0d49de96 Merge pull request #3658 from coolreader18/move-crt_fd
Move crt_fd to common
2022-05-01 14:59:42 +09:00
Noa
77495a2b2d Move stdlib::os::errno to common 2022-04-30 13:35:43 -05:00
Noa
b382d3c9e3 Move crt_fd to common 2022-04-30 13:35:42 -05:00
Jeong Yunwon
e8c59360b9 Interpreter::run 2022-05-01 00:29:40 +09:00
Jeong Yunwon
c83d8fd68d exception-to-exitcode to vm method 2022-05-01 00:23:23 +09:00
Jeong Yunwon
ec9697aabb Remove direct eprintln! usage from vm 2022-04-30 23:01:26 +09:00
Jeong Yunwon
846e38e110 Fix stderr usage in exit handling 2022-04-30 22:59:16 +09:00
Jeong Yunwon
6fd5094c05 Remove Interpreter::default() not to trap users init without stdlib 2022-04-30 05:09:33 +09:00
Jeong Yunwon
b74a5a6a92 relocate run functions to vm 2022-04-30 04:05:26 +09:00
Jeong YunWon
4c39668b71 Merge pull request #3665 from fanninpm/baseexception-reduce
Add BaseException.__reduce__
2022-04-30 01:16:30 +09:00
Jeong Yunwon
24186558ed Deref for ArgIntoComplex 2022-04-29 10:51:25 +09:00
Jeong Yunwon
84e2b52240 Deref for ArgIntoFloat 2022-04-29 10:47:59 +09:00
Jeong Yunwon
9f17a50c60 Impl std::ops::Deref for ArgIntoBool 2022-04-29 10:34:26 +09:00
Jeong Yunwon
6e97435607 inner_truediv is too big to inline 2022-04-29 10:07:27 +09:00