Skip to content

Commit 6524027

Browse files
committed
[update] port/frozen_mpy.c
1 parent fb5ba7e commit 6524027

File tree

1 file changed

+66
-44
lines changed

1 file changed

+66
-44
lines changed

port/frozen_mpy.c

Lines changed: 66 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "py/objint.h"
33
#include "py/objstr.h"
44
#include "py/emitglue.h"
5+
#include "py/nativeglue.h"
56

67
#if MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE != 0
78
#error "incompatible MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE"
@@ -46,48 +47,48 @@ const qstr_pool_t mp_qstr_frozen_const_pool = {
4647
};
4748

4849
// frozen bytecode for file frozentest.py, scope frozentest_<module>
49-
STATIC const byte bytecode_data_frozentest__lt_module_gt_[92] = {
50-
0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d,
50+
STATIC const byte fun_data_frozentest__lt_module_gt_[85] = {
51+
0x10, 0x16,
5152
MP_QSTR__lt_module_gt_ & 0xff, MP_QSTR__lt_module_gt_ >> 8,
5253
MP_QSTR_frozentest_dot_py & 0xff, MP_QSTR_frozentest_dot_py >> 8,
53-
0x2a, 0x28, 0x28, 0x28, 0x2b, 0x28, 0x00, 0x00, 0xff,
54-
0x1b, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
55-
0x16, MP_QSTR_uPy & 0xff, MP_QSTR_uPy >> 8,
56-
0x64, 0x01,
57-
0x32,
58-
0x1b, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
59-
0x17, 0x00,
60-
0x64, 0x01,
61-
0x32,
62-
0x1b, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
63-
0x17, 0x01,
64-
0x64, 0x01,
65-
0x32,
66-
0x1b, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
67-
0x17, 0x02,
68-
0x64, 0x01,
69-
0x32,
70-
0x1b, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
71-
0x14, 0xba, 0xef, 0x9a, 0x15,
72-
0x64, 0x01,
73-
0x32,
54+
0x29, 0x28, 0x28, 0x28, 0x2b, 0x28, 0x00,
55+
0x11, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
56+
0x10, MP_QSTR_uPy & 0xff, MP_QSTR_uPy >> 8,
57+
0x34, 0x01,
58+
0x59,
59+
0x11, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
60+
0x23, 0x00,
61+
0x34, 0x01,
62+
0x59,
63+
0x11, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
64+
0x23, 0x01,
65+
0x34, 0x01,
66+
0x59,
67+
0x11, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
68+
0x23, 0x02,
69+
0x34, 0x01,
70+
0x59,
71+
0x11, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
72+
0x22, 0xba, 0xef, 0x9a, 0x15,
73+
0x34, 0x01,
74+
0x59,
7475
0x80,
75-
0x35, 0x0f, 0x80,
76-
0x30,
77-
0x24, MP_QSTR_i & 0xff, MP_QSTR_i >> 8,
78-
0x1b, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
79-
0x1b, MP_QSTR_i & 0xff, MP_QSTR_i >> 8,
80-
0x64, 0x01,
81-
0x32,
76+
0x42, 0x0f, 0x80,
77+
0x57,
78+
0x16, MP_QSTR_i & 0xff, MP_QSTR_i >> 8,
79+
0x11, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
80+
0x11, MP_QSTR_i & 0xff, MP_QSTR_i >> 8,
81+
0x34, 0x01,
82+
0x59,
8283
0x81,
8384
0xe5,
84-
0x30,
85+
0x57,
8586
0x84,
8687
0xd7,
87-
0x36, 0xeb, 0x7f,
88-
0x32,
89-
0x11,
90-
0x5b,
88+
0x43, 0xeb, 0x7f,
89+
0x59,
90+
0x51,
91+
0x63,
9192
};
9293
STATIC const mp_obj_str_t const_obj_frozentest__lt_module_gt__0 = {{&mp_type_str}, 246, 34, (const byte*)"\x61\x20\x6c\x6f\x6e\x67\x20\x73\x74\x72\x69\x6e\x67\x20\x74\x68\x61\x74\x20\x69\x73\x20\x6e\x6f\x74\x20\x69\x6e\x74\x65\x72\x6e\x65\x64"};
9394
STATIC const mp_obj_str_t const_obj_frozentest__lt_module_gt__1 = {{&mp_type_str}, 200, 38, (const byte*)"\x61\x20\x73\x74\x72\x69\x6e\x67\x20\x74\x68\x61\x74\x20\x68\x61\x73\x20\x75\x6e\x69\x63\x6f\x64\x65\x20\xce\xb1\xce\xb2\xce\xb3\x20\x63\x68\x61\x72\x73"};
@@ -101,20 +102,41 @@ const mp_raw_code_t raw_code_frozentest__lt_module_gt_ = {
101102
.kind = MP_CODE_BYTECODE,
102103
.scope_flags = 0x00,
103104
.n_pos_args = 0,
104-
.data.u_byte = {
105-
.bytecode = bytecode_data_frozentest__lt_module_gt_,
106-
.const_table = (mp_uint_t*)const_table_data_frozentest__lt_module_gt_,
107-
#if MICROPY_PERSISTENT_CODE_SAVE
108-
.bc_len = 92,
109-
.n_obj = 3,
110-
.n_raw_code = 0,
111-
#endif
105+
.fun_data = fun_data_frozentest__lt_module_gt_,
106+
.const_table = (mp_uint_t*)const_table_data_frozentest__lt_module_gt_,
107+
#if MICROPY_PERSISTENT_CODE_SAVE
108+
.fun_data_len = 85,
109+
.n_obj = 3,
110+
.n_raw_code = 0,
111+
#if MICROPY_PY_SYS_SETTRACE
112+
.prelude = {
113+
.n_state = 3,
114+
.n_exc_stack = 0,
115+
.scope_flags = 0,
116+
.n_pos_args = 0,
117+
.n_kwonly_args = 0,
118+
.n_def_pos_args = 0,
119+
.qstr_block_name = MP_QSTR__lt_module_gt_,
120+
.qstr_source_file = MP_QSTR_frozentest_dot_py,
121+
.line_info = fun_data_frozentest__lt_module_gt_ + 0,
122+
.opcodes = fun_data_frozentest__lt_module_gt_ + 13,
112123
},
124+
.line_of_definition = 0,
125+
#endif
126+
#if MICROPY_EMIT_MACHINE_CODE
127+
.prelude_offset = 0,
128+
.n_qstr = 0,
129+
.qstr_link = NULL,
130+
#endif
131+
#endif
132+
#if MICROPY_EMIT_MACHINE_CODE
133+
.type_sig = 0,
134+
#endif
113135
};
114136

115137
const char mp_frozen_mpy_names[] = {
116138
"frozentest.py\0"
117139
"\0"};
118140
const mp_raw_code_t *const mp_frozen_mpy_content[] = {
119141
&raw_code_frozentest__lt_module_gt_,
120-
};
142+
};

0 commit comments

Comments
 (0)