57 Commits

Author SHA1 Message Date
blueloveTH
1e365ca72c Squashed commit of the following:
commit 7e52f767ca130a49abb90ec922d74d2f5e9be078
Author: blueloveTH <blueloveTH@foxmail.com>
Date:   Sat Jun 1 12:49:46 2024 +0800

    some optimize

commit 3e2ad5b1fbad4367c80ea1325d1aa379282c10c4
Author: blueloveTH <blueloveTH@foxmail.com>
Date:   Sat Jun 1 12:29:53 2024 +0800

    some fix

commit bc0e530c72896a23cb6616ff4197ac36913389a4
Author: blueloveTH <blueloveTH@foxmail.com>
Date:   Sat Jun 1 00:00:47 2024 +0800

    some fix

commit f17ddcf8299c5d6803085cd3263181f44284f31b
Author: blueloveTH <blueloveTH@foxmail.com>
Date:   Fri May 31 23:56:15 2024 +0800

    some fix

commit cc63926c8bb89df2d99d8c92c2e18bd5a0180a2c
Author: blueloveTH <blueloveTH@foxmail.com>
Date:   Fri May 31 23:44:09 2024 +0800

    some fix

commit 3d3fb042651579cbdbcf3255398276ebb7b81e58
Author: blueloveTH <blueloveth@foxmail.com>
Date:   Fri May 31 17:28:13 2024 +0800

    deprecate `PK_OBJ_MARK`

commit 3df5f1cf128f157fb3a7aac2ceeeb47c55f5bb3b
Author: blueloveTH <blueloveth@foxmail.com>
Date:   Fri May 31 17:18:34 2024 +0800

    init
2024-06-01 12:50:38 +08:00
blueloveTH
17de5b3024 remove PK_UNREACHABLE() 2024-05-31 15:58:01 +08:00
blueloveTH
360efc0805 fix exception 2024-05-26 14:34:54 +08:00
blueloveTH
370e3e5e11 fix inplace op 2024-05-25 20:27:20 +08:00
blueloveTH
52d7133e1b cache nlocals 2024-05-25 00:31:12 +08:00
blueloveTH
ea8dd3f0e8 use relative jump 2024-05-24 22:01:48 +08:00
blueloveTH
ff52c52349 merge iblock 2024-05-20 12:47:20 +08:00
blueloveTH
f1dc9486a5 some fix 2024-05-19 17:47:40 +08:00
blueloveTH
f5a4c37968 init 2024-05-12 23:43:06 +08:00
blueloveTH
82d192e8da replace PyObject* with PyVar 2024-05-12 20:16:55 +08:00
blueloveTH
707a880c2e some fix 2024-05-10 16:45:08 +08:00
blueloveTH
f619cee961 add FOR_ITER_UNPACK 2024-04-28 20:04:13 +08:00
blueloveTH
4665fb3405 add OP_LOAD_SUBSCR_SMALL_INT 2024-04-27 19:42:39 +08:00
blueloveTH
b703abbbb2 some refactor 2024-04-27 17:01:59 +08:00
blueloveTH
508cbfdb75 some refactor 2024-04-24 17:54:55 +08:00
blueloveTH
9c9faa5f89 remove an UB 2024-04-23 12:29:33 +08:00
blueloveTH
f53a46941a deprecate *non_tagged* 2024-04-11 11:50:15 +08:00
blueloveTH
e86baa2e2f add optimized opcodes for FOR_ITERs 2024-03-29 01:29:32 +08:00
blueloveTH
50cde5ff03 some fix 2024-03-24 20:07:28 +08:00
blueloveTH
92f9b93245 some fix 2024-03-17 17:58:16 +08:00
blueloveTH
2b43cbd25c some optimize 2024-03-17 17:48:57 +08:00
BLUELOVETH
65440c2034
Fix #197 (#227)
* init

* some optimize

* Update frame.h

* remove `LOAD_INTEGER`

* Update vm.cpp

* some optimize

* some fix

* Revert "remove `LOAD_INTEGER`"

This reverts commit c0b965aee2f64fbfae0b20f41d714688649d20cf.

* some fix

* Update expr.cpp

* some fix

* Update retype.yml
2024-03-16 18:37:09 +08:00
Anurag Bhat
842c415a9f
Fix Typos in the Codebase (#210)
* Fix Typos

* Revert some changes

* Revert ldtk file
2024-02-21 15:40:48 +08:00
blueloveTH
97c923e514 use pod_vector for small vectors 2024-02-18 17:51:35 +08:00
blueloveTH
6ed8a262a8 some fix 2024-02-18 10:58:48 +08:00
blueloveTH
1558e5b40f fix a bug 2024-02-18 00:44:57 +08:00
blueloveTH
8079b82813 ... 2024-01-19 18:09:42 +08:00
blueloveTH
664fc07dcd fix https://github.com/blueloveTH/pocketpy/issues/187 2024-01-14 22:59:08 +08:00
blueloveTH
b28ea2c35b ... 2024-01-07 15:52:33 +08:00
blueloveTH
2cd22d40c5 some optimize 2024-01-07 01:49:33 +08:00
blueloveTH
f2ea8e28ec ... 2024-01-07 01:37:40 +08:00
blueloveTH
17cdeffbf5 fix a bug 2024-01-07 01:36:17 +08:00
blueloveTH
42a7d02286 ... 2024-01-05 22:49:42 +08:00
blueloveTH
866abe2c63 ... 2024-01-05 22:47:35 +08:00
blueloveTH
02a25de8e5 warn return with arg inside generator function 2024-01-05 22:02:23 +08:00
blueloveTH
e150ffae5e rename UNREACHABLE() to PK_UNREACHABLE() 2024-01-04 13:01:26 +08:00
blueloveTH
315cbe5d1a rename FATAL_ERROR to PK_FATAL_ERROR 2024-01-04 12:37:28 +08:00
blueloveTH
1e178caf6e add cmath module 2023-12-30 13:57:51 +08:00
blueloveTH
0419eb5bb0 temp fix a bug of f"{stack[2:]}" 2023-12-19 20:21:17 +08:00
blueloveTH
9af3434f06 improve f-string performance 2023-12-08 22:29:22 +08:00
blueloveTH
b8100bcce5 add EVAL_CONST 2023-12-08 22:10:18 +08:00
blueloveTH
2698040f52 improve f-string 2023-11-22 06:16:05 +08:00
blueloveTH
e124f635c1 support @property.setter 2023-11-07 04:50:06 +08:00
blueloveTH
901f702f00 rename emit into emit_ to make QT happy 2023-10-16 13:56:07 +08:00
blueloveTH
5e3572b32c replace std::stringstream with SStream 2023-10-15 21:58:33 +08:00
blueloveTH
227e76e3e4 cjson cleanup 2023-10-15 15:00:25 +08:00
blueloveTH
1afef9dcb9 reduce bytecode size 2023-10-14 14:30:15 +08:00
blueloveTH
ffde186dfa change opcode to uint8_t 2023-10-14 12:43:10 +08:00
blueloveTH
eb5be9ba41 import can be used in local scope now 2023-10-12 01:02:46 +08:00
blueloveTH
85efbd0b1d fix https://github.com/blueloveTH/pocketpy/issues/130 2023-09-09 14:06:14 +08:00