/AliOS-Things-master/components/py_engine/engine/py/ |
A D | objtype.c | 610 if (member != MP_OBJ_NULL) { in mp_obj_instance_load_attr() 757 if (value == MP_OBJ_NULL) { in mp_obj_instance_store_attr() 785 if (value == MP_OBJ_NULL) { in mp_obj_instance_store_attr() 797 if (dest[0] == MP_OBJ_NULL) { in mp_obj_instance_attr() 808 mp_obj_t member[4] = {MP_OBJ_NULL, MP_OBJ_NULL, index, value}; in instance_subscr() 815 if (value == MP_OBJ_NULL) { in instance_subscr() 855 mp_obj_t member[2] = {MP_OBJ_NULL, MP_OBJ_NULL}; in mp_obj_instance_is_callable() 860 mp_obj_t member[2] = {MP_OBJ_NULL, MP_OBJ_NULL}; in mp_obj_instance_call() 862 if (call == MP_OBJ_NULL) { in mp_obj_instance_call() 891 return MP_OBJ_NULL; in mp_obj_instance_getiter() [all …]
|
A D | map.c | 171 elem->key = MP_OBJ_NULL; in mp_map_lookup() 222 if (slot->key == MP_OBJ_NULL) { in mp_map_lookup() 230 avail_slot->value = MP_OBJ_NULL; in mp_map_lookup() 251 slot->key = MP_OBJ_NULL; in mp_map_lookup() 321 return MP_OBJ_NULL; in mp_set_lookup() 330 if (elem == MP_OBJ_NULL) { in mp_set_lookup() 340 return MP_OBJ_NULL; in mp_set_lookup() 380 return MP_OBJ_NULL; in mp_set_lookup() 394 set->table[pos] = MP_OBJ_NULL; in mp_set_remove_first() 401 return MP_OBJ_NULL; in mp_set_remove_first() [all …]
|
A D | builtinimport.c | 54 return dest[0] != MP_OBJ_NULL; in mp_obj_is_package() 166 mp_obj_t module_fun = mp_make_function_from_raw_code(raw_code, MP_OBJ_NULL, MP_OBJ_NULL); in do_execute_raw_code() 282 assert(this_name_q != MP_OBJ_NULL); in mp_builtin___import__() 342 if (module_obj != MP_OBJ_NULL) { in mp_builtin___import__() 361 module_obj = MP_OBJ_NULL; in mp_builtin___import__() 362 mp_obj_t top_module_obj = MP_OBJ_NULL; in mp_builtin___import__() 363 mp_obj_t outer_module_obj = MP_OBJ_NULL; in mp_builtin___import__() 386 module_obj = MP_OBJ_NULL; in mp_builtin___import__() 410 if (module_obj == MP_OBJ_NULL) { in mp_builtin___import__() 487 if (module_obj != MP_OBJ_NULL) { in mp_builtin___import__() [all …]
|
A D | runtime.c | 680 mp_obj_t self = MP_OBJ_NULL; in mp_call_prepare_args_n_kw_var() 708 if (pos_seq == MP_OBJ_NULL) { in mp_call_prepare_args_n_kw_var() 783 if (kw_dict == MP_OBJ_NULL) { in mp_call_prepare_args_n_kw_var() 923 seq = MP_OBJ_NULL; in mp_unpack_ex() 966 if (dest[1] == MP_OBJ_NULL) { in mp_load_attr() 1081 dest[0] = MP_OBJ_NULL; in mp_load_method_maybe() 1082 dest[1] = MP_OBJ_NULL; in mp_load_method_maybe() 1121 if (dest[0] == MP_OBJ_NULL) { in mp_load_method() 1202 if (dest[0] != MP_OBJ_NULL) { in mp_getiter() 1284 assert((send_value != MP_OBJ_NULL) ^ (throw_value != MP_OBJ_NULL)); in mp_resume() [all …]
|
A D | scheduler.c | 72 if (obj != MP_OBJ_NULL) { in mp_handle_pending() 73 MP_STATE_THREAD(mp_pending_exception) = MP_OBJ_NULL; in mp_handle_pending() 120 if (MP_STATE_THREAD(mp_pending_exception) != MP_OBJ_NULL || mp_sched_num_pending()) { in mp_sched_unlock() 153 if (MP_STATE_THREAD(mp_pending_exception) != MP_OBJ_NULL) { in mp_handle_pending() 155 MP_STATE_THREAD(mp_pending_exception) = MP_OBJ_NULL; in mp_handle_pending()
|
A D | vm.c | 285 inject_exc = MP_OBJ_NULL; in mp_execute_bytecode() 340 PUSH(MP_OBJ_NULL); in mp_execute_bytecode() 347 if (obj_shared == MP_OBJ_NULL) { in mp_execute_bytecode() 545 fastn[-unum] = MP_OBJ_NULL; in mp_execute_bytecode() 944 PUSH(mp_make_function_from_raw_code(ptr, MP_OBJ_NULL, MP_OBJ_NULL)); in mp_execute_bytecode() 1201 mp_obj_t obj = MP_OBJ_NULL; in mp_execute_bytecode() 1208 if (obj == MP_OBJ_NULL) { in mp_execute_bytecode() 1244 mp_obj_t t_exc = MP_OBJ_NULL; in mp_execute_bytecode() 1247 if (inject_exc != MP_OBJ_NULL) { in mp_execute_bytecode() 1249 inject_exc = MP_OBJ_NULL; in mp_execute_bytecode() [all …]
|
A D | objmodule.c | 63 if (dest[0] == MP_OBJ_NULL) { in module_attr() 93 if (dest[1] == MP_OBJ_NULL) { in module_attr() 100 dest[0] = MP_OBJ_NULL; // indicate success in module_attr() 116 if (el->value != MP_OBJ_NULL) { in mp_obj_new_module() 255 return MP_OBJ_NULL; in mp_module_get() 280 return MP_OBJ_NULL; in mp_module_search_umodule() 289 if (dest[0] != MP_OBJ_NULL) { in mp_module_call_init()
|
A D | nativeglue.c | 163 if (o != MP_OBJ_NULL && o != mp_const_none) { in mp_native_raise() 176 iter->base.type = MP_OBJ_NULL; in mp_native_getiter() 186 if (iter->base.type == MP_OBJ_NULL) { in mp_native_iternext() 199 if (throw_value != MP_OBJ_NULL) { in mp_native_yield_from() 200 send_value = MP_OBJ_NULL; in mp_native_yield_from() 223 …if (throw_value != MP_OBJ_NULL && mp_obj_exception_match(throw_value, MP_OBJ_FROM_PTR(&mp_type_Gen… in mp_native_yield_from()
|
A D | modbuiltins.c | 193 if (dest[0] != MP_OBJ_NULL) { in mp_builtin_dir() 274 mp_obj_t best_key = MP_OBJ_NULL; in mp_builtin_min_max() 275 mp_obj_t best_obj = MP_OBJ_NULL; in mp_builtin_min_max() 284 if (best_obj == MP_OBJ_NULL) { in mp_builtin_min_max() 295 mp_obj_t best_key = MP_OBJ_NULL; in mp_builtin_min_max() 296 mp_obj_t best_obj = MP_OBJ_NULL; in mp_builtin_min_max() 561 if (defval == MP_OBJ_NULL) { in mp_load_attr_default() 566 if (dest[0] == MP_OBJ_NULL) { in mp_load_attr_default() 568 } else if (dest[1] == MP_OBJ_NULL) { in mp_load_attr_default() 578 mp_obj_t defval = MP_OBJ_NULL; in mp_builtin_getattr() [all …]
|
A D | obj.c | 106 if (o_in == MP_OBJ_NULL) { in mp_obj_print_helper() 168 if (result != MP_OBJ_NULL) { in mp_obj_is_true() 174 if (len != MP_OBJ_NULL) { in mp_obj_is_true() 258 if (r != MP_OBJ_NULL) { in mp_obj_equal_not_equal() 265 if (r != MP_OBJ_NULL) { in mp_obj_equal_not_equal() 502 if (len == MP_OBJ_NULL) { in mp_obj_len() 529 return MP_OBJ_NULL; in mp_obj_len_maybe() 538 if (ret != MP_OBJ_NULL) { in mp_obj_subscr() 543 if (value == MP_OBJ_NULL) { in mp_obj_subscr() 602 return MP_OBJ_NULL; // op not supported in mp_generic_unary_op()
|
A D | objtuple.c | 117 if (another_in == MP_OBJ_NULL) { in tuple_cmp_helper() 118 return MP_OBJ_NULL; in tuple_cmp_helper() 142 return MP_OBJ_NULL; // op not supported in mp_obj_tuple_unary_op() 152 return MP_OBJ_NULL; // op not supported in mp_obj_tuple_binary_op() 163 return MP_OBJ_NULL; // op not supported in mp_obj_tuple_binary_op() 180 return MP_OBJ_NULL; // op not supported in mp_obj_tuple_binary_op() 202 return MP_OBJ_NULL; // op not supported in mp_obj_tuple_subscr()
|
A D | profile.c | 88 if (code == MP_OBJ_NULL) { in code_consts() 137 if (dest[0] != MP_OBJ_NULL) { in code_attr() 186 return MP_OBJ_NULL; in mp_obj_new_code() 191 o->lnotab = MP_OBJ_NULL; in mp_obj_new_code() 253 return MP_OBJ_NULL; in mp_obj_new_frame() 258 return MP_OBJ_NULL; in mp_obj_new_frame() 263 return MP_OBJ_NULL; in mp_obj_new_frame() 275 o->callback = MP_OBJ_NULL; in mp_obj_new_frame() 321 return MP_OBJ_NULL; in mp_prof_frame_enter() 337 return MP_OBJ_NULL; in mp_prof_frame_enter() [all …]
|
A D | runtime_utils.c | 38 return MP_OBJ_NULL; in mp_call_function_1_protected() 50 return MP_OBJ_NULL; in mp_call_function_2_protected()
|
A D | objgenerator.c | 162 if (self->pend_exc == MP_OBJ_NULL) { in mp_obj_gen_resume() 183 self->pend_exc = MP_OBJ_NULL; in mp_obj_gen_resume() 249 ret = MP_OBJ_NULL; in gen_resume_and_raise() 266 return gen_resume_and_raise(self_in, mp_const_none, MP_OBJ_NULL, false); in gen_instance_iternext() 270 return gen_resume_and_raise(self_in, send_value, MP_OBJ_NULL, true); in gen_instance_send() 320 if (self->pend_exc == MP_OBJ_NULL) { in gen_instance_pend_throw()
|
A D | emitglue.c | 178 assert(def_args == MP_OBJ_NULL || mp_obj_is_type(def_args, &mp_type_tuple)); in mp_make_function_from_raw_code() 181 assert(def_kw_args == MP_OBJ_NULL || mp_obj_is_type(def_kw_args, &mp_type_dict)); in mp_make_function_from_raw_code() 230 ffun = mp_make_function_from_raw_code(rc, MP_OBJ_NULL, MP_OBJ_NULL); in mp_make_closure_from_raw_code()
|
A D | objdict.c | 142 return MP_OBJ_NULL; // op not supported in dict_unary_op() 191 return MP_OBJ_NULL; in dict_binary_op() 207 if (value == MP_OBJ_NULL) { in dict_subscr() 267 mp_obj_t next = MP_OBJ_NULL; in dict_fromkeys() 276 if (len == MP_OBJ_NULL) { in dict_fromkeys() 302 if (elem == NULL || elem->value == MP_OBJ_NULL) { in dict_get_helper() 357 next->value = MP_OBJ_NULL; in dict_popitem() 386 mp_obj_t next = MP_OBJ_NULL; in dict_update() 492 mp_obj_t next = MP_OBJ_NULL; in dict_view_print() 507 return MP_OBJ_NULL; // op not supported in dict_view_binary_op() [all …]
|
A D | bc.c | 191 mp_obj_t dict = MP_OBJ_NULL; in mp_setup_code_state() 205 if (code_state->state[n_state - 1 - j] != MP_OBJ_NULL) { in mp_setup_code_state() 233 if (*d == MP_OBJ_NULL) { in mp_setup_code_state() 243 if (*d++ == MP_OBJ_NULL) { in mp_setup_code_state() 252 if (code_state->state[n_state - 1 - n_pos_args - i] == MP_OBJ_NULL) { in mp_setup_code_state()
|
/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | uos_dupterm.c | 42 MP_STATE_VM(dupterm_objs[dupterm_idx]) = MP_OBJ_NULL; in mp_uos_deactivate() 44 if (exc != MP_OBJ_NULL) { in mp_uos_deactivate() 61 if (s == MP_OBJ_NULL) { in mp_uos_dupterm_poll() 97 if (MP_STATE_VM(dupterm_objs[idx]) == MP_OBJ_NULL) { in mp_uos_dupterm_rx_chr() 123 mp_uos_deactivate(idx, "dupterm: EOF received, deactivating\n", MP_OBJ_NULL); in mp_uos_dupterm_rx_chr() 152 if (MP_STATE_VM(dupterm_objs[idx]) == MP_OBJ_NULL) { in mp_uos_dupterm_tx_strn() 186 if (previous_obj == MP_OBJ_NULL) { in mp_uos_dupterm() 190 MP_STATE_VM(dupterm_objs[idx]) = MP_OBJ_NULL; in mp_uos_dupterm()
|
A D | machine_spi.c | 167 { MP_QSTR_sck, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} }, in mp_machine_soft_spi_make_new() 168 { MP_QSTR_mosi, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} }, in mp_machine_soft_spi_make_new() 188 if (args[ARG_sck].u_obj == MP_OBJ_NULL in mp_machine_soft_spi_make_new() 189 || args[ARG_mosi].u_obj == MP_OBJ_NULL in mp_machine_soft_spi_make_new() 190 || args[ARG_miso].u_obj == MP_OBJ_NULL) { in mp_machine_soft_spi_make_new() 211 { MP_QSTR_sck, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} }, in mp_machine_soft_spi_init() 212 { MP_QSTR_mosi, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} }, in mp_machine_soft_spi_init() 213 { MP_QSTR_miso, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} }, in mp_machine_soft_spi_init() 227 if (args[ARG_sck].u_obj != MP_OBJ_NULL) { in mp_machine_soft_spi_init() 230 if (args[ARG_mosi].u_obj != MP_OBJ_NULL) { in mp_machine_soft_spi_init() [all …]
|
A D | modujson.c | 156 mp_obj_t stack_top = MP_OBJ_NULL; in mod_ujson_load() 158 mp_obj_t stack_key = MP_OBJ_NULL; in mod_ujson_load() 165 mp_obj_t next = MP_OBJ_NULL; in mod_ujson_load() 289 if (stack_top == MP_OBJ_NULL) { in mod_ujson_load() 305 if (stack_top == MP_OBJ_NULL) { in mod_ujson_load() 317 if (stack_key == MP_OBJ_NULL) { in mod_ujson_load() 324 stack_key = MP_OBJ_NULL; in mod_ujson_load() 348 if (stack_top == MP_OBJ_NULL || stack.len != 0) { in mod_ujson_load() 364 mp_obj_stringio_t sio = {{&mp_type_stringio}, &vstr, 0, MP_OBJ_NULL}; in mod_ujson_loads()
|
A D | moductypes.c | 334 return MP_OBJ_NULL; in get_aligned() 398 if (set_val == MP_OBJ_NULL) { in uctypes_struct_attr_op() 405 if (set_val == MP_OBJ_NULL) { in uctypes_struct_attr_op() 422 if (set_val == MP_OBJ_NULL) { in uctypes_struct_attr_op() 447 return MP_OBJ_NULL; in uctypes_struct_attr_op() 454 if (set_val != MP_OBJ_NULL) { in uctypes_struct_attr_op() 492 return MP_OBJ_NULL; in uctypes_struct_attr_op() 496 if (dest[0] == MP_OBJ_NULL) { in uctypes_struct_attr() 511 if (value == MP_OBJ_NULL) { in uctypes_struct_subscr() 513 return MP_OBJ_NULL; // op not supported in uctypes_struct_subscr() [all …]
|
A D | vfs_blockdev.c | 39 if (self->u.ioctl[0] != MP_OBJ_NULL) { in mp_vfs_blockdev_init() 77 if (self->writeblocks[0] == MP_OBJ_NULL) { in mp_vfs_blockdev_write() 96 if (self->writeblocks[0] == MP_OBJ_NULL) { in mp_vfs_blockdev_write_ext() 123 if (self->u.old.sync[0] != MP_OBJ_NULL) { in mp_vfs_blockdev_ioctl()
|
A D | moduasyncio.c | 160 STATIC mp_obj_t uasyncio_context = MP_OBJ_NULL; 204 if (dest[0] != MP_OBJ_NULL) { in task_cancel() 230 if (dest[0] == MP_OBJ_NULL) { in task_attr() 247 } else if (dest[1] != MP_OBJ_NULL) { in task_attr() 251 dest[0] = MP_OBJ_NULL; in task_attr() 254 dest[0] = MP_OBJ_NULL; in task_attr()
|
/AliOS-Things-master/components/py_engine/adapter/haas510/ |
A D | machine_hw_i2c.c | 145 { MP_QSTR_id, MP_ARG_REQUIRED | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} }, in machine_hw_i2c_make_new() 146 { MP_QSTR_scl, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} }, in machine_hw_i2c_make_new() 147 { MP_QSTR_sda, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} }, in machine_hw_i2c_make_new() 183 if (args[ARG_scl].u_obj != MP_OBJ_NULL) { in machine_hw_i2c_make_new() 186 if (args[ARG_sda].u_obj != MP_OBJ_NULL) { in machine_hw_i2c_make_new()
|
/AliOS-Things-master/components/py_engine/adapter/haas600/ |
A D | machine_hw_i2c.c | 145 { MP_QSTR_id, MP_ARG_REQUIRED | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} }, in machine_hw_i2c_make_new() 146 { MP_QSTR_scl, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} }, in machine_hw_i2c_make_new() 147 { MP_QSTR_sda, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL} }, in machine_hw_i2c_make_new() 183 if (args[ARG_scl].u_obj != MP_OBJ_NULL) { in machine_hw_i2c_make_new() 186 if (args[ARG_sda].u_obj != MP_OBJ_NULL) { in machine_hw_i2c_make_new()
|