Home
last modified time | relevance | path

Searched full:tail (Results 1 – 25 of 94) 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/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/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/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/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/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/
Dpreparation_step.py233 tail = [f"\nfunction main({param_line}){return_type} {throws}{{"]
235 tail.append(f"{self.__indent}let result = 0")
236 tail.append(f"{self.__indent}for(let i = 0; i < {self.num_repeats}; i++) {{")
238 tail.append(f"{self.__indent * 2}result += main_run({param_name})")
240 tail.append(f"{self.__indent * 2}main_run({param_name})")
241 tail.append(f"{self.__indent}}}")
243 tail.append(f"{self.__indent}return result;")
244 tail.append("}")
247 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.h239 errstr_ += "pandargs: Can't add `nullptr` as a tail argument\n"; in PushBackTail()
243 … errstr_ += "pandargs: Tail argument " + arg->GetName() + " is already in tail arguments list\n"; in PushBackTail()
253 errstr_ += "pandargs: Nothing to pop back from tail arguments\n"; in PopBackTail()
369 helpstr << "Tail arguments:\n"; in GetHelpString()
461 // reset tail in InitDefault()
643 // tail argument, N.B. std::string::npos > 0 in ParseNextArg()
645 errstr_.append("pandargs: Tail arguments are not enabled\n"); in ParseNextArg()
646 errstr_.append("pandargs: Tail found at literal \""); in ParseNextArg()
652 errstr_.append("pandargs: Too many tail arguments\n"); in ParseNextArg()
659 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/runtime_core/static_core/libpandabase/tests/
Dpandargs_test.cpp60 PandArg<bool> tPab("tail_bool", REF_DEF_BOOL, "Sample tail boolean argument"); in TEST()
61 PandArg<int> tPai("tail_int", REF_DEF_INT, "Sample tail integer argument"); in TEST()
62 PandArg<double> tPad("tail_double", REF_DEF_DOUBLE, "Sample tail rational argument"); in TEST()
63 PandArg<std::string> tPas("tail_string", REF_DEF_STRING, "Sample tail string argument"); in TEST()
64 PandArg<uint32_t> tPau32("tail_uint32", REF_DEF_UINT32, "Sample tail uint32 argument"); in TEST()
65 PandArg<uint64_t> tPau64("tail_uint64", REF_DEF_UINT64, "Sample tail uint64 argument"); in TEST()
147 // add tail argument, expect false on duplicate in TEST()
148 // erase tail, expect 0 tail size in TEST()
564 // expect true on IsTailEnabled when tail is enabled, false otherwise in TEST()
572 // expect tail only argument is consistent in TEST()
[all …]
/arkcompiler/ets_frontend/es2panda/test/size_statistics/
DREADME.md13 ### Tail arguments
/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_frontend/test/scripts/sdk_test/
Dconfig.yaml143 tail: "\n console.log(a.toString());\n"
145 tail: "\n console.log('This is a new line');\n"
147tail: "\n let a_duplicated_value_for_test_suite = 1; function a_duplicated_value_for_test_suite() …
/arkcompiler/ets_runtime/ecmascript/
Dtagged_node.cpp58 JSHandle<LinkedNode> &head, JSHandle<LinkedNode> &tail) in InOrderTraverse() argument
62 InOrderTraverse(thread, leftChild, head, tail); in InOrderTraverse()
64 if (tail.GetTaggedValue().IsHole()) { in InOrderTraverse()
67 tail->SetNext(thread, linkedNode.GetTaggedValue()); in InOrderTraverse()
69 tail = linkedNode; in InOrderTraverse()
71 InOrderTraverse(thread, rightChild, head, tail); in InOrderTraverse()
78 JSHandle<LinkedNode> tail(thread, JSTaggedValue::Hole()); in Detreeing() local
80 InOrderTraverse(thread, root, head, tail); in Detreeing()
/arkcompiler/ets_frontend/es2panda/util/
DsymbolTable.cpp164 auto tail = input.substr(lastPos); in GetStringItems() local
165 if (!tail.empty()) { in GetStringItems()
166 items.push_back(tail); in GetStringItems()
/arkcompiler/runtime_core/static_core/models/thread_pool/
Dthread_pool.tla431 … /\ stack' = [stack EXCEPT ![self] = Tail(stack[self])]
448 /\ stack' = [stack EXCEPT ![self] = Tail(stack[self])]
475 /\ stack' = [stack EXCEPT ![self] = Tail(stack[self])]
495 /\ stack' = [stack EXCEPT ![self] = Tail(stack[self])]
530 /\ stack' = [stack EXCEPT ![self] = Tail(stack[self])]
551 /\ stack' = [stack EXCEPT ![self] = Tail(stack[self])]
598 /\ stack' = [stack EXCEPT ![self] = Tail(stack[self])]
626 /\ stack' = [stack EXCEPT ![self] = Tail(stack[self])]
763 /\ stack' = [stack EXCEPT ![self] = Tail(stack[self])]
792 /\ stack' = [stack EXCEPT ![self] = Tail(stack[self])]
[all …]

1234