Lines Matching refs:alloc
218 size_t alloc; member
258 if (chunk != NULL && chunk->union_.used + num_bytes > chunk->alloc) { in parser_alloc()
261 sizeof(mp_parse_chunk_t) + chunk->alloc, in parser_alloc()
262 sizeof(mp_parse_chunk_t) + chunk->alloc + num_bytes, false); in parser_alloc()
265 (void)m_renew_maybe(byte, chunk, sizeof(mp_parse_chunk_t) + chunk->alloc, in parser_alloc()
267 chunk->alloc = chunk->union_.used; in parser_alloc()
273 chunk->alloc += num_bytes; in parser_alloc()
279 size_t alloc = MICROPY_ALLOC_PARSE_CHUNK_INIT; in parser_alloc() local
280 if (alloc < num_bytes) { in parser_alloc()
281 alloc = num_bytes; in parser_alloc()
283 chunk = (mp_parse_chunk_t *)m_new(byte, sizeof(mp_parse_chunk_t) + alloc); in parser_alloc()
284 chunk->alloc = alloc; in parser_alloc()
1135 sizeof(mp_parse_chunk_t) + parser.cur_chunk->alloc, in mp_parse()
1138 parser.cur_chunk->alloc = parser.cur_chunk->union_.used; in mp_parse()
1191 m_del(byte, chunk, sizeof(mp_parse_chunk_t) + chunk->alloc); in mp_parse_tree_clear()