Explorar el Código

[update] port/frozen_mpy.c

SummerGift hace 6 años
padre
commit
6524027ffb
Se han modificado 1 ficheros con 66 adiciones y 44 borrados
  1. 66 44
      port/frozen_mpy.c

+ 66 - 44
port/frozen_mpy.c

@@ -2,6 +2,7 @@
 #include "py/objint.h"
 #include "py/objstr.h"
 #include "py/emitglue.h"
+#include "py/nativeglue.h"
 
 #if MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE != 0
 #error "incompatible MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE"
@@ -46,48 +47,48 @@ const qstr_pool_t mp_qstr_frozen_const_pool = {
 };
 
 // frozen bytecode for file frozentest.py, scope frozentest_<module>
-STATIC const byte bytecode_data_frozentest__lt_module_gt_[92] = {
-    0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d,
+STATIC const byte fun_data_frozentest__lt_module_gt_[85] = {
+    0x10, 0x16,
     MP_QSTR__lt_module_gt_ & 0xff, MP_QSTR__lt_module_gt_ >> 8,
     MP_QSTR_frozentest_dot_py & 0xff, MP_QSTR_frozentest_dot_py >> 8,
-    0x2a, 0x28, 0x28, 0x28, 0x2b, 0x28, 0x00, 0x00, 0xff,
-    0x1b, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
-    0x16, MP_QSTR_uPy & 0xff, MP_QSTR_uPy >> 8,
-    0x64, 0x01, 
-    0x32, 
-    0x1b, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
-    0x17, 0x00, 
-    0x64, 0x01, 
-    0x32, 
-    0x1b, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
-    0x17, 0x01, 
-    0x64, 0x01, 
-    0x32, 
-    0x1b, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
-    0x17, 0x02, 
-    0x64, 0x01, 
-    0x32, 
-    0x1b, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
-    0x14, 0xba, 0xef, 0x9a, 0x15, 
-    0x64, 0x01, 
-    0x32, 
+    0x29, 0x28, 0x28, 0x28, 0x2b, 0x28, 0x00,
+    0x11, MP_QSTR_print & 0xff, MP_QSTR_print >> 8, 
+    0x10, MP_QSTR_uPy & 0xff, MP_QSTR_uPy >> 8, 
+    0x34, 0x01, 
+    0x59, 
+    0x11, MP_QSTR_print & 0xff, MP_QSTR_print >> 8, 
+    0x23, 0x00, 
+    0x34, 0x01, 
+    0x59, 
+    0x11, MP_QSTR_print & 0xff, MP_QSTR_print >> 8, 
+    0x23, 0x01, 
+    0x34, 0x01, 
+    0x59, 
+    0x11, MP_QSTR_print & 0xff, MP_QSTR_print >> 8, 
+    0x23, 0x02, 
+    0x34, 0x01, 
+    0x59, 
+    0x11, MP_QSTR_print & 0xff, MP_QSTR_print >> 8, 
+    0x22, 0xba, 0xef, 0x9a, 0x15, 
+    0x34, 0x01, 
+    0x59, 
     0x80, 
-    0x35, 0x0f, 0x80, 
-    0x30, 
-    0x24, MP_QSTR_i & 0xff, MP_QSTR_i >> 8,
-    0x1b, MP_QSTR_print & 0xff, MP_QSTR_print >> 8,
-    0x1b, MP_QSTR_i & 0xff, MP_QSTR_i >> 8,
-    0x64, 0x01, 
-    0x32, 
+    0x42, 0x0f, 0x80, 
+    0x57, 
+    0x16, MP_QSTR_i & 0xff, MP_QSTR_i >> 8, 
+    0x11, MP_QSTR_print & 0xff, MP_QSTR_print >> 8, 
+    0x11, MP_QSTR_i & 0xff, MP_QSTR_i >> 8, 
+    0x34, 0x01, 
+    0x59, 
     0x81, 
     0xe5, 
-    0x30, 
+    0x57, 
     0x84, 
     0xd7, 
-    0x36, 0xeb, 0x7f, 
-    0x32, 
-    0x11, 
-    0x5b, 
+    0x43, 0xeb, 0x7f, 
+    0x59, 
+    0x51, 
+    0x63, 
 };
 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"};
 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,15 +102,36 @@ const mp_raw_code_t raw_code_frozentest__lt_module_gt_ = {
     .kind = MP_CODE_BYTECODE,
     .scope_flags = 0x00,
     .n_pos_args = 0,
-    .data.u_byte = {
-        .bytecode = bytecode_data_frozentest__lt_module_gt_,
-        .const_table = (mp_uint_t*)const_table_data_frozentest__lt_module_gt_,
-        #if MICROPY_PERSISTENT_CODE_SAVE
-        .bc_len = 92,
-        .n_obj = 3,
-        .n_raw_code = 0,
-        #endif
+    .fun_data = fun_data_frozentest__lt_module_gt_,
+    .const_table = (mp_uint_t*)const_table_data_frozentest__lt_module_gt_,
+    #if MICROPY_PERSISTENT_CODE_SAVE
+    .fun_data_len = 85,
+    .n_obj = 3,
+    .n_raw_code = 0,
+    #if MICROPY_PY_SYS_SETTRACE
+    .prelude = {
+        .n_state = 3,
+        .n_exc_stack = 0,
+        .scope_flags = 0,
+        .n_pos_args = 0,
+        .n_kwonly_args = 0,
+        .n_def_pos_args = 0,
+        .qstr_block_name = MP_QSTR__lt_module_gt_,
+        .qstr_source_file = MP_QSTR_frozentest_dot_py,
+        .line_info = fun_data_frozentest__lt_module_gt_ + 0,
+        .opcodes = fun_data_frozentest__lt_module_gt_ + 13,
     },
+    .line_of_definition = 0,
+    #endif
+    #if MICROPY_EMIT_MACHINE_CODE
+    .prelude_offset = 0,
+    .n_qstr = 0,
+    .qstr_link = NULL,
+    #endif
+    #endif
+    #if MICROPY_EMIT_MACHINE_CODE
+    .type_sig = 0,
+    #endif
 };
 
 const char mp_frozen_mpy_names[] = {
@@ -117,4 +139,4 @@ const char mp_frozen_mpy_names[] = {
 "\0"};
 const mp_raw_code_t *const mp_frozen_mpy_content[] = {
     &raw_code_frozentest__lt_module_gt_,
-};
+};