Home
last modified time | relevance | path

Searched refs:guard (Results 1 – 25 of 451) sorted by relevance

12345678910>>...19

/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/internal/
Ddemangle.cc280 ComplexityGuard guard(state); in ParseOneCharToken() local
281 if (guard.IsTooComplex()) return false; in ParseOneCharToken()
293 ComplexityGuard guard(state); in ParseTwoCharToken() local
294 if (guard.IsTooComplex()) return false; in ParseTwoCharToken()
306 ComplexityGuard guard(state); in ParseCharClass() local
307 if (guard.IsTooComplex()) return false; in ParseCharClass()
608 ComplexityGuard guard(state); in ParseMangledName() local
609 if (guard.IsTooComplex()) return false; in ParseMangledName()
617 ComplexityGuard guard(state); in ParseEncoding() local
618 if (guard.IsTooComplex()) return false; in ParseEncoding()
[all …]
/third_party/unity/extras/memory/src/
Dunity_memory.c70 Guard* guard; in unity_malloc() local
86 guard = NULL; in unity_malloc()
91 guard = (Guard*)(void*)(&unity_heap[heap_index]); in unity_malloc()
95 guard = (Guard*)UNITY_MALLOC(total_size); in unity_malloc()
97 if (guard == NULL) return NULL; in unity_malloc()
99 guard->size = size; in unity_malloc()
100 guard->guard_space = 0; in unity_malloc()
101 mem = (char*)&(guard[1]); in unity_malloc()
109 Guard* guard = (Guard*)mem; in isOverrun() local
111 guard--; in isOverrun()
[all …]
/third_party/cJSON/tests/unity/extras/fixture/src/
Dunity_fixture.c184 Guard* guard; in unity_malloc() local
198 guard = NULL; in unity_malloc()
202 guard = (Guard*)&unity_heap[heap_index]; in unity_malloc()
206 guard = (Guard*)UNITY_FIXTURE_MALLOC(total_size); in unity_malloc()
208 if (guard == NULL) return NULL; in unity_malloc()
210 guard->size = size; in unity_malloc()
211 guard->guard_space = 0; in unity_malloc()
212 mem = (char*)&(guard[1]); in unity_malloc()
220 Guard* guard = (Guard*)mem; in isOverrun() local
222 guard--; in isOverrun()
[all …]
/third_party/rust/crates/scopeguard/src/
Dlib.rs253 let _guard = $crate::guard((), |()| { $($t)* });
348 pub fn into_inner(guard: Self) -> T { in into_inner()
352 let value = ptr::read(&*guard.value); in into_inner()
357 let _dropfn = ptr::read(&*guard.dropfn); in into_inner()
358 mem::forget(guard); in into_inner()
367 pub fn guard<T, F>(v: T, dropfn: F) -> ScopeGuard<T, F, Always> in guard() function
537 let value = guard((), |()| value_drops.set(1 + value_drops.get())); in test_only_dropped_by_closure_when_run()
539 let guard = guard(value, |_| closure_drops.set(1 + closure_drops.get())); in test_only_dropped_by_closure_when_run() localVariable
542 drop(guard); in test_only_dropped_by_closure_when_run()
551 let value = guard((), |()| value_drops.set(1 + value_drops.get())); in test_dropped_once_when_not_run()
[all …]
/third_party/typescript/tests/baselines/reference/
DtypeGuardOfFormThisMember.types168 let guard: GenericGuard<File>;
169 >guard : GenericGuard<File>
171 if (guard.isLeader) {
172 >guard.isLeader : boolean
173 >guard : GenericGuard<File>
176 guard.lead();
177 >guard.lead() : any
178 >guard.lead : any
179 >guard : GenericGuard<File>
182 else if (guard.isFollower) {
[all …]
DtypeGuardOfFormThisMember.js62 let guard: GenericGuard<File>; variable
63 if (guard.isLeader) {
64 guard.lead();
66 else if (guard.isFollower) {
67 guard.follow();
164 var guard;
165 if (guard.isLeader) {
166 guard.lead();
168 else if (guard.isFollower) {
169 guard.follow();
DtypeGuardFunctionOfFormThis.types177 let guard = new ArrowGuard();
178 >guard : ArrowGuard
182 if (guard.isElite()) {
183 >guard.isElite() : boolean
184 >guard.isElite : () => this is ArrowElite
185 >guard : ArrowGuard
188 guard.defend();
189 >guard.defend() : void
190 >guard.defend : () => void
191 >guard : ArrowElite
[all …]
DtypeGuardFunctionOfFormThis.js77 let guard = new ArrowGuard(); variable
78 if (guard.isElite()) {
79 guard.defend();
81 else if (guard.isMedic()) {
82 guard.heal();
250 var guard = new ArrowGuard(); variable
251 if (guard.isElite()) {
252 guard.defend();
254 else if (guard.isMedic()) {
255 guard.heal();
[all …]
DtypeGuardOfFormThisMember.symbols173 let guard: GenericGuard<File>;
174 >guard : Symbol(guard, Decl(typeGuardOfFormThisMember.ts, 60, 4))
178 if (guard.isLeader) {
179 >guard.isLeader : Symbol(GenericGuard.isLeader, Decl(typeGuardOfFormThisMember.ts, 55, 12))
180 >guard : Symbol(guard, Decl(typeGuardOfFormThisMember.ts, 60, 4))
183 guard.lead();
184 >guard : Symbol(guard, Decl(typeGuardOfFormThisMember.ts, 60, 4))
186 else if (guard.isFollower) {
187 >guard.isFollower : Symbol(GenericGuard.isFollower, Decl(typeGuardOfFormThisMember.ts, 56, 42))
188 >guard : Symbol(guard, Decl(typeGuardOfFormThisMember.ts, 60, 4))
[all …]
DtypeGuardFunctionOfFormThis.symbols168 let guard = new ArrowGuard();
169 >guard : Symbol(guard, Decl(typeGuardFunctionOfFormThis.ts, 75, 3))
172 if (guard.isElite()) {
173 >guard.isElite : Symbol(ArrowGuard.isElite, Decl(typeGuardFunctionOfFormThis.ts, 58, 18))
174 >guard : Symbol(guard, Decl(typeGuardFunctionOfFormThis.ts, 75, 3))
177 guard.defend();
178 >guard.defend : Symbol(ArrowElite.defend, Decl(typeGuardFunctionOfFormThis.ts, 67, 37))
179 >guard : Symbol(guard, Decl(typeGuardFunctionOfFormThis.ts, 75, 3))
182 else if (guard.isMedic()) {
183 >guard.isMedic : Symbol(ArrowGuard.isMedic, Decl(typeGuardFunctionOfFormThis.ts, 61, 5))
[all …]
DtypePredicateInLoop.symbols20 const guard = (arg: Type): arg is TypeExt => arg.type === 1;
21 >guard : Symbol(guard, Decl(typePredicateInLoop.ts, 10, 5))
42 if (guard(arg)) {
43 >guard : Symbol(guard, Decl(typePredicateInLoop.ts, 10, 5))
DtypePredicateInLoop.types14 const guard = (arg: Type): arg is TypeExt => arg.type === 1;
15 >guard : (arg: Type) => arg is TypeExt
34 if (guard(arg)) {
35 >guard(arg) : boolean
36 >guard : (arg: Type) => arg is TypeExt
DtypePredicateInLoop.js12 const guard = (arg: Type): arg is TypeExt => arg.type === 1; constant
16 if (guard(arg)) {
29 var guard = function (arg) { return arg.type === 1; }; function
32 if (guard(arg)) {
/third_party/openssl/util/
Dmkerr.pl319 my $guard = $hfile;
321 if ($guard =~ m|^include/|) {
322 $guard = $';
324 $guard = basename($guard);
326 $guard = "OSSL_" . join('_', split(m|[./]|, uc $guard));
340 #ifndef $guard
341 # define $guard
414 my $guard = $hfile;
415 $guard =~ s|^include/||;
416 $guard = join('_', split(m|[./]|, uc $guard));
[all …]
/third_party/jerryscript/tools/
Dgen-magic-strings.py104 def process_guard(guard): argument
108 if guard.startswith('ndef '):
109 guard = guard.replace('ndef ', '!defined (', 1) + ')'
110 elif guard.startswith('def '):
111 guard = guard.replace('def ', 'defined (', 1) + ')'
112 return guard
184 guards = {tuple(sorted(guard)) for guard in guards if guard is not None}
196 return ' \\\n|| '.join(' && '.join(g.strip() for g in sorted(guard))
197 for guard in sorted(guards))
/third_party/flutter/engine/flutter/fml/
Dmessage_loop_task_queues.cc35 std::lock_guard guard(queue_mutex_); in CreateTaskQueue() local
49 std::lock_guard guard(queue_mutex_); in Dispose() local
63 std::lock_guard guard(queue_mutex_); in DisposeTasks() local
77 std::lock_guard guard(queue_mutex_); in RegisterTask() local
90 std::lock_guard guard(queue_mutex_); in HasPendingTasks() local
98 std::lock_guard guard(queue_mutex_); in GetTasksToRunNow() local
134 std::lock_guard guard(queue_mutex_); in GetNumPendingTasks() local
154 std::lock_guard guard(queue_mutex_); in AddTaskObserver() local
161 std::lock_guard guard(queue_mutex_); in RemoveTaskObserver() local
167 std::lock_guard guard(queue_mutex_); in GetObserversToNotify() local
[all …]
/third_party/mesa3d/src/compiler/isaspec/
Ddecode.py304 guard = os.path.basename(glue_h).upper().replace("-", "_").replace(".", "_") variable
305 f.write(Template(glue).render(guard=guard, isa=os.path.basename(dst_h)))
311 guard = os.path.basename(dst_h).upper().replace("-", "_").replace(".", "_") variable
312 f.write(Template(header).render(isa=isa, guard=guard))
/third_party/typescript/tests/cases/conformance/expressions/typeGuards/
DtypeGuardOfFormThisMember.ts63 let guard: GenericGuard<File>; variable
64 if (guard.isLeader) {
65 guard.lead();
67 else if (guard.isFollower) {
68 guard.follow();
DtypeGuardFunctionOfFormThis.ts77 let guard = new ArrowGuard(); variable
78 if (guard.isElite()) {
79 guard.defend();
81 else if (guard.isMedic()) {
82 guard.heal();
/third_party/rust/crates/cxx/gen/src/
Difndef.rs4 pub(super) fn write(out: &mut Content, needed: bool, guard: &str) { in write()
5 let ifndef = format!("#ifndef {}", guard); in write()
6 let define = format!("#define {}", guard); in write()
7 let endif = format!("#endif // {}", guard); in write()
29 panic!("not found in cxx.h header: {}", guard) in write()
/third_party/rust/crates/scopeguard/
DREADME.rst5 Rust crate for a convenient RAII scope guard that will run a given closure when
8 The `defer!` macro and `guard` are `no_std` compatible (require only core),
33 use scopeguard::guard;
45 let mut file = guard(f, |f| {
49 // Access the file through the scope guard itself
65 breaking change, but allows the guard closure to consume it. (by @tormol)
71 - Add ``ScopeGuard::into_inner()``, which "defuses" the guard and returns the
/third_party/musl/ndk-test/sanitize/trace-pc-guard/src/
Dtrace-pc-guard-cb.cpp27 extern "C" void __sanitizer_cov_trace_pc_guard(uint32_t *guard) { in __sanitizer_cov_trace_pc_guard() argument
28 if (!*guard) return; // Duplicate the guard check. in __sanitizer_cov_trace_pc_guard()
40 printf("guard: %p %x PC %s\n", guard, *guard, PcDescr); in __sanitizer_cov_trace_pc_guard()
/third_party/musl/porting/liteos_a/user/src/thread/
Dpthread_create.c237 size_t size, guard; in __pthread_create() local
272 guard = 0; in __pthread_create()
274 guard = ROUND(attr._a_guardsize); in __pthread_create()
275 size = guard + ROUND(attr._a_stacksize in __pthread_create()
280 if (guard) { in __pthread_create()
283 if (__mprotect(map+guard, size-guard, PROT_READ|PROT_WRITE) in __pthread_create()
295 stack_limit = map + guard; in __pthread_create()
304 new->guard_size = guard; in __pthread_create()
/third_party/vk-gl-cts/external/amber/src/src/vulkan/
Dpipeline.cc414 CommandBufferGuard guard(GetCommandBuffer()); in SendDescriptorDataToDeviceIfNeeded() local
415 if (!guard.IsRecording()) in SendDescriptorDataToDeviceIfNeeded()
416 return guard.GetResult(); in SendDescriptorDataToDeviceIfNeeded()
444 Result r = guard.Submit(GetFenceTimeout()); in SendDescriptorDataToDeviceIfNeeded()
449 CommandBufferGuard guard(GetCommandBuffer()); in SendDescriptorDataToDeviceIfNeeded() local
450 if (!guard.IsRecording()) in SendDescriptorDataToDeviceIfNeeded()
451 return guard.GetResult(); in SendDescriptorDataToDeviceIfNeeded()
476 return guard.Submit(GetFenceTimeout()); in SendDescriptorDataToDeviceIfNeeded()
519 CommandBufferGuard guard(GetCommandBuffer()); in ReadbackDescriptorsToHostDataQueue() local
520 if (!guard.IsRecording()) in ReadbackDescriptorsToHostDataQueue()
[all …]
/third_party/mesa3d/src/vulkan/util/
Dvk_entrypoints.py38 self.guard = None
48 def __init__(self, name, return_type, params, guard=None): argument
52 self.guard = guard
119 guard = entrypoints_to_defines.get(name)
122 entrypoints[name] = Entrypoint(name, ret_type, params, guard)

12345678910>>...19