Lines Matching full:name

233 			 *  Named function expression, name needs to be bound  in duk_js_push_closure()
414 * "name" is a non-standard property found in at least V8, Rhino, smjs. in duk_js_push_closure()
418 * We could also leave name 'undefined' for anonymous functions but that would in duk_js_push_closure()
427 /* [ ... closure template name ] */ in duk_js_push_closure()
752 /* lookup name from an open declarative record's registers */
755 duk_hstring *name, in duk__getid_open_decl_env_regs() argument
767 DUK_ASSERT(name != NULL); in duk__getid_open_decl_env_regs()
796 tv = duk_hobject_find_existing_entry_tval_ptr(thr->heap, varmap, name); in duk__getid_open_decl_env_regs()
837 /* lookup name from current activation record's functions' registers */
840 duk_hstring *name, in duk__getid_activation_regs() argument
850 DUK_ASSERT(name != NULL); in duk__getid_activation_regs()
870 tv = duk_hobject_find_existing_entry_tval_ptr(thr->heap, varmap, name); in duk__getid_activation_regs()
897 duk_hstring *name, in duk__get_identifier_reference() argument
908 DUK_ASSERT(name != NULL); in duk__get_identifier_reference()
940 if (duk__getid_activation_regs(thr, name, act, out)) { in duk__get_identifier_reference()
942 "name=%!O -> value=%!T, attrs=%ld, this=%!T, env=%!O, holder=%!O " in duk__get_identifier_reference()
944 (duk_heaphdr *) name, (duk_tval *) out->value, in duk__get_identifier_reference()
1001 DUK_DDD(DUK_DDDPRINT("duk__get_identifier_reference, name=%!O, considering env=%p -> %!iO", in duk__get_identifier_reference()
1002 (duk_heaphdr *) name, in duk__get_identifier_reference()
1030 if (duk__getid_open_decl_env_regs(thr, name, env, out)) { in duk__get_identifier_reference()
1032 "name=%!O -> value=%!T, attrs=%ld, this=%!T, env=%!O, holder=%!O " in duk__get_identifier_reference()
1034 (duk_heaphdr *) name, (duk_tval *) out->value, in duk__get_identifier_reference()
1041 tv = duk_hobject_find_existing_entry_tval_ptr_and_attrs(thr->heap, env, name, &attrs); in duk__get_identifier_reference()
1052 "name=%!O -> value=%!T, attrs=%ld, this=%!T, env=%!O, holder=%!O " in duk__get_identifier_reference()
1054 (duk_heaphdr *) name, (duk_tval *) out->value, in duk__get_identifier_reference()
1093 DUK_ASSERT(name != NULL); in duk__get_identifier_reference()
1094 DUK_TVAL_SET_STRING(&tv_name, name); in duk__get_identifier_reference()
1103 found = duk_hobject_hasprop_raw(thr, target, name); in duk__get_identifier_reference()
1115 "name=%!O -> value=%!T, attrs=%ld, this=%!T, env=%!O, holder=%!O " in duk__get_identifier_reference()
1117 (duk_heaphdr *) name, (duk_tval *) out->value, in duk__get_identifier_reference()
1163 duk_hstring *name) {
1167 DUK_DDD(DUK_DDDPRINT("hasvar: thr=%p, env=%p, name=%!O "
1169 (void *) thr, (void *) env, (duk_heaphdr *) name,
1174 DUK_ASSERT(name != NULL);
1177 DUK_ASSERT_REFCOUNT_NONZERO_HEAPHDR(name);
1184 return duk__get_identifier_reference(thr, env, name, NULL, parents, &ref);
1218 duk_hstring *name, in duk__getvar_helper() argument
1226 DUK_DDD(DUK_DDDPRINT("getvar: thr=%p, env=%p, act=%p, name=%!O " in duk__getvar_helper()
1229 (duk_heaphdr *) name, (duk_heaphdr *) env)); in duk__getvar_helper()
1232 DUK_ASSERT(name != NULL); in duk__getvar_helper()
1236 DUK_ASSERT_REFCOUNT_NONZERO_HEAPHDR(name); in duk__getvar_helper()
1239 if (duk__get_identifier_reference(thr, env, name, act, parents, &ref)) { in duk__getvar_helper()
1258 DUK_TVAL_SET_STRING(&tv_tmp_key, name); in duk__getvar_helper()
1271 (const char *) DUK_HSTRING_GET_DATA(name)); in duk__getvar_helper()
1281 duk_hstring *name, in duk_js_getvar_envrec() argument
1283 return duk__getvar_helper(thr, env, NULL, name, throw_flag); in duk_js_getvar_envrec()
1289 duk_hstring *name, in duk_js_getvar_activation() argument
1292 return duk__getvar_helper(thr, act->lex_env, act, name, throw_flag); in duk_js_getvar_activation()
1314 duk_hstring *name, in duk__putvar_helper() argument
1322 DUK_DDD(DUK_DDDPRINT("putvar: thr=%p, env=%p, act=%p, name=%!O, val=%p, strict=%ld " in duk__putvar_helper()
1325 (duk_heaphdr *) name, (void *) val, (long) strict, in duk__putvar_helper()
1329 DUK_ASSERT(name != NULL); in duk__putvar_helper()
1334 DUK_ASSERT_REFCOUNT_NONZERO_HEAPHDR(name); in duk__putvar_helper()
1344 * and name 'eval' or 'arguments'. in duk__putvar_helper()
1348 (name != DUK_HTHREAD_STRING_EVAL(thr) && in duk__putvar_helper()
1349 name != DUK_HTHREAD_STRING_LC_ARGUMENTS(thr))); in duk__putvar_helper()
1357 if (duk__get_identifier_reference(thr, env, name, act, parents, &ref)) { in duk__putvar_helper()
1377 DUK_TVAL_SET_STRING(&tv_tmp_key, name); in duk__putvar_helper()
1399 DUK_TVAL_SET_STRING(&tv_tmp_key, name); in duk__putvar_helper()
1410 duk_hstring *name, in duk_js_putvar_envrec() argument
1413 duk__putvar_helper(thr, env, NULL, name, val, strict); in duk_js_putvar_envrec()
1419 duk_hstring *name, in duk_js_putvar_activation() argument
1423 duk__putvar_helper(thr, act->lex_env, act, name, val, strict); in duk_js_putvar_activation()
1449 duk_hstring *name) { in duk__delvar_helper() argument
1453 DUK_DDD(DUK_DDDPRINT("delvar: thr=%p, env=%p, act=%p, name=%!O " in duk__delvar_helper()
1456 (duk_heaphdr *) name, (duk_heaphdr *) env)); in duk__delvar_helper()
1459 DUK_ASSERT(name != NULL); in duk__delvar_helper()
1462 DUK_ASSERT_REFCOUNT_NONZERO_HEAPHDR(name); in duk__delvar_helper()
1466 if (duk__get_identifier_reference(thr, env, name, act, parents, &ref)) { in duk__delvar_helper()
1475 return duk_hobject_delprop_raw(thr, ref.holder, name, 0); in duk__delvar_helper()
1486 DUK_DDD(DUK_DDDPRINT("identifier to be deleted not found: name=%!O " in duk__delvar_helper()
1488 (duk_heaphdr *) name)); in duk__delvar_helper()
1496 duk_hstring *name) {
1497 return duk__delvar_helper(thr, env, NULL, name);
1504 duk_hstring *name) { in duk_js_delvar_activation() argument
1506 return duk__delvar_helper(thr, act->lex_env, act, name); in duk_js_delvar_activation()
1541 * - Function name binding of a function expression (immutable)
1551 * property (even an immutable or non-deletable one) of the same name
1562 duk_hstring *name, in duk__declvar_helper() argument
1572 …DUK_DDD(DUK_DDDPRINT("declvar: thr=%p, env=%p, name=%!O, val=%!T, prop_flags=0x%08lx, is_func_decl… in duk__declvar_helper()
1574 (void *) thr, (void *) env, (duk_heaphdr *) name, in duk__declvar_helper()
1580 DUK_ASSERT(name != NULL); in duk__declvar_helper()
1604 if (duk__get_identifier_reference(thr, env, name, NULL, parents, &ref)) { in duk__declvar_helper()
1654 duk_hobject_find_existing_entry(thr->heap, holder, name, &e_idx, &h_idx); in duk__declvar_helper()
1735 duk_hobject_define_property_internal(thr, ref.holder, name, prop_flags); in duk__declvar_helper()
1778 duk_push_hstring(ctx, name); in duk__declvar_helper()
1780 duk_xdef_prop(ctx, -3, prop_flags); /* [holder name val] -> [holder] */ in duk__declvar_helper()
1794 duk_hstring *name, in duk_js_declvar_activation() argument
1829 return duk__declvar_helper(thr, env, name, val, prop_flags, is_func_decl); in duk_js_declvar_activation()