| /third_party/parse5/packages/parse5/lib/parser/ |
| D | open-element-stack.test.ts | 3 import { OpenElementStack } from './open-element-stack.js'; 16 generateTestsForEachTreeAdapter('open-element-stack', (treeAdapter) => { 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); [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 …]
|
| /third_party/skia/third_party/externals/freetype/src/psaux/ |
| D | psstack.c | 5 * Adobe's code for emulating a CFF stack (body). 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() 67 /* allocate the stack buffer */ 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() [all …]
|
| /third_party/skia/tests/ |
| D | ClipStackTest.cpp | 40 // Build up a clip stack with a path, an empty clip, and a rect. in test_assign_and_comparison() 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 [all …]
|
| /third_party/skia/m133/tests/ |
| D | ClipStackTest.cpp | 31 // Build up a clip stack with a path, an empty clip, and a rect. in test_assign_and_comparison() 122 static void assert_count(skiatest::Reporter* reporter, const SkClipStack& stack, in assert_count() argument 124 SkClipStack::B2TIter iter(stack); in assert_count() 135 SkClipStack stack; in test_iterators() local 146 stack.clipRect(gRects[i], SkMatrix::I(), SkClipOp::kDifference, false); in test_iterators() 149 assert_count(reporter, stack, 4); in test_iterators() 155 SkClipStack::B2TIter iter(stack); in test_iterators() 171 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in test_iterators() 187 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in test_iterators() 237 SkClipStack stack; in test_bounds() local [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/kernel/ |
| D | stack.c | 17 #include "nnacl/kernel/stack.h" 47 StackStruct *stack = (StackStruct *)self; in StackRelease() local 48 NNACL_CHECK_NULL_RETURN_ERR(stack); in StackRelease() 49 if (stack->buffers_ != NULL) { in StackRelease() 50 self->env_->Free(self->env_->allocator_, stack->buffers_); in StackRelease() 51 stack->buffers_ = NULL; in StackRelease() 57 StackStruct *stack = (StackStruct *)self; in StackPrepare() local 58 NNACL_CHECK_NULL_RETURN_ERR(stack); in StackPrepare() 61 stack->buffers_ = in StackPrepare() 63 NNACL_MALLOC_CHECK_NULL_RETURN_ERR(stack->buffers_); in StackPrepare() [all …]
|
| /third_party/rust/rust/compiler/rustc_codegen_cranelift/scripts/ |
| D | filter_profile.rs | 36 let mut stack = &line[..line.rfind(" ").unwrap()]; in main() localVariable 40 if !stack.contains("rustc_codegen_cranelift") { in main() 44 if stack.contains("rustc_monomorphize::partitioning::collect_and_partition_mono_items") in main() 45 || stack.contains("rustc_incremental::assert_dep_graph::assert_dep_graph") in main() 46 || stack.contains("rustc_symbol_mangling::test::report_symbol_names") in main() 52 if let Some(index) = stack.find("rustc_interface::passes::configure_and_expand") { in main() 53 stack = &stack[index..]; in main() 54 } else if let Some(index) = stack.find("rustc_interface::passes::analysis") { in main() 55 stack = &stack[index..]; in main() 56 } else if let Some(index) = stack.find("rustc_interface::passes::start_codegen") { in main() [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 stack->ChangedSincePush = true; in matrix_frustum() 126 ctx->NewState |= stack->DirtyFlag; in matrix_frustum() 143 * the top matrix of the current matrix stack and sets 167 struct gl_matrix_stack *stack = get_named_matrix_stack(ctx, matrixMode, in _mesa_MatrixFrustumEXT() local 169 if (!stack) in _mesa_MatrixFrustumEXT() 172 matrix_frustum(stack, in _mesa_MatrixFrustumEXT() 181 matrix_ortho(struct gl_matrix_stack* stack, in matrix_ortho() argument 203 _math_matrix_ortho( stack->Top, in matrix_ortho() [all …]
|
| /third_party/pcre2/pcre2/src/sljit/ |
| D | sljitUtils.c | 2 * Stack-less Just-In-Time compiler 65 /* Stack */ 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() [all …]
|
| /third_party/backends/testsuite/backend/genesys/ |
| D | tests_image_pipeline.cpp | 192 ImagePipelineStack stack; in test_node_buffered_callable_source() local 193 stack.push_first_node<ImagePipelineNodeBufferedCallableSource>(4, 3, PixelFormat::I8, in test_node_buffered_callable_source() 201 ASSERT_TRUE(stack.get_next_row_data(out_data.data())); in test_node_buffered_callable_source() 205 ASSERT_TRUE(stack.get_next_row_data(out_data.data())); in test_node_buffered_callable_source() 209 ASSERT_TRUE(stack.get_next_row_data(out_data.data())); in test_node_buffered_callable_source() 224 ImagePipelineStack stack; in test_node_format_convert() local 225 stack.push_first_node<ImagePipelineNodeArraySource>(3, 1, PixelFormat::RGB888, in test_node_format_convert() 227 stack.push_node<ImagePipelineNodeFormatConvert>(PixelFormat::BGR161616); in test_node_format_convert() 229 ASSERT_EQ(stack.get_output_width(), 3u); in test_node_format_convert() 230 ASSERT_EQ(stack.get_output_height(), 1u); in test_node_format_convert() [all …]
|
| /third_party/musl/src/misc/ |
| D | realpath.c | 17 /* In realpath, the stack is read in 8-byte chunks. hwasan in realpath() 18 * detects out-of-bounds reads. Therefore, the stack is in realpath() 20 char stack[PATH_MAX+8]; in realpath() local 22 char stack[PATH_MAX+1]; in realpath() 32 l = strnlen(filename, sizeof stack); in realpath() 38 p = sizeof stack - l - 1; in realpath() 40 memcpy(stack+p, filename, l+1); in realpath() 42 /* Main loop. Each iteration pops the next part from stack of in realpath() 45 * pushed to the stack. */ in realpath() 47 for (; ; p+=slash_len(stack+p)) { in realpath() [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
| D | AMDGPUFrameLowering.cpp | 9 // Interface to describe a layout of a stack frame on a AMDGPU target machine. 29 // The StackWidth determines how stack objects are laid out in memory. in getStackWidth() 30 // For a vector stack variable, like: int4 stack[2], the data will be stored in getStackWidth() 35 // T0.X = stack[0].x in getStackWidth() 36 // T1.X = stack[0].y in getStackWidth() 37 // T2.X = stack[0].z in getStackWidth() 38 // T3.X = stack[0].w in getStackWidth() 39 // T4.X = stack[1].x in getStackWidth() 40 // T5.X = stack[1].y in getStackWidth() 41 // T6.X = stack[1].z in getStackWidth() [all …]
|
| /third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
| D | sfn_callstack.cpp | 23 ++m_bc.stack.push; in push() 26 ++m_bc.stack.push_wqm; in push() 29 ++m_bc.stack.loop; in push() 43 --m_bc.stack.push; in pop() 44 assert(m_bc.stack.push >= 0); in pop() 47 --m_bc.stack.push_wqm; in pop() 48 assert(m_bc.stack.push_wqm >= 0); in pop() 51 --m_bc.stack.loop; in pop() 52 assert(m_bc.stack.loop >= 0); in pop() 64 r600_stack_info& stack = m_bc.stack; in update_max_depth() local [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/BinaryFormat/ |
| D | MsgPackDocument.cpp | 61 // A level in the document reading stack. 78 SmallVector<StackLevel, 4> Stack; in readFromBlob() local 82 Stack.push_back(StackLevel({Root, (size_t)-1, nullptr})); in readFromBlob() 89 if (Multi && Stack.size() == 1) { in readFromBlob() 127 if (Stack.empty()) in readFromBlob() 129 else if (Stack.back().Node.getKind() == Type::Array) { in readFromBlob() 131 auto &Array = Stack.back().Node.getArray(); in readFromBlob() 134 auto &Map = Stack.back().Node.getMap(); in readFromBlob() 135 if (!Stack.back().MapEntry) { in readFromBlob() 137 Stack.back().MapEntry = &Map[Node]; in readFromBlob() [all …]
|
| /third_party/ltp/testcases/kernel/syscalls/mmap/ |
| D | mmap18.c | 13 * a thread as a stack and expect the mapping to grow when we touch the 15 * growable mapping as a stack. 17 * The kernel only grows the memory region when the stack pointer is within 22 * 'stack_guard_gap' pages to an existing mapping. So when we map the stack we 23 * make sure there is enough of free address space before the lowest stack 28 * The stack memory map would look like: 36 * ^ | - - stack size - - | 39 * stack bottom stack top 43 * We allocate stack as we do in the first test but we mmap a page in the 44 * space the stack is supposed to grow into and we expect the thread to [all …]
|
| /third_party/pcre2/pcre2/doc/ |
| D | pcre2jit.3 | 85 of machine stack that it uses. The exact rules are not documented because they 115 "Controlling the JIT stack" 131 "Controlling the JIT stack" 133 below, even if you do not need to supply a non-default JIT stack. Such a 202 the JIT stack was insufficient. See 205 "Controlling the JIT stack" 207 below for a discussion of JIT stack usage. 217 .SH "CONTROLLING THE JIT STACK" 220 When the compiled JIT code runs, it needs a block of memory to use as a stack. 221 By default, it uses 32KiB on the machine stack. However, some large or [all …]
|
| /third_party/flatbuffers/ts/flexbuffers/ |
| D | builder.ts | 6 import { StackValue } from './stack-value.js' 18 readonly stack: Array<StackValue> = []; property in Builder 104 this.stack.push(this.offsetStackValue(blobOffset, ValueType.BLOB, bitWidth)); 110 this.stack.push(this.stringLookup[str]); 122 this.stack.push(stackValue); 131 this.stack.push(this.keyLookup[str]); 139 this.stack.push(stackValue); 166 if (this.stack[this.stack.length - 1].type !== ValueType.KEY) { 182 this.stackPointers.push({ stackPosition: this.stack.length, isVector: true }); 186 …this.stackPointers.push({ stackPosition: this.stack.length, isVector: false, presorted: presorted … [all …]
|
| /third_party/typescript/tests/baselines/reference/ |
| D | infinitelyGenerativeInheritance1.symbols | 2 interface Stack<T> { 3 >Stack : Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0)) 7 >pop : Symbol(Stack.pop, Decl(infinitelyGenerativeInheritance1.ts, 0, 20)) 10 zip<S>(a: Stack<S>): Stack<{ x: T; y: S }> 11 >zip : Symbol(Stack.zip, Decl(infinitelyGenerativeInheritance1.ts, 1, 14)) 14 >Stack : Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0)) 16 >Stack : Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0)) 23 interface MyStack<T> extends Stack<T> { 26 >Stack : Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0)) 29 zip<S>(a: Stack<S>): Stack<{ x: T; y: S }> [all …]
|
| /third_party/ltp/lib/ |
| D | cloner.c | 55 * 1. hppa takes bottom of stack and no stacksize (stack grows up) 56 * 2. __ia64__ takes bottom of stack and uses clone2 57 * 3. all others take top of stack (stack grows down) 61 size_t stack_size, void *stack, pid_t *ptid, void *tls, pid_t *ctid) in ltp_clone_() argument 66 ret = __clone2(fn, stack, stack_size, flags, arg, ptid, tls, ctid); in ltp_clone_() 70 * These arches grow their stack up, so don't need to adjust the base. in ltp_clone_() 75 * For archs where stack grows downwards, stack points to the topmost in ltp_clone_() 76 * address of the memory space set up for the child stack. in ltp_clone_() 78 if (stack) in ltp_clone_() 79 stack += stack_size; in ltp_clone_() [all …]
|
| /third_party/rust/rust/compiler/rustc_middle/src/ty/ |
| D | walk.rs | 9 // The TypeWalker's stack is hot enough that it's worth going to some effort to 14 stack: TypeWalkerStack<'tcx>, field 29 Self { stack: smallvec![root], last_subtree: 1, visited: SsoHashSet::new() } in new() 45 self.stack.truncate(self.last_subtree); in skip_current_subtree() 53 debug!("next(): stack={:?}", self.stack); in next() 55 let next = self.stack.pop()?; in next() 56 self.last_subtree = self.stack.len(); in next() 58 push_inner(&mut self.stack, next); in next() 59 debug!("next: stack={:?}", self.stack); in next() 92 let mut stack = SmallVec::new(); in walk_shallow() localVariable [all …]
|
| /third_party/rust/rust/src/tools/miri/src/borrow_tracker/stacked_borrows/ |
| D | stack.rs | 1 #[cfg(feature = "stack-cache")] 14 /// falling back to linear searches of the borrow stack very often. 15 /// The cost of making this value too large is that the loop in `Stack::insert` which ensures the 17 #[cfg(feature = "stack-cache")] 22 pub struct Stack { struct 23 /// Used *mostly* as a stack; never empty. 26 /// * Except for `Untagged`, no tag occurs in the stack more than once. 28 /// If this is `Some(id)`, then the actual current stack is unknown. This can happen when 30 /// the top of the stack, and below it are arbitrarily many items whose `tag` is strictly less 36 /// A small LRU cache of searches of the borrow stack. [all …]
|
| /third_party/libwebsockets/lib/tls/mbedtls/wrapper/library/ |
| D | ssl_stack.c | 28 * @brief create a openssl stack object 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() 37 SSL_DEBUG(SSL_STACK_ERROR_LEVEL, "no enough memory > (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() [all …]
|
| /third_party/rust/crates/rust-openssl/openssl/src/ |
| D | stack.rs | 31 /// Trait implemented by types which can be placed in a stack. 35 /// The C stack type for this element. 42 /// An owned stack of `T`. 43 pub struct Stack<T: Stackable>(*mut T::StackType); struct 45 unsafe impl<T: Stackable + Send> Send for Stack<T> {} implementation 46 unsafe impl<T: Stackable + Sync> Sync for Stack<T> {} implementation 48 impl<T> fmt::Debug for Stack<T> implementation 57 impl<T: Stackable> Drop for Stack<T> { implementation 66 impl<T: Stackable> Stack<T> { implementation 67 pub fn new() -> Result<Stack<T>, ErrorStack> { in new() [all …]
|
| /third_party/openhitls/bsl/err/src/ |
| D | err.c | 32 /* Error information stack size */ 35 /* Error information stack */ 37 /* Current point location to the stack. When the value is -1, the stack is empty. */ 38 uint16_t bottom; /* Stack bottom */ 39 uint16_t top; /* Stack top */ 56 /* Avl tree root node of the error stack. */ 100 static void StackReset(ErrorCodeStack *stack) in StackReset() argument 102 if (stack != NULL) { in StackReset() 103 (void)memset_s(stack, sizeof(*stack), 0, sizeof(*stack)); in StackReset() 107 static void StackResetIndex(ErrorCodeStack *stack, uint32_t i) in StackResetIndex() argument [all …]
|
| /third_party/backends/lib/ |
| D | alloca.c | 5 which is used to allocate space off the run-time stack so 16 that are found to be deeper in the stack than the current 57 /* If your stack is a linked list of frames, you have to 87 /* Define STACK_DIRECTION if you know the direction of stack 112 auto char dummy; /* To get stack address. */ in find_stack_direction() 124 stack_dir = 1; /* Stack grew upward. */ in find_stack_direction() 126 stack_dir = -1; /* Stack grew downward. */ in find_stack_direction() 134 (b) keep track of stack depth. 149 char *deep; /* For stack depth measure. */ 158 was supposed to be taken from the current stack frame of the [all …]
|