/external/webrtc/webrtc/libjingle/xmllite/ |
D | xmlnsstack_unittest.cc | 27 XmlnsStack stack; in TEST() local 29 EXPECT_EQ(std::string(NS_XML), stack.NsForPrefix("xml").first); in TEST() 30 EXPECT_EQ(std::string(NS_XMLNS), stack.NsForPrefix("xmlns").first); in TEST() 31 EXPECT_EQ("", stack.NsForPrefix("").first); in TEST() 33 EXPECT_EQ("xml", stack.PrefixForNs(NS_XML, false).first); in TEST() 34 EXPECT_EQ("xmlns", stack.PrefixForNs(NS_XMLNS, false).first); in TEST() 35 EXPECT_EQ("", stack.PrefixForNs("", false).first); in TEST() 36 EXPECT_EQ("", stack.PrefixForNs("", true).first); in TEST() 40 XmlnsStack stack; in TEST() local 41 stack.AddXmlns("pre1", "ns1"); in TEST() [all …]
|
/external/apache-commons-bcel/src/main/java/org/apache/bcel/verifier/structurals/ |
D | ExecutionVisitor.java | 84 private OperandStack stack() { in stack() method in ExecutionVisitor 126 stack().pop(); // pop the index int in visitAALOAD() 128 final Type t = stack().pop(); // Pop Array type in visitAALOAD() 130 stack().push(Type.NULL); in visitAALOAD() 134 stack().push(at.getElementType()); in visitAALOAD() 140 stack().pop(); in visitAASTORE() 141 stack().pop(); in visitAASTORE() 142 stack().pop(); in visitAASTORE() 147 stack().push(Type.NULL); in visitACONST_NULL() 152 stack().push(locals().get(o.getIndex())); in visitALOAD() [all …]
|
D | InstConstraintVisitor.java | 91 private OperandStack stack() { in stack() method in InstConstraintVisitor 208 if (consume > stack().slotsUsed()) { in _visitStackAccessor() 210 …annot consume "+consume+" stack slots: only "+stack().slotsUsed()+" slot(s) left on stack!\nStack:… in _visitStackAccessor() 214 if ( produce + stack().slotsUsed() > stack().maxStack() ) { in _visitStackAccessor() 215 …intViolated(o, "Cannot produce "+produce+" stack slots: only "+(stack().maxStack()-stack().slotsUs… in _visitStackAccessor() 216 " free stack slot(s) left.\nStack:\n"+stack()); in _visitStackAccessor() 373 if ((stack().maxStack() - stack().slotsUsed()) < o.getType(cpg).getSize()) { in visitLoadInstruction() 385 …if (stack().isEmpty()) { // Don't bother about 1 or 2 stack slots used. This check is implicitly d… in visitStoreInstruction() 390 … if (! (stack().peek() == o.getType(cpg)) ) {// the other xSTORE types are singletons in BCEL. in visitStoreInstruction() 391 …ntViolated(o, "Stack top type and STOREing Instruction type mismatch: Stack top: '"+stack().peek()+ in visitStoreInstruction() [all …]
|
D | OperandStack.java | 39 private ArrayList<Type> stack = new ArrayList<>(); field in OperandStack 68 final ArrayList<Type> clone = (ArrayList<Type>) this.stack.clone(); in clone() 69 newstack.stack = clone; in clone() 77 stack = new ArrayList<>(); in clear() 83 public int hashCode() { return stack.hashCode(); } in hashCode() 96 return this.stack.equals(s.stack); in equals() 112 return stack.isEmpty(); in isEmpty() 134 return stack.get(size()-i-1); in peek() 141 final Type e = stack.remove(size()-1); in pop() 169 stack.add(type); in push() [all …]
|
/external/proguard/src/proguard/evaluation/ |
D | Processor.java | 39 private final Stack stack; field in Processor 59 Stack stack, in Processor() argument 66 this.stack = stack; in Processor() 87 stack.push(valueFactory.createReferenceValueNull()); in visitSimpleInstruction() 99 stack.push(valueFactory.createIntegerValue(simpleInstruction.constant)); in visitSimpleInstruction() 104 stack.push(valueFactory.createLongValue(simpleInstruction.constant)); in visitSimpleInstruction() 110 stack.push(valueFactory.createFloatValue((float)simpleInstruction.constant)); in visitSimpleInstruction() 115 stack.push(valueFactory.createDoubleValue((double)simpleInstruction.constant)); in visitSimpleInstruction() 123 IntegerValue arrayIndex = stack.ipop(); in visitSimpleInstruction() 124 ReferenceValue arrayReference = stack.apop(); in visitSimpleInstruction() [all …]
|
/external/freetype/src/psaux/ |
D | psstack.c | 59 CF2_Stack stack = NULL; in cf2_stack_init() local 62 if ( !FT_NEW( stack ) ) in cf2_stack_init() 65 stack->memory = memory; in cf2_stack_init() 66 stack->error = e; in cf2_stack_init() 70 if ( FT_NEW_ARRAY( stack->buffer, stackSize ) ) in cf2_stack_init() 72 FT_FREE( stack ); in cf2_stack_init() 76 stack->stackSize = stackSize; in cf2_stack_init() 77 stack->top = stack->buffer; /* empty stack */ in cf2_stack_init() 79 return stack; in cf2_stack_init() 84 cf2_stack_free( CF2_Stack stack ) in cf2_stack_free() argument [all …]
|
/external/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); 56 void cil_stack_push(struct cil_stack *stack, enum cil_flavor flavor, void *data); 57 struct cil_stack_item *cil_stack_pop(struct cil_stack *stack); [all …]
|
/external/epid-sdk/epid/common/src/ |
D | stack.c | 32 bool CreateStack(size_t element_size, Stack** stack) { in CreateStack() argument 33 if (!stack || 0 == element_size) return false; in CreateStack() 34 *stack = SAFE_ALLOC(sizeof(Stack)); in CreateStack() 35 if (!*stack) return false; in CreateStack() 36 (*stack)->element_size = element_size; in CreateStack() 40 void* StackPushN(Stack* stack, size_t n, void* elements) { in StackPushN() argument 41 if (!stack) return 0; in StackPushN() 43 size_t max_size_required = stack->top + n; in StackPushN() 44 if (n > (SIZE_MAX / stack->element_size) - stack->top) in StackPushN() 46 if (max_size_required > stack->max_size) { in StackPushN() [all …]
|
/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/ |
D | DescendingVisitor.java | 35 private final Stack<Object> stack = new Stack<>(); field in DescendingVisitor 52 final int size = stack.size(); in predecessor() 57 return stack.elementAt(size - (level + 2)); // size - 1 == current in predecessor() 65 return stack.peek(); in current() 91 stack.push(_clazz); in visitJavaClass() 106 stack.pop(); in visitJavaClass() 115 stack.push(annotation); in visitAnnotation() 121 stack.pop(); in visitAnnotation() 130 stack.push(annotationEntry); in visitAnnotationEntry() 132 stack.pop(); in visitAnnotationEntry() [all …]
|
/external/skia/tests/ |
D | ClipStackTest.cpp | 146 static void assert_count(skiatest::Reporter* reporter, const SkClipStack& stack, in assert_count() argument 148 SkClipStack::B2TIter iter(stack); in assert_count() 159 SkClipStack stack; in test_iterators() local 170 stack.clipRect(gRects[i], SkMatrix::I(), kUnion_SkClipOp, false); in test_iterators() 173 assert_count(reporter, stack, 4); in test_iterators() 179 SkClipStack::B2TIter iter(stack); in test_iterators() 195 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in test_iterators() 211 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in test_iterators() 276 SkClipStack stack; in test_bounds() local 285 stack.save(); in test_bounds() [all …]
|
/external/skqp/tests/ |
D | ClipStackTest.cpp | 146 static void assert_count(skiatest::Reporter* reporter, const SkClipStack& stack, in assert_count() argument 148 SkClipStack::B2TIter iter(stack); in assert_count() 159 SkClipStack stack; in test_iterators() local 170 stack.clipRect(gRects[i], SkMatrix::I(), kUnion_SkClipOp, false); in test_iterators() 173 assert_count(reporter, stack, 4); in test_iterators() 179 SkClipStack::B2TIter iter(stack); in test_iterators() 195 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in test_iterators() 211 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in test_iterators() 276 SkClipStack stack; in test_bounds() local 285 stack.save(); in test_bounds() [all …]
|
/external/libcxx/include/ |
D | stack | 2 //===---------------------------- stack -----------------------------------===// 15 stack synopsis 21 class stack 34 stack() = default; 35 ~stack() = default; 37 stack(const stack& q) = default; 38 stack(stack&& q) = default; 40 stack& operator=(const stack& q) = default; 41 stack& operator=(stack&& q) = default; 43 explicit stack(const container_type& c); [all …]
|
/external/easymock/src/org/easymock/internal/ |
D | LastControl.java | 48 Stack<IArgumentMatcher> stack = threadToArgumentMatcherStack.get(); in reportMatcher() local 49 if (stack == null) { in reportMatcher() 50 stack = new Stack<IArgumentMatcher>(); in reportMatcher() 51 threadToArgumentMatcherStack.set(stack); in reportMatcher() 53 stack.push(matcher); in reportMatcher() 57 Stack<IArgumentMatcher> stack = threadToArgumentMatcherStack.get(); in pullMatchers() local 58 if (stack == null) { in pullMatchers() 62 return new ArrayList<IArgumentMatcher>(stack); in pullMatchers() 66 Stack<IArgumentMatcher> stack = threadToArgumentMatcherStack.get(); in reportAnd() local 67 assertState(stack != null, "no matchers found."); in reportAnd() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/ |
D | pr30821.mir | 1 # RUN: llc -x mir < %s -run-pass=greedy,virtregrewriter,stack-slot-coloring | FileCheck %s 47 stack: 49 stack-id: 0, callee-saved-register: '', callee-saved-restored: true, 52 stack-id: 0, callee-saved-register: '', callee-saved-restored: true, 55 stack-id: 0, callee-saved-register: '', callee-saved-restored: true, 61 ; To trick stack-slot-colouring to run its dead-store-elimination phase, 68 ; virtreg gets spilt; the corresponding stack slots merged; and faulty code 72 …$xmm0 = MOVUPDrm %stack.2.india, 1, $noreg, 0, $noreg :: (volatile dereferenceable load 16 from %i… 73 …$xmm1 = MOVUPDrm %stack.2.india, 1, $noreg, 0, $noreg :: (volatile dereferenceable load 16 from %i… 74 …$xmm2 = MOVUPDrm %stack.2.india, 1, $noreg, 0, $noreg :: (volatile dereferenceable load 16 from %i… [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | BinaryTreeTraverser.java | 100 private final Deque<T> stack; 103 this.stack = new ArrayDeque<T>(); 104 stack.addLast(root); 109 return !stack.isEmpty(); 114 T result = stack.removeLast(); 115 pushIfPresent(stack, rightChild(result)); 116 pushIfPresent(stack, leftChild(result)); 122 return stack.getLast(); 135 private final Deque<T> stack; 139 this.stack = new ArrayDeque<T>(); [all …]
|
/external/pcre/dist2/src/sljit/ |
D | sljitUtils.c | 208 struct sljit_stack *stack; in sljit_allocate_stack() local 233 stack = (struct sljit_stack*)SLJIT_MALLOC(sizeof(struct sljit_stack), allocator_data); in sljit_allocate_stack() 234 if (!stack) in sljit_allocate_stack() 243 SLJIT_FREE(stack, allocator_data); in sljit_allocate_stack() 247 stack->min_start = (sljit_u8 *)ptr; in sljit_allocate_stack() 248 stack->end = stack->min_start + max_size; in sljit_allocate_stack() 249 stack->start = stack->end; in sljit_allocate_stack() 251 if (sljit_stack_resize(stack, stack->end - start_size) == NULL) { in sljit_allocate_stack() 252 sljit_free_stack(stack, allocator_data); in sljit_allocate_stack() 261 SLJIT_FREE(stack, allocator_data); in sljit_allocate_stack() [all …]
|
/external/autotest/tko/ |
D | status_lib_unittest.py | 107 stack = status_lib.status_stack() 108 self.assertEquals(stack.current_status(), "NOSTATUS") 112 stack = status_lib.status_stack() 113 stack.update("FAIL") 114 stack.start() 115 self.assertEquals(stack.current_status(), "NOSTATUS") 119 stack = status_lib.status_stack() 120 self.assertEquals(stack.size(), 0) 121 stack.start() 122 stack.end() [all …]
|
/external/python/cpython2/Modules/_ctypes/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 …]
|
/external/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 …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/ |
D | sgpr-spill-wrong-stack-id.mir | 1 …-verify-machineinstrs -stress-regalloc=3 -start-before=greedy -stop-after=stack-slot-coloring -o -… 2 …ineinstrs -stress-regalloc=3 -start-before=greedy -stop-after=stack-slot-coloring -no-stack-slot-s… 4 # Make sure that stack slot coloring doesn't try to merge frame 6 # Even when stack slot sharing was disabled, it was still moving the 25 # SHARE: stack: 27 # SHARE: stack-id: 0, callee-saved-register: '', callee-saved-restored: true, 30 # SHARE: stack-id: 1, callee-saved-register: '', callee-saved-restored: true, 33 # SHARE: stack-id: 1, callee-saved-register: '', callee-saved-restored: true, 36 …SI_SPILL_S32_SAVE $sgpr5, %stack.2, implicit $exec, implicit $sgpr0_sgpr1_sgpr2_sgpr3, implicit $s… 37 …SI_SPILL_V32_SAVE killed $vgpr0, %stack.0, $sgpr0_sgpr1_sgpr2_sgpr3, $sgpr5, 0, implicit $exec :: … [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Mips/msa/ |
D | emergency-spill.mir | 3 # Test that estimated size of the stack leads to the creation of an emergency 103 stack: 136 SD killed $a0_64, %stack.1.a, 0 :: (store 8 into %ir.1, align 16) 137 SD killed $a1_64, %stack.1.a, 8 :: (store 8 into %ir.2) 138 $w0 = LD_B %stack.1.a, 0 :: (dereferenceable load 16 from %ir.a) 139 SD killed $a2_64, %stack.2.b, 0 :: (store 8 into %ir.4, align 16) 140 SD killed $a3_64, %stack.2.b, 8 :: (store 8 into %ir.5) 141 $w1 = LD_B %stack.2.b, 0 :: (dereferenceable load 16 from %ir.b) 142 ST_B killed $w0, %stack.3.a.addr, 0 :: (store 16 into %ir.a.addr) 143 ST_B killed $w1, %stack.4.b.addr, 0 :: (store 16 into %ir.b.addr) [all …]
|
/external/speex/libspeexdsp/ |
D | stack_alloc.h | 91 #define ALIGN(stack, size) ((stack) += ((size) - (long)(stack)) & ((size) - 1)) argument 93 …stack, size, type) (VALGRIND_MAKE_NOACCESS(stack, 1000),ALIGN((stack),sizeof(type)),VALGRIND_MAKE_… argument 97 #define ALIGN(stack, size) ((stack) += ((size) - (long)(stack)) & ((size) - 1)) argument 99 #define PUSH(stack, size, type) (ALIGN((stack),sizeof(type)),(stack)+=((size)*sizeof(type)),(type*)… argument 111 #define ALLOC(var, size, type) var = PUSH(stack, size, type)
|
/external/elfutils/libdwfl/ |
D | frame_unwind.c | 107 do_push (struct eval_stack *stack, Dwarf_Addr val) in do_push() argument 109 if (stack->used >= DWARF_EXPR_STACK_MAX) in do_push() 114 if (stack->used == stack->allocated) in do_push() 116 stack->allocated = MAX (stack->allocated * 2, 32); in do_push() 118 new_addrs = realloc (stack->addrs, in do_push() 119 stack->allocated * sizeof (*stack->addrs)); in do_push() 125 stack->addrs = new_addrs; in do_push() 127 stack->addrs[stack->used++] = val; in do_push() 132 do_pop (struct eval_stack *stack, Dwarf_Addr *val) in do_pop() argument 134 if (stack->used == 0) in do_pop() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/MIR/AArch64/ |
D | mirCanonIdempotent.mir | 12 stack: 14 stack-id: 0, callee-saved-register: '', callee-saved-restored: true, 18 stack-id: 0, callee-saved-register: '', callee-saved-restored: true, 22 stack-id: 0, callee-saved-register: '', callee-saved-restored: true, 26 stack-id: 0, callee-saved-register: '', callee-saved-restored: true, 30 stack-id: 0, callee-saved-register: '', callee-saved-restored: true, 34 stack-id: 0, callee-saved-register: '', callee-saved-restored: true, 38 stack-id: 0, callee-saved-register: '', callee-saved-restored: true, 50 STRXui %0, %stack.1, 0 :: (store 8) 51 STRXui %1, %stack.2, 0 :: (store 8) [all …]
|