Noa
2efe9e2969
Merge pull request #3724 from youknowone/instr-size
...
ensure bytecode::Instruction never grows more than 8bytes
2022-05-25 22:47:37 -05:00
Jeong Yunwon
d58ddd21ce
Remove Instruction::MapAddRev
2022-05-20 08:23:24 +09:00
Jeong Yunwon
291c037b8b
ensure bytecode::Instruction never grows more than 8bytes
2022-05-20 07:50:23 +09:00
Jeong Yunwon
75f606abfc
reduce Location size to practical small one
2022-05-16 05:15:56 +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
ec7a709bf2
Remove Constant::into_data
2022-05-16 04:46:35 +09:00
Jeong Yunwon
f6218bb9e5
No generic FrozenModule. Map names lazy
2022-05-16 04:45:14 +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
965c3157c8
Upgrade libraries
2022-04-18 00:09:22 +09:00
Jeong Yunwon
6357a1acbe
clean up imports and useless allow attributes
2022-04-15 23:58:20 +09:00
Noa
f93b134b69
Split Rotate into Rotate2 & Rotate3
2022-03-11 22:01:05 -06:00
Noa
f04a305ac6
Fix augassign double-loading the container of the target
2022-03-10 13:27:38 -06:00
Noa
358ce09b5c
Run cargo upgrade
2021-10-30 19:42:35 -05:00
Noa
09e9ea91e7
TryFrom, TryInto, FromIterator are in prelude now
2021-10-21 17:04:19 -05:00
Noa
ee8b11f5d2
Migrate to 2021 edition
2021-10-21 11:46:24 -05:00
Tony Jinwoo Ahn
34f5a8793a
Replace write! with writeln!
...
Instead of calling write! with an explicit newline character at the end,
prefer its alternative, writeln!.
Signed-off-by: Tony Jinwoo Ahn <tony.jinwoo.ahn@gmail.com >
2021-10-02 15:23:11 +09:00
Padraic Fanning
0ea56025ec
Replace master with main
...
Fixes #3067
2021-09-15 17:54:54 -04:00
Padraic Fanning
f833ba6ed3
Update num_bigint to 0.4.2
...
Fixes a compilation error with the latest nightlies.
2021-09-03 18:53:23 -04:00
Nikita Sobolev
ba74a9a239
Fixes typos in all other files
2021-08-22 12:42:13 +09:00
Noah
8d5588df67
Merge pull request #2532 from Pluriscient/documentation/common-start
...
Documentation of VM & Bytecode
2021-04-18 15:12:29 -05:00
Pluriscient
b2c02838db
Remove todos from vm
2021-04-15 14:54:36 +02:00
Noah
4129f0c5c0
Fix async for compilation
2021-04-11 17:38:44 -05:00
Eric van der Toorn
0bba55b3bf
format bytecode file
2021-03-29 15:18:59 +02: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
Eric van der Toorn
99740d1e85
add documentation to most public parts of bytecode, along with examples
2021-03-27 14:46:31 +01:00
Noah
25ecd7c38b
Upgrade dependencies
2021-03-25 08:06:56 -05:00
Noah
54ab9cb54a
Add LoadMethod and CallMethod* opcodes
2021-03-15 09:45:07 -05:00
Noah
322aba324f
Impl Eq+Hash for ConstantData, make CodeInfo.constants an IndexSet
2021-03-11 09:58:25 -06:00
Noah
86f907ec0d
Fix SetupAsyncWith stack level handling
2021-02-20 21:04:30 -06:00
Padraic Fanning
0d7570391e
Run rustfmt
2021-02-12 16:23:06 -05:00
Noah
58503cb0fa
Serialize entire frozen hashmap to bytes
2021-01-29 00:46:51 -06:00
Noah
77ab7628fe
Upgrade lz4_flex + lalrpop
2021-01-08 17:22:42 -06:00
Jeong YunWon
0b58527c6a
Merge pull request #2373 from RustPython/coolreader18/blockir
...
Have a block-based IR for compiling, calculate max stack size
2021-01-08 13:16:31 +09:00
Noah
be40a5d7b9
Fix clippy lints for Rust 1.49
2021-01-02 19:30:57 -06:00
Noah
559123c617
Don't push something on the stack when starting a generator
2020-12-23 17:40:33 -06:00
Noah
8f536b986d
Use boxvec for frame.stack
2020-12-21 18:48:56 -06:00
Noah
32a1dd60be
Have a block-based IR for compiling, calculate max stack size
2020-12-21 18:47:58 -06:00
Noah
2246f8b6f0
marshal can give better error messages on eof
2020-12-19 15:00:47 -06:00
Noah
3627e4ace1
Move bytecode.rs to lib.rs
2020-12-19 14:59:06 -06:00
Noah
f1807c7675
Remove bytecode lib.rs
2020-12-19 14:59:06 -06:00
Noah
a7363110ae
Update lz4_flex version
2020-12-19 14:59:06 -06:00
Noah
5a56dd1a77
repr() functions with their names
2020-12-17 16:29:44 -06:00
Noah
1be79c93b0
Make Instruction only 8 bytes
2020-12-14 15:55:47 -06:00
Noah
e87144e2c5
Add flags to the MakeFunction instruction
2020-12-14 14:35:17 -06:00
Noah
9c895c268a
Add label_arg{,_mut} methods
2020-12-14 14:25:20 -06:00
Noah
60b2884afa
Use lz4_flex instead of lz-fear
2020-12-14 14:25:19 -06:00