Home
last modified time | relevance | path

Searched full:tail (Results 1 – 25 of 121) sorted by relevance

12345

/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/
Dlock_free_queue.cpp26 Node *tail = tail_.load(std::memory_order_acquire); in Push() local
27 ASSERT(tail != nullptr); in Push()
29 Node *next = tail->next.load(std::memory_order_acquire); in Push()
32 if (tail != tail2) { in Push()
36 if (tail->next.compare_exchange_weak(next, newNode)) { in Push()
37 tail_.compare_exchange_strong(tail, newNode); in Push()
43 tail_.compare_exchange_strong(tail, newTail); in Push()
55 Node *tail = tail_.load(std::memory_order_acquire); in Pop() local
63 if (head == tail) { in Pop()
66 tail_.compare_exchange_strong(tail, newTail); in Pop()
[all …]
/arkcompiler/runtime_core/libpandabase/
DREADME.md78 - tail arguments
82 Tail arguments are positional arguments, which should be introduced with help of parser API
104 …ackTail(PandArgBase* arg)` - add tail argument to the end of tail arguments list. `false` if argum…
105 - `bool PopBackTail()` - remove last argument from tail list
106 - `void EraseTail()` - remove all arguments from tail list
114 Tail argument is a sequence of positinal arguments values. Function ```PushBackTail()``` adds an ar…
133 - If tail (positional arguments) enabled, first argument without double dash prefix concidered as a…
157 $ ./app --int=1 false -1 "list1 list2 list3" # tail arguments example
161 In the tail arguments example, `false` is a boolean value, `-1` is integer value and `str1` and `st…
164 How to add tail arguments:
/arkcompiler/runtime_core/static_core/libpandabase/
DREADME.md78 - tail arguments
82 Tail arguments are positional arguments, which should be introduced with help of parser API
104 …ackTail(PandArgBase* arg)` - add tail argument to the end of tail arguments list. `false` if argum…
105 - `bool PopBackTail()` - remove last argument from tail list
106 - `void EraseTail()` - remove all arguments from tail list
114 Tail argument is a sequence of positinal arguments values. Function ```PushBackTail()``` adds an ar…
133 - If tail (positional arguments) enabled, first argument without double dash prefix concidered as a…
157 $ ./app --int=1 false -1 "list1 list2 list3" # tail arguments example
161 In the tail arguments example, `false` is a boolean value, `-1` is integer value and `str1` and `st…
164 How to add tail arguments:
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/
Drecipe69.md19 let head, tail
20 [head, ...tail] = [1, 2, 3, 4]
39 let tail: Number[] = []
41 tail.push(data[i])
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/finalreg/
Dfinalization_registry_manager.cpp29 size_t tail = localIndex - 1; in SortInstancies() local
30 while (head < tail) { in SortInstancies()
31 while (head < tail && objArray->Get(head) != nullptr) { in SortInstancies()
34 while (head < tail && objArray->Get(tail) == nullptr) { in SortInstancies()
35 tail--; in SortInstancies()
37 if (head < tail) { in SortInstancies()
38 objArray->Set(head, objArray->Get(tail)); in SortInstancies()
39 objArray->Set(tail, nullptr); in SortInstancies()
40 localIndex = tail; in SortInstancies()
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/
Dcheck_tail_calls.cpp23 #define DEBUG_TYPE "check-tail-calls"
60 // This pass checks: 1) tail calls in interpreter handlers 2) calls to SlowPathes made in Irtoc Fas…
61 // should be tail calls to avoid miscompilation). `CheckTailCallsPass` checks that llvm was able to…
65 static constexpr llvm::StringRef PASS_NAME = "Check ARK Tail Calls";
66 static constexpr llvm::StringRef ARG_NAME = "check-ark-tail-calls";
122 "' prevents tail call check"); in IsRealTailCall()
139 if (callInst != nullptr && callInst->hasFnAttr("ark-tail-call")) { in runOnMachineFunction()
144 … llvm::report_fatal_error("Cannot find tail call for '" + machineFunction.getName() + "'"); in runOnMachineFunction()
152 if (callInst != nullptr && callInst->hasFnAttr("ark-tail-call") && in runOnMachineFunction()
154 … llvm::report_fatal_error("Missing tail call in '" + machineFunction.getName() + "'"); in runOnMachineFunction()
/arkcompiler/runtime_core/static_core/plugins/ets/sdk/api/
D@ohos.util.LinkedList.ets59 private tail?: ListNode<T>;
63 this.tail = undefined;
97 this.tail = undefined;
197 if (this.tail !== undefined) {
198 return this.tail!.element;
210 let currentNode: ListNode<T> | undefined = this.tail;
247 this.head = this.tail = newNode;
263 this.tail!.next = newNode;
264 newNode.prev = this.tail;
265 this.tail = newNode;
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/rules/
Drule69.ets19 let head, tail
20 [head, ...tail] = [1, 2, 3, 4]
34 tail.push(data2[i])
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/checked/js_call/
Djs_call.js16 export function cons(value, tail) { argument
17 return { value: value, tail: tail };
25 return node.tail;
/arkcompiler/runtime_core/static_core/tests/tests-u-runner-2/runner/suites/
Dpreparation_step.py201 tail = [f"\nfunction main({param_line}){return_type} {throws}{{"]
203 tail.append(f"{self.__indent}let result = 0")
204 tail.append(f"{self.__indent}for(let i = 0; i < {self.num_repeats}; i++) {{")
206 tail.append(f"{self.__indent * 2}result += main_run({param_name})")
208 tail.append(f"{self.__indent * 2}main_run({param_name})")
209 tail.append(f"{self.__indent}}}")
211 tail.append(f"{self.__indent}return result;")
212 tail.append("}")
215 result += "\n".join(tail)
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_queue.cpp28 uint32_t tail = queue->GetTail(); in Add() local
30 elements->Set(thread, tail, value); in Add()
35 queue->SetTail((tail + 1) % elementsSize); in Add()
43 uint32_t tail = obj->GetTail(); in GrowCapacity() local
51 } else if ((tail + 1) % oldLength == front) { in GrowCapacity()
53 … newElements = thread->GetEcmaVM()->GetFactory()->CopyQueue(oldElements, newCapacity, front, tail); in GrowCapacity()
55 tail = oldLength - 1; in GrowCapacity()
62 obj->SetTail(tail); in GrowCapacity()
164 uint32_t tail = obj->GetTail(); in OwnKeys() local
166 thread->GetEcmaVM()->GetFactory()->CopyQueue(oldElements, newCapacity, front, tail); in OwnKeys()
[all …]
/arkcompiler/ets_frontend/ets2panda/
DREADME.md13 ## Tail arguments
29 ### Tail arguments
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
Dets_waiters_list.h102 auto *tail = tail_.exchange(nullptr, std::memory_order_acq_rel); in RestockQueue() local
103 while (tail != nullptr) { in RestockQueue()
104 auto *newHead = std::exchange(tail, tail->next_); in RestockQueue()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/xgc/
Dmark_test_cross.js33 throw new Error('The tail object cannot be empty!');
67 let tail = head;
69 tail.ref = Promise.resolve();
70 tail = tail.ref;
74 res.tailJsObj = tail;
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/containers/
DLinkedBlockingQueue.ets243 return this.tail!.element;
340 this.head = this.tail = newNode;
345 this.tail!.next = newNode;
346 newNode.prev = this.tail;
347 this.tail = newNode;
350 this.tail!.next = newNode;
351 newNode.prev = this.tail;
352 this.tail = newNode;
368 this.tail = undefined;
390 private tail: ListNode<T> | undefined = undefined;
/arkcompiler/ets_frontend/test/scripts/sdk_test/
Dconfig.yaml265 tail: "\nconsole.log(a().toString());\n"
268 tail: "\nconsole.log(a().toString());\n"
271 tail: "\nconsole.log(a().toString());\n"
274 tail: "\nconsole.log(a().toString());\n"
277 tail: "\nconsole.log(a().toString());\n"
280 tail: "\nconsole.log(a().toString());\n"
283 tail: "\nconsole.log(a().toString());\n"
286 tail: "\nconsole.log(a().toString());\n"
288 tail: "\n console.log('This is a new line');\n"
310 tail: "\nconsole.log(dayjs().toString());"
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/
Dpreparation_step.py267 tail = [f"\nfunction main({param_line}){return_type} {throws}{{"]
269 tail.append(f"{self.__indent}let result = 0")
270 tail.append(f"{self.__indent}for(let i = 0; i < {self.num_repeats}; i++) {{")
272 tail.append(f"{self.__indent * 2}result += main_run({param_name})")
274 tail.append(f"{self.__indent * 2}main_run({param_name})")
275 tail.append(f"{self.__indent}}}")
277 tail.append(f"{self.__indent}return result;")
278 tail.append("}")
281 result += "\n".join(tail)
/arkcompiler/ets_frontend/es2panda/
DREADME.md23 ## Tail arguments
39 ### Tail arguments
/arkcompiler/runtime_core/static_core/runtime/tests/
Doptions_test.cpp75 ASSERT_EQ(GetParser()->GetErrorString(), "pandargs: Too many tail arguments given\n"); in TEST_F()
81 … "pandargs: Tail arguments are not enabled\npandargs: Tail found at literal \"tail1\"\n"); in TEST_F()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DSyncPrimitives.ets21 this.tail = 0;
25 private tail: long;
146 this.tail = 0;
159 private tail: long;
/arkcompiler/runtime_core/libpandabase/utils/
Dmurmur3_hash.h117 // Proceed the tail: in MurmurHash3()
119 auto tail = blocks; in MurmurHash3() local
122 // Get ((uint8_t*)tail)[i - 1]: in MurmurHash3()
123 uintptr_t block_pointer = tail + sizeof(uint8_t) * (i - 1); in MurmurHash3()
179 // Proceed the tail: in MurmurHash3String()
/arkcompiler/runtime_core/static_core/libpandabase/utils/
Dmurmur3_hash.h114 // Proceed the tail: in MurmurHash3()
116 auto tail = blocks; in MurmurHash3() local
119 // Get ((uint8_t*)tail)[i - 1]: in MurmurHash3()
120 uintptr_t blockPointer = tail + sizeof(uint8_t) * (i - 1); in MurmurHash3()
176 // Proceed the tail: in MurmurHash3String()
/arkcompiler/ets_runtime/test/moduletest/regress/
Dexpect_output.txt61 true-no-tail
62 true-no-tail
/arkcompiler/runtime_core/libpandabase/tests/
Dpandargs_test.cpp67 PandArg<bool> T_PAB("tail_bool", REF_DEF_BOOL, "Sample tail boolean argument");
68 PandArg<int> T_PAI("tail_int", REF_DEF_INT, "Sample tail integer argument");
69 PandArg<double> T_PAD("tail_double", REF_DEF_DOUBLE, "Sample tail rational argument");
70 PandArg<std::string> T_PAS("tail_string", REF_DEF_STRING, "Sample tail string argument");
71 PandArg<uint32_t> T_PAU32("tail_uint32", REF_DEF_UINT32, "Sample tail uint32 argument");
72 PandArg<uint64_t> T_PAU64("tail_uint64", REF_DEF_UINT64, "Sample tail uint64 argument");
157 // add tail argument, expect false on duplicate
158 // erase tail, expect 0 tail size
601 // expect true on IsTailEnabled when tail is enabled, false otherwise
610 // expect tail only argument is consistent
[all …]
/arkcompiler/ets_runtime/common_components/common/
Dmark_work_stack.h66 this->t_ = stack.tail(); in MarkStack()
87 MarkStackBuffer<T>* tail() { return this->t_; } in tail() function
157 this->t_ = stack.tail(); in insert()
164 this->t_ = stack.tail(); in insert()

12345