| /third_party/parse5/packages/parse5/lib/parser/ |
| D | open-element-stack.test.ts | 25 const stack = new OpenElementStack(document, treeAdapter, stackHandler); constant 27 assert.strictEqual(stack.current, document); 28 assert.strictEqual(stack.stackTop, -1); 30 stack.push(element1, $.UNKNOWN); 31 assert.strictEqual(stack.current, element1); 32 assert.strictEqual(stack.stackTop, 0); 34 stack.push(element2, $.UNKNOWN); 35 assert.strictEqual(stack.current, element2); 36 assert.strictEqual(stack.stackTop, 1); 41 const stack = new OpenElementStack(treeAdapter.createDocument(), treeAdapter, stackHandler); constant [all …]
|
| /third_party/skia/third_party/externals/freetype/src/psaux/ |
| D | psstack.c | 58 CF2_Stack stack = NULL; in cf2_stack_init() local 61 if ( FT_QNEW( stack ) ) in cf2_stack_init() 64 stack->memory = memory; in cf2_stack_init() 65 stack->error = e; in cf2_stack_init() 68 if ( FT_QNEW_ARRAY( stack->buffer, stackSize ) ) in cf2_stack_init() 70 FT_FREE( stack ); in cf2_stack_init() 74 stack->stackSize = stackSize; in cf2_stack_init() 75 stack->top = stack->buffer; /* empty stack */ in cf2_stack_init() 77 return stack; in cf2_stack_init() 82 cf2_stack_free( CF2_Stack stack ) in cf2_stack_free() argument [all …]
|
| /third_party/selinux/libsepol/cil/src/ |
| D | cil_stack.c | 40 void cil_stack_init(struct cil_stack **stack) in cil_stack_init() argument 43 new_stack->stack = cil_malloc(sizeof(*(new_stack->stack)) * CIL_STACK_INIT_SIZE); in cil_stack_init() 46 *stack = new_stack; in cil_stack_init() 49 void cil_stack_destroy(struct cil_stack **stack) in cil_stack_destroy() argument 51 if (stack == NULL || *stack == NULL) { in cil_stack_destroy() 55 free((*stack)->stack); in cil_stack_destroy() 56 free(*stack); in cil_stack_destroy() 57 *stack = NULL; in cil_stack_destroy() 60 void cil_stack_empty(struct cil_stack *stack) in cil_stack_empty() argument 62 stack->pos = -1; in cil_stack_empty() [all …]
|
| D | cil_stack.h | 34 struct cil_stack_item *stack; member 44 #define cil_stack_for_each_starting_at(stack, start, pos, item) \ argument 45 …for (pos = start, item = cil_stack_peek_at(stack, pos); item != NULL; pos++, item = cil_stack_peek… 47 #define cil_stack_for_each(stack, pos, item) cil_stack_for_each_starting_at(stack, 0, pos, item) argument 50 void cil_stack_init(struct cil_stack **stack); 51 void cil_stack_destroy(struct cil_stack **stack); 53 void cil_stack_empty(struct cil_stack *stack); 54 int cil_stack_is_empty(struct cil_stack *stack); 55 int cil_stack_number_of_items(struct cil_stack *stack); 57 void cil_stack_push(struct cil_stack *stack, enum cil_flavor flavor, void *data); [all …]
|
| /third_party/skia/tests/ |
| D | ClipStackTest.cpp | 131 static void assert_count(skiatest::Reporter* reporter, const SkClipStack& stack, in assert_count() argument 133 SkClipStack::B2TIter iter(stack); in assert_count() 144 SkClipStack stack; in test_iterators() local 155 stack.clipRect(gRects[i], SkMatrix::I(), SkClipOp::kDifference, false); in test_iterators() 158 assert_count(reporter, stack, 4); in test_iterators() 164 SkClipStack::B2TIter iter(stack); in test_iterators() 180 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in test_iterators() 196 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in test_iterators() 246 SkClipStack stack; in test_bounds() local 255 stack.save(); in test_bounds() [all …]
|
| /third_party/pcre2/pcre2/src/sljit/ |
| D | sljitUtils.c | 177 struct sljit_stack *stack; in sljit_allocate_stack() local 185 stack = (struct sljit_stack*)SLJIT_MALLOC(sizeof(struct sljit_stack), allocator_data); in sljit_allocate_stack() 186 if (stack == NULL) in sljit_allocate_stack() 191 SLJIT_FREE(stack, allocator_data); in sljit_allocate_stack() 195 stack->min_start = (sljit_u8 *)ptr; in sljit_allocate_stack() 196 stack->end = stack->min_start + max_size; in sljit_allocate_stack() 197 stack->start = stack->end - start_size; in sljit_allocate_stack() 198 stack->top = stack->end; in sljit_allocate_stack() 199 return stack; in sljit_allocate_stack() 202 SLJIT_API_FUNC_ATTRIBUTE void SLJIT_FUNC sljit_free_stack(struct sljit_stack *stack, void *allocato… in sljit_free_stack() argument [all …]
|
| /third_party/mesa3d/src/mesa/main/ |
| D | matrix.c | 103 static void matrix_frustum(struct gl_matrix_stack* stack, in matrix_frustum() argument 121 _math_matrix_frustum(stack->Top, in matrix_frustum() 125 ctx->NewState |= stack->DirtyFlag; in matrix_frustum() 166 struct gl_matrix_stack *stack = get_named_matrix_stack(ctx, matrixMode, in _mesa_MatrixFrustumEXT() local 168 if (!stack) in _mesa_MatrixFrustumEXT() 171 matrix_frustum(stack, in _mesa_MatrixFrustumEXT() 180 matrix_ortho(struct gl_matrix_stack* stack, in matrix_ortho() argument 202 _math_matrix_ortho( stack->Top, in matrix_ortho() 206 ctx->NewState |= stack->DirtyFlag; in matrix_ortho() 247 struct gl_matrix_stack *stack = get_named_matrix_stack(ctx, matrixMode, in _mesa_MatrixOrthoEXT() local [all …]
|
| /third_party/musl/src/misc/ |
| D | realpath.c | 16 char stack[PATH_MAX+1]; in realpath() local 25 l = strnlen(filename, sizeof stack); in realpath() 31 p = sizeof stack - l - 1; in realpath() 33 memcpy(stack+p, filename, l+1); in realpath() 40 for (; ; p+=slash_len(stack+p)) { in realpath() 43 if (stack[p] == '/') { in realpath() 50 if (stack[p] == '/' && stack[p+1] != '/') in realpath() 55 char *z = __strchrnul(stack+p, '/'); in realpath() 56 l0 = l = z-(stack+p); in realpath() 61 if (l==1 && stack[p]=='.') { in realpath() [all …]
|
| /third_party/libffi/src/pa/ |
| D | ffi.c | 142 void ffi_prep_args_pa32(UINT32 *stack, extended_cif *ecif, unsigned bytes) in ffi_prep_args_pa32() argument 151 debug(1, "%s: stack = %p, ecif = %p, bytes = %u\n", __FUNCTION__, stack, in ffi_prep_args_pa32() 164 *(SINT32 *)(stack - slot) = *(SINT8 *)(*p_argv); in ffi_prep_args_pa32() 168 *(UINT32 *)(stack - slot) = *(UINT8 *)(*p_argv); in ffi_prep_args_pa32() 172 *(SINT32 *)(stack - slot) = *(SINT16 *)(*p_argv); in ffi_prep_args_pa32() 176 *(UINT32 *)(stack - slot) = *(UINT16 *)(*p_argv); in ffi_prep_args_pa32() 184 *(UINT32 *)(stack - slot) = *(UINT32 *)(*p_argv); in ffi_prep_args_pa32() 191 *(UINT64 *)(stack - slot) = *(UINT64 *)(*p_argv); in ffi_prep_args_pa32() 197 *(UINT32 *)(stack - slot) = *(UINT32 *)(*p_argv); in ffi_prep_args_pa32() 201 case 0: fldw(stack - slot, fr4); break; in ffi_prep_args_pa32() [all …]
|
| /third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
| D | sfn_callstack.cpp | 45 ++m_bc.stack.push; in push() 48 ++m_bc.stack.push_wqm; in push() 51 ++m_bc.stack.loop; in push() 64 --m_bc.stack.push; in pop() 65 assert(m_bc.stack.push >= 0); in pop() 68 --m_bc.stack.push_wqm; in pop() 69 assert(m_bc.stack.push_wqm >= 0); in pop() 72 --m_bc.stack.loop; in pop() 73 assert(m_bc.stack.loop >= 0); in pop() 84 r600_stack_info& stack = m_bc.stack; in update_max_depth() local [all …]
|
| /third_party/node/deps/v8/src/torque/ |
| D | cc-generator.cc | 55 Stack<std::string> stack; in EmitBlock() local 59 stack.Push(DefinitionToVariable(def)); in EmitBlock() 64 << " " << stack.Top() << "{}; USE(" << stack.Top() << ");\n"; in EmitBlock() 69 TorqueCodeGenerator::EmitInstruction(instruction, &stack); in EmitBlock() 71 return stack; in EmitBlock() 86 Stack<std::string>* stack) { in EmitInstruction() argument 92 Stack<std::string>* stack) { in EmitInstruction() argument 98 Stack<std::string>* stack) { in EmitInstruction() argument 104 std::vector<std::string> constexpr_arguments, Stack<std::string>* stack) { in ProcessArgumentsCommon() argument 114 VisitResult arg = VisitResult(type, stack->TopRange(slot_count)); in ProcessArgumentsCommon() [all …]
|
| D | csa-generator.cc | 70 Stack<std::string> stack; in EmitBlock() local 75 stack.Push(DefinitionToVariable(def)); in EmitBlock() 79 << "> " << stack.Top() << ";\n"; in EmitBlock() 80 phi_names << ", &" << stack.Top(); in EmitBlock() 86 TorqueCodeGenerator::EmitInstruction(instruction, &stack); in EmitBlock() 88 return stack; in EmitBlock() 104 Stack<std::string>* stack) { in EmitInstruction() argument 110 stack->Push(str); in EmitInstruction() 116 Stack<std::string>* stack) { in EmitInstruction() argument 120 stack->Push(str); in EmitInstruction() [all …]
|
| D | instructions.cc | 37 void PeekInstruction::TypeInstruction(Stack<const Type*>* stack, in TypeInstruction() argument 39 const Type* type = stack->Peek(slot); in TypeInstruction() 48 stack->Push(type); in TypeInstruction() 56 void PokeInstruction::TypeInstruction(Stack<const Type*>* stack, in TypeInstruction() argument 58 const Type* type = stack->Top(); in TypeInstruction() 63 stack->Poke(slot, type); in TypeInstruction() 64 stack->Pop(); in TypeInstruction() 72 void DeleteRangeInstruction::TypeInstruction(Stack<const Type*>* stack, in TypeInstruction() argument 74 stack->DeleteRange(range); in TypeInstruction() 83 Stack<const Type*>* stack, ControlFlowGraph* cfg) const { in TypeInstruction() argument [all …]
|
| D | torque-code-generator.cc | 28 Stack<std::string>* stack) { in EmitInstruction() argument 39 EmitIRAnnotation(instruction.Cast<T>(), stack); \ in EmitInstruction() 41 return EmitInstruction(instruction.Cast<T>(), stack); in EmitInstruction() 48 Stack<std::string>* stack) { in EmitInstruction() argument 49 stack->Push(stack->Peek(instruction.slot)); in EmitInstruction() 53 Stack<std::string>* stack) { in EmitInstruction() argument 54 stack->Poke(instruction.slot, stack->Top()); in EmitInstruction() 55 stack->Pop(); in EmitInstruction() 59 const DeleteRangeInstruction& instruction, Stack<std::string>* stack) { in EmitInstruction() argument 60 stack->DeleteRange(instruction.range); in EmitInstruction()
|
| /third_party/elfutils/libdwfl/ |
| D | frame_unwind.c | 96 do_push (struct eval_stack *stack, Dwarf_Addr val) in do_push() argument 98 if (stack->used >= DWARF_EXPR_STACK_MAX) in do_push() 103 if (stack->used == stack->allocated) in do_push() 105 stack->allocated = MAX (stack->allocated * 2, 32); in do_push() 107 new_addrs = realloc (stack->addrs, in do_push() 108 stack->allocated * sizeof (*stack->addrs)); in do_push() 114 stack->addrs = new_addrs; in do_push() 116 stack->addrs[stack->used++] = val; in do_push() 121 do_pop (struct eval_stack *stack, Dwarf_Addr *val) in do_pop() argument 123 if (stack->used == 0) in do_pop() [all …]
|
| /third_party/jerryscript/jerry-core/parser/js/ |
| D | js-parser-mem.c | 346 parser_data_init (&context_p->stack, PARSER_STACK_PAGE_SIZE); in parser_stack_init() 356 parser_data_free (&context_p->stack, in parser_stack_free() 373 parser_mem_page_t *page_p = context_p->stack.first_p; in parser_stack_push_uint8() 379 || context_p->stack_top_uint8 == page_p->bytes[context_p->stack.last_position - 1]); in parser_stack_push_uint8() 381 if (context_p->stack.last_position >= PARSER_STACK_PAGE_SIZE) in parser_stack_push_uint8() 394 page_p->next_p = context_p->stack.first_p; in parser_stack_push_uint8() 395 context_p->stack.last_position = 0; in parser_stack_push_uint8() 396 context_p->stack.first_p = page_p; in parser_stack_push_uint8() 399 page_p->bytes[context_p->stack.last_position++] = uint8_value; in parser_stack_push_uint8() 409 parser_mem_page_t *page_p = context_p->stack.first_p; in parser_stack_pop_uint8() [all …]
|
| /third_party/node/deps/npm/tap-snapshots/test/lib/utils/ |
| D | log-file.js.test.cjs | 48 14 error pre at stack trace line 0 49 14 error pre at stack trace line 1 50 14 error pre at stack trace line 2 51 14 error pre at stack trace line 3 52 14 error pre at stack trace line 4 53 14 error pre at stack trace line 5 54 14 error pre at stack trace line 6 55 14 error pre at stack trace line 7 56 14 error pre at stack trace line 8 57 14 error pre at stack trace line 9 Error: message2 [all …]
|
| /third_party/ltp/lib/ |
| D | cloner.c | 54 # define clone(fn, stack, flags, arg, ptid, tls, ctid) \ argument 55 clone(fn, stack, flags, arg) 66 size_t stack_size, void *stack, pid_t *ptid, void *tls, pid_t *ctid) in ltp_clone_() argument 71 ret = __clone2(fn, stack, stack_size, flags, arg, ptid, tls, ctid); in ltp_clone_() 83 if (stack) in ltp_clone_() 84 stack += stack_size; in ltp_clone_() 87 ret = clone(fn, stack, flags, arg, ptid, tls, ctid); in ltp_clone_() 94 size_t stack_size, void *stack) in ltp_clone() argument 96 return ltp_clone_(flags, fn, arg, stack_size, stack, NULL, NULL, NULL); in ltp_clone() 100 size_t stack_size, void *stack, ...) in ltp_clone7() argument [all …]
|
| /third_party/libwebsockets/lib/tls/mbedtls/wrapper/library/ |
| D | ssl_stack.c | 32 OPENSSL_STACK *stack; in OPENSSL_sk_new() local 35 stack = ssl_mem_zalloc(sizeof(OPENSSL_STACK)); in OPENSSL_sk_new() 36 if (!stack) { in OPENSSL_sk_new() 47 stack->data = data; in OPENSSL_sk_new() 48 stack->num_alloc = MIN_NODES; in OPENSSL_sk_new() 49 stack->c = c; in OPENSSL_sk_new() 51 return stack; in OPENSSL_sk_new() 54 ssl_mem_free(stack); in OPENSSL_sk_new() 70 void OPENSSL_sk_free(OPENSSL_STACK *stack) in OPENSSL_sk_free() argument 72 SSL_ASSERT3(stack); in OPENSSL_sk_free() [all …]
|
| /third_party/node/deps/npm/node_modules/depd/ |
| D | index.js | 85 function createStackString (stack) { argument 92 for (var i = 0; i < stack.length; i++) { 93 str += '\n at ' + stack[i].toString() 108 var stack = getStack() 109 var site = callSiteLocation(stack[1]) 199 var stack = getStack() 205 callSite = callSiteLocation(stack[1]) 211 depSite = callSiteLocation(stack[i]) 216 for (; i < stack.length; i++) { 217 caller = callSiteLocation(stack[i]) [all …]
|
| /third_party/musl/src/regex/ |
| D | regcomp.c | 297 union tre_stack_item *stack; member 309 s->stack = xmalloc(sizeof(*s->stack) * size); in tre_stack_new() 310 if (s->stack == NULL) in tre_stack_new() 326 xfree(s->stack); in tre_stack_destroy() 341 s->stack[s->ptr] = value; in tre_stack_push() 357 new_buffer = xrealloc(s->stack, sizeof(*new_buffer) * new_size); in tre_stack_push() 364 s->stack = new_buffer; in tre_stack_push() 383 return s->stack[--s->ptr].typetag ## _value; \ 399 tre_stack_t *stack; member 965 tre_stack_t *stack = ctx->stack; in tre_parse() local [all …]
|
| /third_party/musl/porting/uniproton/kernel/src/regex/ |
| D | regcomp.c | 297 union tre_stack_item *stack; member 309 s->stack = xmalloc(sizeof(*s->stack) * size); in tre_stack_new() 310 if (s->stack == NULL) in tre_stack_new() 326 xfree(s->stack); in tre_stack_destroy() 341 s->stack[s->ptr] = value; in tre_stack_push() 357 new_buffer = xrealloc(s->stack, sizeof(*new_buffer) * new_size); in tre_stack_push() 364 s->stack = new_buffer; in tre_stack_push() 383 return s->stack[--s->ptr].typetag ## _value; \ 399 tre_stack_t *stack; member 965 tre_stack_t *stack = ctx->stack; in tre_parse() local [all …]
|
| /third_party/musl/porting/liteos_m_iccarm/kernel/src/regex/ |
| D | regcomp.c | 297 union tre_stack_item *stack; member 309 s->stack = xmalloc(sizeof(*s->stack) * size); in tre_stack_new() 310 if (s->stack == NULL) in tre_stack_new() 326 xfree(s->stack); in tre_stack_destroy() 341 s->stack[s->ptr] = value; in tre_stack_push() 357 new_buffer = xrealloc(s->stack, sizeof(*new_buffer) * new_size); in tre_stack_push() 364 s->stack = new_buffer; in tre_stack_push() 383 return s->stack[--s->ptr].typetag ## _value; \ 399 tre_stack_t *stack; member 966 tre_stack_t *stack = ctx->stack; in tre_parse() local [all …]
|
| /third_party/musl/porting/liteos_m/kernel/src/regex/ |
| D | regcomp.c | 297 union tre_stack_item *stack; member 309 s->stack = xmalloc(sizeof(*s->stack) * size); in tre_stack_new() 310 if (s->stack == NULL) in tre_stack_new() 326 xfree(s->stack); in tre_stack_destroy() 341 s->stack[s->ptr] = value; in tre_stack_push() 357 new_buffer = xrealloc(s->stack, sizeof(*new_buffer) * new_size); in tre_stack_push() 364 s->stack = new_buffer; in tre_stack_push() 383 return s->stack[--s->ptr].typetag ## _value; \ 399 tre_stack_t *stack; member 965 tre_stack_t *stack = ctx->stack; in tre_parse() local [all …]
|
| /third_party/libffi/src/ia64/ |
| D | ffi.c | 295 struct ia64_args *stack; in ffi_call() local 306 stack = alloca (cif->bytes); in ffi_call() 315 stack->gp_regs[gpcount++] = *(SINT8 *)avalue[i]; in ffi_call() 318 stack->gp_regs[gpcount++] = *(UINT8 *)avalue[i]; in ffi_call() 321 stack->gp_regs[gpcount++] = *(SINT16 *)avalue[i]; in ffi_call() 324 stack->gp_regs[gpcount++] = *(UINT16 *)avalue[i]; in ffi_call() 327 stack->gp_regs[gpcount++] = *(SINT32 *)avalue[i]; in ffi_call() 330 stack->gp_regs[gpcount++] = *(UINT32 *)avalue[i]; in ffi_call() 334 stack->gp_regs[gpcount++] = *(UINT64 *)avalue[i]; in ffi_call() 338 stack->gp_regs[gpcount++] = (UINT64)(PTR64) *(void **)avalue[i]; in ffi_call() [all …]
|