Commit Graph

31 Commits

Author SHA1 Message Date
Jeong YunWon
77e33c5338 slot_as_mapping never fails 2021-10-15 05:59:05 +09:00
Jeong YunWon
527a4d9f92 Do not check type when bytecode instruction already knows that 2021-10-13 03:59:30 +09:00
Jeong YunWon
4fb1cdb316 PyObjectWrap 2021-10-08 01:56:00 +09:00
Jeong YunWon
055bad342b impl AsRef<PyObjectRef> for PyRef<T> 2021-10-08 01:49:33 +09:00
Jeong YunWon
cb9bfce007 clean up use statements 2021-09-26 04:05:53 +09:00
Lee Dogeon
63b1696458 Derive name from tp_name 2021-09-09 00:07:36 +09:00
Jeong YunWon
ff4efd0f60 Fix unnessessary borrow 2021-07-30 02:32:16 +09:00
Noah
516eead348 Replace PyStr.borrow_value() with .as_str() 2021-05-20 10:29:48 -05:00
Noah
99104faaf7 Re-export pyobject::* from the root of the crate 2021-05-20 10:24:07 -05:00
Noah
605a353bc0 Merge pull request #2518 from RustPython/get-method-opt
Add optimized method lookup to avoid creating intermediate method objects
2021-03-27 15:05:04 -05:00
Noah
54ab9cb54a Add LoadMethod and CallMethod* opcodes 2021-03-15 09:45:07 -05:00
Noah
fd87c238fc Don't panic when can't __del__ object 2021-03-14 12:49:59 -05:00
Noah
8cdef9e1fa Use ahash in the vm 2021-01-08 18:08:21 -06:00
Noah
3280a1655a Optimize the size of Instruction 2020-12-14 14:25:19 -06:00
Noah
31f4999dfd Flatten PyObject/PyInner into one struct 2020-11-21 00:33:10 -06:00
Noah
8cb1cfa56d Add a bunch of comments 2020-11-21 00:33:05 -06:00
Noah
0d50118e44 Run tests under miri on CI 2020-11-21 00:33:05 -06:00
Noah
fafee7fe0d Use static_assertions to verify the safety of init_type_hierarchy 2020-11-21 00:33:05 -06:00
Noah
2a427728a6 Use a custom vtable for PyObjectRef 2020-11-21 00:33:05 -06:00
Jeong YunWon
b0445396f4 compactize invoke args 2020-10-11 09:38:06 +09:00
Jeong YunWon
a089c9b6d3 TypeProcotol::lease_class() -> TypeProtocol::class() 2020-10-11 09:11:58 +09:00
Jeong YunWon
81581a9987 first_in_mro -> mro_find_map 2020-10-10 15:31:05 +09:00
Jeong YunWon
fe5767a975 lease_class as much as possible 2020-09-30 11:41:06 +09:00
Jeong YunWon
d9b1ae296b tp_del 2020-09-24 07:50:11 +09:00
Noah
18273da108 Interpreter struct for managing thread-local vm stack 2020-09-15 16:44:39 -05:00
Jeong YunWon
aeebc444e2 CPython-compatible drop implementation 2020-09-15 04:04:21 +09:00
Jeong YunWon
0d6c77cd67 PyObjectWeak as a struct 2020-09-14 20:39:42 +09:00
Jeong YunWon
a13cf329d1 Add PyObjectRc::into_ref() 2020-09-14 09:40:53 +09:00
Jeong YunWon
d975858f2a PyObjectRc derefs to PyObject instead of PyRc 2020-09-14 09:40:53 +09:00
Jeong YunWon
125b40972d PyObjectRc as generic 2020-09-14 09:40:53 +09:00
Jeong YunWon
1a91adc865 PyObjectRc 2020-09-14 09:40:52 +09:00