| /arkcompiler/ets_frontend/ts2panda/src/expression/ |
| D | arrayLiteralExpression.ts | 47 let element = elements[i]; 49 if (isConstantExpr(element)) { 50 let elem = parseConstantExpr(element); 55 emitCreateArrayWithBuffer(pandaGen, literalBuffer, element); 56 pandaGen.storeAccumulator(element, arrayObj); 62 compiler.compileExpression(element); 64 storeElementIfSpreadExisted(pandaGen, element, arrayObj, indexReg); 66 pandaGen.storeOwnProperty(element, arrayObj, i); 71 if (ts.isSpreadElement(element)) { 73 emitCreateArrayWithBuffer(pandaGen, literalBuffer, element); [all …]
|
| /arkcompiler/ets_frontend/es2panda/compiler/base/ |
| D | destructuring.cpp | 43 // create left reference for rest element in GenRestElement() 83 for (const auto *element : array->Elements()) { in GenArray() local 86 if (element->IsRestElement()) { in GenArray() 87 GenRestElement(pg, element->AsRestElement(), iterator, array->IsDeclaration()); in GenArray() 92 if (element->IsOmittedExpression()) { in GenArray() 98 const ir::Expression *target = element; in GenArray() 100 if (element->IsAssignmentPattern() || element->IsAssignmentExpression()) { in GenArray() 101 auto *assignment = element->IsAssignmentPattern() ? element->AsAssignmentPattern() : in GenArray() 102 element->AsAssignmentExpression(); in GenArray() 113 pg->BranchIfStrictUndefined(element, defaultInit); in GenArray() [all …]
|
| D | literals.cpp | 45 for (const auto *element : templateLit->Quasis()) { in GetTemplateObject() local 46 pg->LoadAccumulatorInt(element, elemIndex); in GetTemplateObject() 47 pg->StoreAccumulator(element, indexReg); in GetTemplateObject() 49 pg->LoadAccumulatorString(element, element->Raw()); in GetTemplateObject() 50 pg->StoreObjByValue(element, rawArr, indexReg); in GetTemplateObject() 52 pg->LoadAccumulatorString(element, element->Cooked()); in GetTemplateObject() 53 pg->StoreObjByValue(element, cookedArr, indexReg); in GetTemplateObject()
|
| /arkcompiler/ets_frontend/ts2panda/src/ |
| D | compilerUtils.ts | 92 let element = arr.elements[i]; 96 if (ts.isOmittedExpression(element)) { 101 // if its spread element 102 if ((!isDeclaration && ts.isSpreadElement(element)) || 103 (isDeclaration && (<ts.BindingElement>element).dotDotDotToken)) { 104 …emitRestElement(isDeclaration ? (<ts.BindingElement>element).name : (<ts.SpreadElement>element).ex… 106 pandaGen.branch(element, endLabel); 111 … let target: ts.Node = isDeclaration ? (<ts.BindingElement>element).name : <ts.Expression>element; 114 if (!isDeclaration && ts.isBinaryExpression(element)) { 115 if (element.operatorToken.kind != ts.SyntaxKind.EqualsToken) { [all …]
|
| D | recorder.ts | 413 namedBindings.elements.forEach((element) => { 414 let name: string = jshelpers.getTextOfIdentifierOrLiteral(element.name); 415 …let exoticName: string = element.propertyName ? jshelpers.getTextOfIdentifierOrLiteral(element.pro… 417 … importStmt.addNodeMap(element.name, element.propertyName ? element.propertyName : element.name); 448 namedBindings.elements.forEach((element) => { 449 let name: string = jshelpers.getTextOfIdentifierOrLiteral(element.name); 450 …let exoticName: string = element.propertyName ? jshelpers.getTextOfIdentifierOrLiteral(element.pro… 452 … exportStmt.addNodeMap(element.name, element.propertyName ? element.propertyName : element.name); 479 namedBindings.elements.forEach((element: any) => { 480 let localName: string = jshelpers.getTextOfIdentifierOrLiteral(element.name); [all …]
|
| /arkcompiler/runtime_core/runtime/tests/ |
| D | histogram_test.cpp | 51 int element; member 52 IntWrapper(int new_element) : element(new_element) {} in IntWrapper() 53 IntWrapper(const IntWrapper &new_wrapper) : element(new_wrapper.element) {} in IntWrapper() 56 element = new_wrapper.element; in operator =() 61 return element < other_wrapper.element; in operator <() 65 return element == other_wrapper.element; in operator ==() 69 return element / divider; in operator /() 73 return IntWrapper(element + other_wrapper.element); in operator +() 77 element += other_wrapper.element; in operator +=() 81 return IntWrapper(element * other_wrapper.element); in operator *() [all …]
|
| /arkcompiler/runtime_core/libpandabase/utils/ |
| D | ring_buffer.h | 145 * Appends the given element value to the end of the ring buffer 146 * @param value the value of the element to append 155 * Moves the given element value to the end of the ring buffer 156 * @param value the value of the element to append 164 * Appends a new element to the end of the ring buffer 167 * @param args arguments to forward to the constructor of the element 168 * @return a reference to the inserted element 179 * Appends the given element value to the begin of the ring buffer 180 * @param value the value of the element to append 189 * Moves the given element value to the begin of the ring buffer [all …]
|
| D | type_converter.cpp | 87 std::ostream &operator<<(std::ostream &os, const ValueUnit &element) in operator <<() argument 89 if (element.GetValue().index() == 0U) { in operator <<() 90 …os << std::fixed << std::setprecision(static_cast<int>(element.GetPrecision())) << element.GetDoub… in operator <<() 93 os << element.GetUint64Value(); in operator <<() 95 return os << element.GetLiteral(); in operator <<()
|
| /arkcompiler/runtime_core/runtime/include/ |
| D | histogram-inl.h | 46 void SimpleHistogram<Value>::AddValue(const Value &element, size_t number) in AddValue() argument 48 sum_ += element * number; in AddValue() 49 sum_of_squares_ += element * element * number; in AddValue() 51 min_ = element; in AddValue() 52 max_ = element; in AddValue() 54 min_ = std::min(min_, element); in AddValue() 55 max_ = std::max(max_, element); in AddValue() 89 void Histogram<Value>::AddValue(const Value &element, size_t number) in AddValue() argument 91 frequency_[element] += number; in AddValue() 92 SimpleHistogram<Value>::AddValue(element, number); in AddValue()
|
| D | histogram.h | 39 * \brief Add all element to statistics at the half-interval from \param start to \param finish 54 * \brief Add \param element to statistics \param number of times 55 * @param element 58 void AddValue(const Value &element, size_t number = 1); 120 * \brief Add all element to statistics at the half-interval from \param start to \param finish 137 * \brief Add \param element to statistics \param number of times 138 * @param element 141 void AddValue(const Value &element, size_t number = 1);
|
| /arkcompiler/runtime_core/runtime/ |
| D | compiler_queue_counter_priority.h | 95 auto element = queue_.back(); in GetTask() local 96 auto task = element->GetContext(); in GetTask() 98 allocator_->Delete(element); in GetTask() 118 auto element = allocator_->New<CompilationQueueElement>(ctx); variable 120 queue_.push_back(element); 121 …LOG(DEBUG, COMPILATION_QUEUE) << "Add an element to a " << queue_name_ << ": " << GetTaskDescripti… 139 virtual bool UpdateCounterAndCheck(CompilationQueueElement *element) in UpdateCounterAndCheck() argument 142 element->UpdateCounter(element->GetContext().GetMethod()->GetHotnessCounter()); in UpdateCounterAndCheck() 144 return (cur_stamp - element->GetTimestamp() >= task_life_span_); in UpdateCounterAndCheck() 177 auto element = *it; in UpdateQueue() local [all …]
|
| D | compiler_queue_aged_counter_priority.h | 45 bool UpdateCounterAndCheck(CompilationQueueElement *element) override in UpdateCounterAndCheck() argument 49 ASSERT(current_time >= element->GetTimestamp()); in UpdateCounterAndCheck() 50 uint64_t duration = current_time - element->GetTimestamp(); in UpdateCounterAndCheck() 58 aged_counter = element->GetContext().GetMethod()->GetHotnessCounter() >> shift; in UpdateCounterAndCheck() 60 element->UpdateCounter(aged_counter); in UpdateCounterAndCheck()
|
| /arkcompiler/runtime_core/docs/ |
| D | assembly_format.md | 164 …element.name` | Used to specify name of the annotation element. `java.annotation.class` must be de… 165 …element.type` | Used to specify type of the annotation element. `java.annotation.element.name` mus… 166 …element.array.component.type` | Used to specify component type of the array annotation element. `j… 167 …n.element.value` | Used to specify value of the annotation element. Allowed multiple definitions (… 192 …element.name=NameArr, java.annotation.element.type=array, java.annotation.element.array.component.… 465 func_kv_pair := <an element of the function standard metadata list that assumes the assign… 466 func_id := <an element of the function standard metadata list> 469 func_kv_lonely_pair := <an element of the function lonely metadata list that assumes the assignme… 470 func_lonely_id := <an element of the function lonely metadata list> 477 rec_kv_pair := <an element of the record standard metadata list that assumes the assignmen… [all …]
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | array_helper.cpp | 163 JSMutableHandle<JSTaggedValue> element(thread, JSTaggedValue::Undefined()); in FlattenIntoArray() local 171 // i. Let element be ? Get(source, P). in FlattenIntoArray() 173 …// 1. Set element to ? Call(mapperFunction, thisArg, « element, sourceIndex, source »). in FlattenIntoArray() 176 // 1. Set shouldFlatten to ? IsArray(element). in FlattenIntoArray() 180 // 3. Let elementLen be ? LengthOfArrayLike(element). in FlattenIntoArray() 181 …// 4. Set targetIndex to ? FlattenIntoArray(target, element, elementLen, targetIndex, … in FlattenIntoArray() 184 …// 2. Perform ? CreateDataPropertyOrThrow(target, ! ToString(!(targetIndex)), element). in FlattenIntoArray() 194 element.Update(JSArray::FastGetPropertyByValue(thread, thisObjVal, p).GetTaggedValue()); in FlattenIntoArray() 197 const int32_t argsLength = 3; // 3: « element, sourceIndex, source » in FlattenIntoArray() 202 … info->SetCallArg(element.GetTaggedValue(), p.GetTaggedValue(), thisObjVal.GetTaggedValue()); in FlattenIntoArray() [all …]
|
| /arkcompiler/ets_frontend/ts2panda/tests/expression/ |
| D | propertyAccess.test.ts | 112 compilerunit.forEach(element => { 113 if (element.internalName == "func_main_0") { 114 let insns = element.getInsns(); 120 if (element.internalName == "myMethod") { 121 let parameterLength = element.getParameterLength(); 154 compilerunit.forEach(element => { 155 if (element.internalName == "func_main_0") { 156 let insns = element.getInsns(); 195 compilerunit.forEach(element => { 196 if (element.internalName == "func_main_0") { [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | tagged_list.cpp | 145 int TaggedList<Derived>::FindIndexByElement(const JSTaggedValue &element) in FindIndexByElement() argument 154 if (JSTaggedValue::SameValue(data, element)) { in FindIndexByElement() 163 int TaggedList<Derived>::FindLastIndexByElement(const JSTaggedValue &element) in FindLastIndexByElement() argument 172 if (JSTaggedValue::SameValue(data, element)) { in FindLastIndexByElement() 247 int TaggedList<Derived>::FindPrevNodeByValue(const JSTaggedValue &element) in FindPrevNodeByValue() argument 255 if (JSTaggedValue::SameValue(data, element)) { in FindPrevNodeByValue() 341 bool TaggedSingleList::Has(const JSTaggedValue &element) in Has() argument 343 int dataIndex = FindIndexByElement(element); in Has() 362 int TaggedSingleList::GetIndexOf(const JSTaggedValue &element) in GetIndexOf() argument 364 return FindIndexByElement(element); in GetIndexOf() [all …]
|
| D | tagged_list.h | 48 int FindIndexByElement(const JSTaggedValue &element); 49 int FindLastIndexByElement(const JSTaggedValue &element); 54 int FindPrevNodeByValue(const JSTaggedValue &element); 78 inline void SetElement(const JSThread *thread, int index, const JSTaggedValue &element) in SetElement() argument 83 Set(thread, index, element); in SetElement() 159 JSTaggedValue Remove(JSThread *thread, const JSTaggedValue &element); 184 const JSTaggedValue &element); 186 const JSTaggedValue &element); 197 JSTaggedValue Remove(JSThread *thread, const JSTaggedValue &element); 201 int FindPrevNodeByValueAtLast(const JSTaggedValue &element);
|
| /arkcompiler/ets_runtime/ecmascript/js_api/ |
| D | js_api_linked_list.h | 53 const JSTaggedValue &element); 55 const JSTaggedValue &element); 57 bool Has(const JSTaggedValue &element); 61 JSTaggedValue Remove(JSThread *thread, const JSTaggedValue &element); 62 JSTaggedValue GetIndexOf(const JSTaggedValue &element); 63 JSTaggedValue GetLastIndexOf(const JSTaggedValue &element);
|
| D | js_api_linked_list.cpp | 107 JSTaggedValue JSAPILinkedList::Remove(JSThread *thread, const JSTaggedValue &element) in Remove() argument 114 return doubleList->Remove(thread, element); in Remove() 118 const JSTaggedValue &element) in RemoveFirstFound() argument 126 return TaggedDoubleList::RemoveFirstFound(thread, doubleList, element); in RemoveFirstFound() 130 const JSTaggedValue &element) in RemoveLastFound() argument 138 return TaggedDoubleList::RemoveLastFound(thread, doubleList, element); in RemoveLastFound() 191 bool JSAPILinkedList::Has(const JSTaggedValue &element) in Has() argument 194 return doubleList->Has(element); in Has() 207 JSTaggedValue JSAPILinkedList::GetIndexOf(const JSTaggedValue &element) in GetIndexOf() argument 210 return JSTaggedValue(doubleList->GetIndexOf(element)); in GetIndexOf() [all …]
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | ring_buffer_test.cpp | 53 for (const auto &element : buffer) { in TEST() local 54 ASSERT_EQ(element, i++); in TEST() 57 // Add new element when buffer is full in TEST() 69 for (const auto &element : buffer) { in TEST() local 70 ASSERT_EQ(element, i++); in TEST() 122 for (const auto &element : buffer) { in TEST() local 123 ASSERT_EQ(element, i++); in TEST()
|
| /arkcompiler/runtime_core/runtime/mem/gc/heap-space-misc/ |
| D | crossing_map.h | 57 // Each page from PANDA_CROSSING_MAP_COVERAGE heap space has its element in crossing map. 58 // This element (or map) can be used to get the first object address, which starts inside this page… 127 // How much memory we manage via one element of the static array. 136 // Each element of the crossing map consists of two fields: 142 // - if Status == Uninitialized, there is no element in this Page at all. 144 …// - if Status == Initialized, the Offset value is an offset in words of the first element on this… 145 // We can start our range iteration from this element. 150 …s == Initialized and Crossed border, the Offset value is an offset in words of the first element on 155 // This element of crossing map hasn't been initialized yet. 287 … void *element = ToVoidPtr(ToUintPtr(static_array_) + static_array_num * sizeof(StaticArrayPtr)); in SetStaticArrayElement() local [all …]
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | dumper.cpp | 32 std::visit([](auto&& element) { in DumpLiterals() argument 33 if constexpr (std::is_same_v<decltype(element), unsigned char &>) { in DumpLiterals() 34 std::cout << " val: " << unsigned(element) << std::endl; in DumpLiterals() 36 std::cout << " val: " << element << std::endl; in DumpLiterals()
|
| /arkcompiler/runtime_core/libpandabase/mem/ |
| D | mmap_mem_pool-inl.h | 34 auto element = free_pools_.lower_bound(size); in PopFreePool() local 35 if (element == free_pools_.end()) { in PopFreePool() 38 auto mmap_pool = element->second; in PopFreePool() 40 auto element_size = element->first; in PopFreePool() 46 free_pools_.erase(element); in PopFreePool() 433 auto element = non_object_mmaped_pools_.find(pool_addr); in RemoveFromNonObjectPoolsMap() local 434 ASSERT(element != non_object_mmaped_pools_.end()); in RemoveFromNonObjectPoolsMap() 435 non_object_mmaped_pools_.erase(element); in RemoveFromNonObjectPoolsMap() 440 auto element = non_object_mmaped_pools_.lower_bound(addr); in FindAddrInNonObjectPoolsMap() local 441 uintptr_t pool_start = (element != non_object_mmaped_pools_.end()) ? ToUintPtr(element->first) in FindAddrInNonObjectPoolsMap() [all …]
|
| /arkcompiler/runtime_core/runtime/mem/gc/ |
| D | gc_adaptive_stack.cpp | 80 void GCAdaptiveStack::PushToStack(const ObjectHeader *element) in PushToStack() argument 82 ASSERT(element != nullptr); in PushToStack() 83 ASSERT(IsInObjectsAddressSpace(ToUintPtr(element))); in PushToStack() 109 stack_dst_->push(element); in PushToStack() 125 const ObjectHeader *element = stack_src_->top(); in PopFromStack() local 127 return element; in PopFromStack()
|
| /arkcompiler/runtime_core/assembler/ |
| D | meta.cpp | 242 "'. Annotation element isn't completely defined", in Store() 258 "'. Annotation element isn't completely defined", in MeetExpRecordAttribute() 298 "'. Previous annotation element isn't defined completely", in MeetExpElementNameAttribute() 312 "'. Annotation element name attribute must be defined first", in MeetExpElementTypeAttribute() 318 "'. Annotation element type attribute already defined", in MeetExpElementTypeAttribute() 332 "'. Annotation element name attribute must be defined first", in MeetExpElementArrayComponentTypeAttribute() 337 …std::string("Unexpected attribute '").append(attribute) + "'. Annotation element type isn't array", in MeetExpElementArrayComponentTypeAttribute() 343 "'. Annotation element array component type attribute already defined", in MeetExpElementArrayComponentTypeAttribute() 357 "'. Annotation element name attribute must be defined first", in MeetExpElementValueAttribute() 363 "'. Annotation element type attribute isn't defined", in MeetExpElementValueAttribute() [all …]
|