Lines Matching full:if

7 #if defined(DUK_USE_STRTAB_PROBE)
13 #if defined(DUK_USE_MARK_AND_SWEEP)
43 #if defined(DUK_USE_STRLEN16) in duk__alloc_init_hstring()
44 /* If blen <= 0xffffUL, clen is also guaranteed to be <= 0xffffUL. */ in duk__alloc_init_hstring()
45 if (blen > 0xffffUL) { in duk__alloc_init_hstring()
51 if (extdata) { in duk__alloc_init_hstring()
54 if (!res) { in duk__alloc_init_hstring()
58 #if defined(DUK_USE_EXPLICIT_NULL_INIT) in duk__alloc_init_hstring()
68 if (!res) { in duk__alloc_init_hstring()
72 #if defined(DUK_USE_EXPLICIT_NULL_INIT) in duk__alloc_init_hstring()
83 if (duk_js_to_arrayindex_raw_string(str, blen, &dummy)) { in duk__alloc_init_hstring()
95 if (blen > 0 && str[0] == (duk_uint8_t) 0xff) { in duk__alloc_init_hstring()
104 #if defined(DUK_USE_HSTRING_CLEN) in duk__alloc_init_hstring()
113 if (clen == blen) { in duk__alloc_init_hstring()
144 #if defined(DUK_USE_STRTAB_CHAIN)
146 #if defined(DUK_USE_HEAPPTR16)
163 if (e->listlen == 0) { in duk__insert_hstring_chain()
164 if (e->u.str16 == null16) { in duk__insert_hstring_chain()
169 if (lst == NULL) { in duk__insert_hstring_chain()
182 if (lst[i] == null16) { in duk__insert_hstring_chain()
188 if (e->listlen + 1 == 0) { in duk__insert_hstring_chain()
194 if (new_lst == NULL) { in duk__insert_hstring_chain()
217 if (e->listlen == 0) { in duk__insert_hstring_chain()
218 if (e->u.str == NULL) { in duk__insert_hstring_chain()
223 if (lst == NULL) { in duk__insert_hstring_chain()
235 if (lst[i] == NULL) { in duk__insert_hstring_chain()
241 if (e->listlen + 1 == 0) { in duk__insert_hstring_chain()
247 if (new_lst == NULL) { in duk__insert_hstring_chain()
257 #if defined(DUK_USE_HEAPPTR16)
271 if (e->listlen == 0) { in duk__find_matching_string_chain()
272 if (e->u.str16 != null16) { in duk__find_matching_string_chain()
275 if (DUK_HSTRING_GET_BYTELEN(h) == blen && in duk__find_matching_string_chain()
285 if (lst[i] != null16) { in duk__find_matching_string_chain()
288 if (DUK_HSTRING_GET_BYTELEN(h) == blen && in duk__find_matching_string_chain()
311 if (e->listlen == 0) { in duk__find_matching_string_chain()
312 if (e->u.str != NULL && in duk__find_matching_string_chain()
321 if (lst[i] != NULL && in duk__find_matching_string_chain()
333 #if defined(DUK_USE_HEAPPTR16)
352 if (e->listlen == 0) { in duk__remove_matching_hstring_chain()
353 if (e->u.str16 == h16) { in duk__remove_matching_hstring_chain()
362 if (lst[i] == h16) { in duk__remove_matching_hstring_chain()
387 if (e->listlen == 0) { in duk__remove_matching_hstring_chain()
389 if (e->u.str == h) { in duk__remove_matching_hstring_chain()
398 if (lst[i] == h) { in duk__remove_matching_hstring_chain()
411 #if defined(DUK_USE_DEBUG)
416 #if defined(DUK_USE_HEAPPTR16)
428 if (e->listlen == 0) {
429 #if defined(DUK_USE_HEAPPTR16)
436 #if defined(DUK_USE_HEAPPTR16)
443 #if defined(DUK_USE_HEAPPTR16)
444 if (lst[j] != null16) {
446 if (lst[j] != NULL) {
466 #if defined(DUK_USE_STRTAB_PROBE)
472 #if defined(DUK_USE_HEAPPTR16)
479 #if defined(DUK_USE_HEAPPTR16)
480 if (heap->strtable16[i] != null16 && heap->strtable16[i] != deleted16) {
482 if (heap->strtable[i] != NULL && heap->strtable[i] != DUK__DELETED_MARKER(heap)) {
490 #if defined(DUK_USE_HEAPPTR16)
497 #if defined(DUK_USE_HEAPPTR16)
507 #if defined(DUK_USE_HEAPPTR16)
513 #if defined(DUK_USE_HEAPPTR16)
517 if (e16 == null16) {
519 if (e == NULL) {
522 #if defined(DUK_USE_HEAPPTR16)
529 #if defined(DUK_USE_HEAPPTR16)
530 } else if (e16 == deleted16) {
532 } else if (e == DUK__DELETED_MARKER(heap)) {
536 #if defined(DUK_USE_HEAPPTR16)
551 #if defined(DUK_USE_HEAPPTR16)
565 #if defined(DUK_USE_HEAPPTR16)
571 if (!e) {
574 if (e != DUK__DELETED_MARKER(heap) && DUK_HSTRING_GET_BYTELEN(e) == blen) {
575 if (DUK_MEMCMP((const void *) str, (const void *) DUK_HSTRING_GET_DATA(e), (size_t) blen) == 0) {
591 #if defined(DUK_USE_HEAPPTR16)
599 #if defined(DUK_USE_HEAPPTR16)
610 #if defined(DUK_USE_HEAPPTR16)
616 #if defined(DUK_USE_HEAPPTR16)
617 if (e16 == null16) {
619 if (!e) {
624 #if defined(DUK_USE_HEAPPTR16)
625 if (e16 == h16) {
627 if (e == h) {
631 #if defined(DUK_USE_HEAPPTR16)
648 #if defined(DUK_USE_DEBUG)
652 #if defined(DUK_USE_HEAPPTR16)
662 #if defined(DUK_USE_DEBUG)
684 #if defined(DUK_USE_MARK_AND_SWEEP)
690 #if defined(DUK_USE_HEAPPTR16)
696 if (!new_entries) {
700 #if defined(DUK_USE_EXPLICIT_NULL_INIT)
702 #if defined(DUK_USE_HEAPPTR16)
709 #if defined(DUK_USE_HEAPPTR16)
721 #if defined(DUK_USE_HEAPPTR16)
726 if (e == NULL || e == DUK__DELETED_MARKER(heap)) {
741 #if defined(DUK_USE_HEAPPTR16)
763 if (new_size >= 0x80000000UL) {
771 /* rehash even if old and new sizes are the same to get rid of
794 if (new_free <= tmp1 || new_used <= tmp2) {
802 #if defined(DUK_USE_DEBUG)
808 #if defined(DUK_USE_HEAPPTR16)
816 #if defined(DUK_USE_HEAPPTR16)
836 #if defined(DUK_USE_MARK_AND_SWEEP)
841 * str/blen arguments while interning is in progress. For example, if
845 #if defined(DUK_USE_MARK_AND_SWEEP)
851 #if defined(DUK_USE_STRTAB_PROBE)
852 if (duk__recheck_strtab_size_probe(heap, heap->st_used + 1)) {
858 #if 0
864 if (x >= 0x20 && x <= 0x7e && x != '"' && x != '\\') {
874 #if defined(DUK_USE_HSTRING_EXTDATA) && defined(DUK_USE_EXTSTR_INTERN_CHECK)
880 if (!res) {
884 #if defined(DUK_USE_STRTAB_CHAIN)
885 if (duk__insert_hstring_chain(heap, res)) {
893 #if defined(DUK_USE_HEAPPTR16)
911 #if defined(DUK_USE_MARK_AND_SWEEP)
928 #if defined(DUK_USE_ROM_STRINGS)
937 if (blen == DUK_HSTRING_GET_BYTELEN(romstr) &&
949 #if defined(DUK_USE_STRTAB_CHAIN)
953 #if defined(DUK_USE_HEAPPTR16)
973 #if 0 /*unused*/
988 if (res) {
998 if (!res) {
1004 #if 0 /*unused*/
1024 if (!res) {
1031 #if defined(DUK_USE_REFERENCE_COUNTING)
1035 #if defined(DUK_USE_STRTAB_CHAIN)
1039 #if defined(DUK_USE_HEAPPTR16)
1052 #if defined(DUK_USE_MARK_AND_SWEEP) && defined(DUK_USE_MS_STRINGTABLE_RESIZE)
1065 #if defined(DUK_USE_STRTAB_CHAIN)
1075 #if defined(DUK_USE_STRTAB_CHAIN)
1082 #if defined(DUK_USE_HEAPPTR16)
1092 if (e->listlen > 0) {
1093 #if defined(DUK_USE_HEAPPTR16)
1101 #if defined(DUK_USE_HEAPPTR16)
1109 if (h != NULL) {
1114 #if defined(DUK_USE_HEAPPTR16)
1121 #if defined(DUK_USE_HEAPPTR16)
1128 if (h != NULL) {
1138 #if defined(DUK_USE_STRTAB_PROBE)
1143 #if defined(DUK_USE_HEAPPTR16)
1144 if (heap->strtable16) {
1146 if (heap->strtable) {
1149 #if defined(DUK_USE_HEAPPTR16)
1154 if (h == NULL || h == DUK_STRTAB_DELETED_MARKER(heap)) {
1162 #if 0 /* not strictly necessary */
1166 #if defined(DUK_USE_HEAPPTR16)
1171 #if 0 /* not strictly necessary */