Commit Graph
116 Commits
Author SHA1 Message Date
Jeong, YunWon 4a6e8fb29e Add except* support (#6530) 2025-12-26 21:54:23 +09:00
Shahar Naveh bcdf37bef1 Align opcode names in dis (#6526)
* opcodes dis repr like cpython. POP-> POP_TOP

* Adjust frame.rs

* Fix codegen

* snapshots

* Add doc for `PopTop`

* fix jit
2025-12-25 22:17:31 +09:00
Shahar Naveh 569bee103f Use ruff_python_ast::visitor::Visitor for detecting await (#6466) 2025-12-22 12:43:58 +09:00
Shahar Navehandcoderabbitai[bot] 75dcf8042e Tidy codegen::ir::BlockIdx api (#6413)
* Tidy `codegen::ir::BlockIdx` api

* Update crates/codegen/src/ir.rs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-12-12 20:05:31 +09:00
Jeong, YunWon bfd873a8b8 a few unreachable->unimplemented, clippy (#6405)
* unreachable -> unimplemented

* Fix clippy on 1.92
2025-12-12 01:13:28 +09:00
Jeong, YunWon 98fff96f1c __doc__ handing in the right way (#6390) 2025-12-10 20:04:09 +09:00
Shahar Naveh 2b90e826ec Use rust idioms for accessing a Vec in codegen/src/compile.rs (#6326)
* Use rust idioms for accessing a `Vec`

* clippy

* Remove `unsafe`
2025-12-04 09:17:04 +09:00
Shahar Naveh f49c18578a Move PrintExpr to IntristicFunction1 (#6324) 2025-12-03 21:17:36 +09:00
Shahar Naveh 305fb489e7 Remove ImportNameless bytecode (#6325) 2025-12-03 07:07:33 +09:00
Shahar Naveh 26d5307520 Align f-string related bytecodes with 3.13 (#6321)
* Align `f-string` related bytecodes with 3.13

* Resolve name collision

* Adjust for ruff return value
2025-12-03 07:05:16 +09:00
Shahar Naveh 9130dd8068 Unify BINARY_OP bytecodes (#6317)
* Unify BINARY_OP bytecodes

* Add missing op to `as_inplace`

* Fix doc example

* Fix jit

* Fix doc

* Use correct opname

* Fix dis fmt

* Inplace ops support in JIT
2025-12-02 09:00:26 +09:00
Shahar Naveh 4051becc9e Ensure BuildSlice oparg to be either 2 or 3 (#6313)
* Force `BuildSlice` oparg to be either 2 or 3

* `compile_slice` to return `BuildSliceArgCount`
2025-11-30 09:05:29 +09:00
Shahar Naveh 7d8f0b989c Split TestOperator instruction (#6306)
* Split `TestOperator` inatruction

* Update snapshot

* Set as have label
2025-11-29 09:02:52 +09:00
Shahar Naveh fef9de22c4 Remove Rotate* & Duplicate* instructions (#6303)
* Remove `Instruction::Duplicate2?`

* Remove `Instruction::Rotate*` instructions

* Fix jit

* Update snapshot
2025-11-29 00:46:27 +09:00
Shahar Naveh f7ddcd2795 Break after annotation future found (#6284) 2025-11-19 01:00:41 +09:00
Shahar Naveh 7f45ba4c9c Move compiler/codegen -> crates/codegen (#6260) 2025-11-15 18:25:46 +09:00