Lines Matching defs:sel

5449   upb_selector_t sel;
5452 ok = upb_handlers_getselector(f, type, &sel);
5457 return sel;
5462 int32_t sel = trygetsel(h, f, type);
5463 UPB_ASSERT(sel >= 0);
5464 return sel;
5472 static bool doset(upb_handlers *h, int32_t sel, const upb_fielddef *f,
5479 UPB_ASSERT(!h->table[sel].func);
5511 const void *table_return_type = h->table[sel].attr.return_closure_type;
5521 h->table[sel].func = (upb_func*)func;
5522 h->table[sel].attr = set_attr;
5535 upb_selector_t sel;
5543 h->table[sel = handlers_getsel(h, f, UPB_HANDLER_STARTSEQ)].func) {
5544 ret = h->table[sel].attr.return_closure_type;
5548 h->table[sel = handlers_getsel(h, f, UPB_HANDLER_STARTSTR)].func) {
5549 ret = h->table[sel].attr.return_closure_type;
5554 * h->table[sel = handlers_getsel(h, f, UPB_HANDLER_STARTSUBMSG)].func) {
5555 * ret = h->table[sel].attr.return_closure_type;
5571 upb_selector_t sel = handlers_getsel(h, f, type);
5572 if (h->table[sel].func) return true;
5574 attr = &h->table[sel].attr;
5615 int32_t sel = trygetsel(h, f, handlertype); \
5616 return doset(h, sel, f, handlertype, (upb_func *)func, attr); \
5681 bool upb_handlers_getattr(const upb_handlers *h, upb_selector_t sel,
5683 if (!upb_handlers_gethandler(h, sel, NULL))
5685 *attr = h->table[sel].attr;
5690 upb_selector_t sel) {
5691 /* STARTSUBMSG selector in sel is the field's selector base. */
5692 return SUBH(h, sel - UPB_STATIC_SELECTOR_COUNT);
6524 static void putsel(compiler *c, opcode op, upb_selector_t sel,
6526 if (upb_handlers_gethandler(h, sel, NULL)) {
6527 putop(c, op, sel);
6662 upb_selector_t sel;
6678 sel = getsel(f, upb_handlers_getprimitivehandlertype(f));
6687 putop(c, parse_type, sel);
6694 putop(c, parse_type, sel);
6706 putop(c, parse_type, sel);
9349 upb_selector_t sel;
9350 bool ok = upb_handlers_getselector(p->top->f, type, &sel);
9352 return sel;
9449 static bool base64_push(upb_json_parser *p, upb_selector_t sel, const char *ptr,
9476 upb_sink_putstring(p->top->sink, sel, output, 3, NULL);
9501 upb_sink_putstring(p->top->sink, sel, &output, 1, NULL);
9518 upb_sink_putstring(p->top->sink, sel, output, 2, NULL);
9661 static void multipart_start(upb_json_parser *p, upb_selector_t sel) {
9665 p->string_selector = sel;
10201 upb_selector_t sel;
10208 sel = getsel_for_handlertype(p, UPB_HANDLER_STARTSTR);
10209 upb_sink_startstr(p->top->sink, sel, 0, &inner->sink);
10246 upb_selector_t sel;
10251 sel = getsel_for_handlertype(p, UPB_HANDLER_STARTSTR);
10252 upb_sink_startstr(p->top->sink, sel, 0, &inner->sink);
10253 sel = getsel_for_handlertype(p, UPB_HANDLER_STRING);
10254 upb_sink_putstring(inner->sink, sel, buf, len, NULL);
10255 sel = getsel_for_handlertype(p, UPB_HANDLER_ENDSTR);
10256 upb_sink_endstr(inner->sink, sel);
10310 upb_selector_t sel = getsel_for_handlertype(p, UPB_HANDLER_ENDSTR);
10311 upb_sink_endstr(p->top->sink, sel);
10327 upb_selector_t sel = parser_getsel(p);
10328 upb_sink_putint32(p->top->sink, sel, int_val);
10741 upb_selector_t sel;
10748 sel = getsel_for_handlertype(p, UPB_HANDLER_STARTSTR);
10749 upb_sink_startstr(p->top->sink, sel, 0, &inner->sink);
10759 upb_json_parser *p, upb_selector_t sel, const char *ptr, size_t len) {
10765 upb_sink_putstring(p->top->sink, sel, "_", 1, NULL);
10766 upb_sink_putstring(p->top->sink, sel, &lower, 1, NULL);
10768 upb_sink_putstring(p->top->sink, sel, ptr, 1, NULL);
10776 upb_selector_t sel;
10784 sel = getsel_for_handlertype(p, UPB_HANDLER_ENDSTR);
10785 upb_sink_endstr(p->top->sink, sel);
10844 upb_selector_t sel = getsel_for_handlertype(p, UPB_HANDLER_STARTSTR);
10845 upb_sink_startstr(p->top->sink, sel, len, &subsink);
10846 sel = getsel_for_handlertype(p, UPB_HANDLER_STRING);
10847 upb_sink_putstring(subsink, sel, buf, len, NULL);
10848 sel = getsel_for_handlertype(p, UPB_HANDLER_ENDSTR);
10849 upb_sink_endstr(subsink, sel);
10873 upb_selector_t sel;
10886 sel = getsel_for_handlertype(p, UPB_HANDLER_STARTSUBMSG);
10887 upb_sink_startsubmsg(p->top->sink, sel, &inner->sink);
10969 upb_selector_t sel;
10980 ok = upb_handlers_getselector(mapfield, UPB_HANDLER_ENDSUBMSG, &sel);
10982 upb_sink_endsubmsg(p->top->sink, (p->top + 1)->sink, sel);
11009 upb_selector_t sel;
11016 sel = getsel_for_handlertype(p, UPB_HANDLER_STARTSEQ);
11017 upb_sink_startseq(p->top->sink, sel, &inner->sink);
11026 upb_selector_t sel;
11033 sel = getsel_for_handlertype(p, UPB_HANDLER_STARTSUBMSG);
11034 upb_sink_startsubmsg(p->top->sink, sel, &inner->sink);
11086 upb_selector_t sel;
11088 sel = getsel_for_handlertype(p, UPB_HANDLER_ENDSEQ);
11089 upb_sink_endseq(p->top->sink, sel);
11091 upb_selector_t sel;
11095 sel = getsel_for_handlertype(p, UPB_HANDLER_ENDSUBMSG);
11096 upb_sink_endsubmsg(p->top->sink, (p->top + 1)->sink, sel);
11121 upb_selector_t sel;
11165 sel = getsel_for_handlertype(p, UPB_HANDLER_STARTSEQ);
11166 upb_sink_startseq(p->top->sink, sel, &inner->sink);
11176 upb_selector_t sel;
11186 sel = getsel_for_handlertype(p, UPB_HANDLER_ENDSEQ);
11187 upb_sink_endseq(p->top->sink, sel);
11226 upb_selector_t sel;
11317 sel = getsel_for_handlertype(p, UPB_HANDLER_STARTSTR);
11318 upb_sink_startstr(p->top->sink, sel, 0, &inner->sink);
11319 sel = getsel_for_handlertype(p, UPB_HANDLER_STRING);
11320 upb_sink_putstring(inner->sink, sel, p->top->any_frame->stringsink.ptr,
11322 sel = getsel_for_handlertype(p, UPB_HANDLER_ENDSTR);
11323 upb_sink_endstr(inner->sink, sel);