Home
last modified time | relevance | path

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

1234

/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/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/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/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/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/ets_frontend/ets2panda/linter/test/rules/
Drule69.sts19 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.js18 function cons(value, tail) { argument
19 return { value: value, tail: tail };
27 return node.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()
165 uint32_t tail = obj->GetTail(); in OwnKeys() local
167 thread->GetEcmaVM()->GetFactory()->CopyQueue(oldElements, newCapacity, front, tail); in OwnKeys()
[all …]
/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/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/ets_frontend/ets2panda/
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/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()
Dpandargs.h237 errstr_ += "pandargs: Can't add `nullptr` as a tail argument\n"; in PushBackTail()
241 … errstr_ += "pandargs: Tail argument " + arg->GetName() + " is already in tail arguments list\n"; in PushBackTail()
251 errstr_ += "pandargs: Nothing to pop back from tail arguments\n"; in PopBackTail()
371 helpstr << "Tail arguments:\n"; in GetHelpString()
462 // reset tail in InitDefault()
638 // tail argument, N.B. std::string::npos > 0 in ParseNextArg()
640 errstr_.append("pandargs: Tail arguments are not enabled\n"); in ParseNextArg()
641 errstr_.append("pandargs: Tail found at literal \""); in ParseNextArg()
647 errstr_.append("pandargs: Too many tail arguments\n"); in ParseNextArg()
654 errstr_ += "pandargs: Too many tail arguments given\n"; in ParseNextArg()
[all …]
/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()
Dpandargs.h240 errstr_ += "pandargs: Can't add `nullptr` as a tail argument\n"; in PushBackTail()
244 … errstr_ += "pandargs: Tail argument " + arg->GetName() + " is already in tail arguments list\n"; in PushBackTail()
254 errstr_ += "pandargs: Nothing to pop back from tail arguments\n"; in PopBackTail()
370 helpstr << "Tail arguments:\n"; in GetHelpString()
462 // reset tail in InitDefault()
644 // tail argument, N.B. std::string::npos > 0 in ParseNextArg()
646 errstr_.append("pandargs: Tail arguments are not enabled\n"); in ParseNextArg()
647 errstr_.append("pandargs: Tail found at literal \""); in ParseNextArg()
653 errstr_.append("pandargs: Too many tail arguments\n"); in ParseNextArg()
660 errstr_ += "pandargs: Too many tail arguments given\n"; in ParseNextArg()
[all …]
/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_frontend/es2panda/test/size_statistics/
DREADME.md13 ### Tail arguments
/arkcompiler/runtime_core/abc2program/common/
Dabc_file_utils.cpp59 std::string tail = str.substr(start); in Split() local
60 items.emplace_back(tail); in Split()
/arkcompiler/runtime_core/static_core/libpandabase/tests/
Dpandargs_test.cpp161 // add tail argument, expect false on duplicate in TestTailFunctions()
162 // erase tail, expect 0 tail size in TestTailFunctions()
545 // expect true on IsTailEnabled when tail is enabled, false otherwise in TestTailConsistency()
553 // expect tail only argument is consistent in TestTailConsistency()
566 // expect multiple tail only argument is consistent in TestTailConsistency()
633 // expect parse fail on wrong tail argument type in TestWrongTailArg()
651 // expect right tail argument processing after preceiding string argument in TestTailAfterString()
681 // expect right tail argument processing after preceiding list argument in TestTailAfterList()
718 // expect right tail argument processing after noparam boolean argument in TestTailAfterNoparamBoolean()
720 PandArg<std::string> tPas0("tail_string0", refDefStr, "Sample tail string argument 0"); in TestTailAfterNoparamBoolean()
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/taskmanager/utils/
Dsp_sc_lock_free_queue.h64 auto *tail = tail_.load(std::memory_order_acquire); in Push() local
70 tail->next.store(node, std::memory_order_release); in Push()
75 tail->buffer[GetNodeIndex(pushIndex)] = std::move(val); in Push()
/arkcompiler/ets_runtime/ecmascript/
Dtagged_node.cpp57 JSHandle<LinkedNode> &head, JSHandle<LinkedNode> &tail) in InOrderTraverse() argument
61 InOrderTraverse(thread, leftChild, head, tail); in InOrderTraverse()
63 if (tail.GetTaggedValue().IsHole()) { in InOrderTraverse()
66 tail->SetNext(thread, linkedNode.GetTaggedValue()); in InOrderTraverse()
68 tail = linkedNode; in InOrderTraverse()
70 InOrderTraverse(thread, rightChild, head, tail); in InOrderTraverse()
77 JSHandle<LinkedNode> tail(thread, JSTaggedValue::Hole()); in Detreeing() local
79 InOrderTraverse(thread, root, head, tail); in Detreeing()

1234