Home
last modified time | relevance | path

Searched refs:element (Results 1 – 25 of 53) sorted by relevance

123

/ark/ts2abc/ts2panda/src/expression/
DarrayLiteralExpression.ts47 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 …]
/ark/runtime_core/runtime/tests/
Dhistogram_test.cpp51 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 …]
/ark/ts2abc/ts2panda/src/
DcompilerUtils.ts86 let element = arr.elements[i];
90 if (ts.isOmittedExpression(element)) {
95 if ((!isDeclaration && ts.isSpreadElement(element)) ||
96 (isDeclaration && (<ts.BindingElement>element).dotDotDotToken)) {
97 …emitRestElement(isDeclaration ? (<ts.BindingElement>element).name : (<ts.SpreadElement>element).ex…
99 pandaGen.branch(element, endLabel);
104 … let target: ts.Node = isDeclaration ? (<ts.BindingElement>element).name : <ts.Expression>element;
107 if (!isDeclaration && ts.isBinaryExpression(element)) {
108 if (element.operatorToken.kind != ts.SyntaxKind.EqualsToken) {
112 target = element.left;
[all …]
Drecorder.ts383 namedBindings.elements.forEach((element) => {
384 let name: string = jshelpers.getTextOfIdentifierOrLiteral(element.name);
385 …let exoticName: string = element.propertyName ? jshelpers.getTextOfIdentifierOrLiteral(element.pro…
386 scope.setDecls(new ConstDecl(name, element));
388 … importStmt.addNodeMap(element.name, element.propertyName ? element.propertyName : element.name);
418 namedBindings.elements.forEach((element) => {
419 let name: string = jshelpers.getTextOfIdentifierOrLiteral(element.name);
427 …let exoticName: string = element.propertyName ? jshelpers.getTextOfIdentifierOrLiteral(element.pro…
429 … exportStmt.addNodeMap(element.name, element.propertyName ? element.propertyName : element.name);
DsyntaxChecker.ts391 for (let element of elements) {
392 if (!ts.isOmittedExpression(element)) {
393 checkNameInLetOrConstDeclarations(element.name);
1350 let element = elements[i];
1352 if (ts.isSpreadAssignment(element)) {
1355 …throw new DiagnosticError(element, DiagnosticCode.A_rest_element_must_be_last_in_a_destructuring_p…
1360 if (ts.isPropertyAssignment(element)) {
1361 …let target = ts.isBinaryExpression(element.initializer) ? element.initializer.left : element.initi…
1370 … throw new DiagnosticError(element, DiagnosticCode.Property_destructuring_pattern_expected, file);
1380 … throw new DiagnosticError(element, DiagnosticCode.Property_destructuring_pattern_expected, file);
[all …]
DcompilerDriver.ts161 statics.forEach((element, idx) => {
162 if (element > 0) {
163 LOGD(this.kind2String(idx) + " = " + element);
/ark/runtime_core/runtime/include/
Dhistogram-inl.h46 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()
Dhistogram.h58 void AddValue(const Value &element, size_t number = 1);
147 void AddValue(const Value &element, size_t number = 1);
/ark/ts2abc/ts2panda/tests/expression/
DpropertyAccess.test.ts97 compilerunit.forEach(element => {
98 if (element.internalName == "func_main_0") {
99 let insns = element.getInsns();
105 if (element.internalName == "myMethod") {
106 let parameterLength = element.getParameterLength();
134 compilerunit.forEach(element => {
135 if (element.internalName == "func_main_0") {
136 let insns = element.getInsns();
170 compilerunit.forEach(element => {
171 if (element.internalName == "func_main_0") {
[all …]
/ark/js_runtime/ecmascript/
Djs_stable_array.cpp129 auto element = srcElementsHandle->Get(idx + actualDeleteCount); in Splice() local
130 element = element.IsHole() ? JSTaggedValue::Undefined() : element; in Splice()
131 srcElementsHandle->Set(thread, idx + insertCount, element); in Splice()
146 auto element = srcElementsHandle->Get(idx + actualDeleteCount - 1); in Splice() local
147 element = element.IsHole() ? JSTaggedValue::Undefined() : element; in Splice()
148 srcElementsHandle->Set(thread, idx + insertCount - 1, element); in Splice()
229 JSTaggedValue element = elements->Get(k); in Join() local
230 if (!element.IsUndefinedOrNull() && !element.IsHole()) { in Join()
231 if (!element.IsString()) { in Join()
232 elementHandle.Update(element); in Join()
[all …]
Dlinked_hash_table-inl.h32 …ashTable<Derived, HashObject>::SetElement(const JSThread *thread, int index, JSTaggedValue element) in SetElement() argument
35 Set(thread, index, element); in SetElement()
193 JSTaggedValue element = GetKey(entry.GetInt()); in FindElement() local
194 if (element.IsHole()) { in FindElement()
197 if (element.IsWeak()) { in FindElement()
198 element.RemoveWeakTag(); in FindElement()
200 if (HashObject::IsMatch(key, element)) { in FindElement()
Dtemplate_string.cpp32 int32_t element = templateMap->FindEntry(rawStringsTag.GetTaggedValue()); in GetTemplateObject() local
33 if (element != -1) { in GetTemplateObject()
34 return JSHandle<JSTaggedValue>(thread, templateMap->GetValue(element)); in GetTemplateObject()
Djs_array.cpp174 TaggedArray *element = TaggedArray::Cast(array->GetElements().GetTaggedObject()); in SetCapacity() local
176 if (element->IsDictionaryMode()) { in SetCapacity()
181 JSHandle<NumberDictionary> dictHandle(thread, element); in SetCapacity()
208 uint32_t capacity = element->GetLength(); in SetCapacity()
Djs_api_arraylist.cpp131 JSHandle<JSTaggedValue> element(thread, elements->Get(i)); in GetIndexOf() local
132 if (JSTaggedValue::StrictEqual(thread, value, element)) { in GetIndexOf()
146 JSHandle<JSTaggedValue> element(thread, elements->Get(i)); in GetLastIndexOf() local
147 if (JSTaggedValue::StrictEqual(thread, value, element)) { in GetLastIndexOf()
Djs_hclass.cpp66 JSTaggedValue element = GetKey(entry); in FindEntry() local
67 if (element.IsHole()) { in FindEntry()
70 if (element.IsUndefined()) { in FindEntry()
74 if (TransitionsDictionary::IsMatch(key, metaData, element, GetAttributes(entry))) { in FindEntry()
/ark/runtime_core/libpandabase/utils/
Dtype_converter.cpp84 std::ostream &operator<<(std::ostream &os, const ValueUnit &element) in operator <<() argument
86 if (element.GetValue().index() == 0U) { in operator <<()
87 …os << std::fixed << std::setprecision(static_cast<int>(element.GetPrecision())) << element.GetDoub… in operator <<()
90 os << element.GetUint64Value(); in operator <<()
92 return os << element.GetLiteral(); in operator <<()
Dtype_converter.h75 std::ostream &operator<<(std::ostream &os, const ValueUnit &element);
/ark/ts2abc/ts2panda/tests/statements/
DfunctionDeclaration.test.ts135 compilerunit.forEach(element => {
136 if (element.internalName == "func_main_0") {
137 let insns = element.getInsns();
139 } else if (element.internalName == "test") {
140 let insns = element.getInsns();
142 let parameterLength = element.getParameterLength();
/ark/runtime_core/libpandabase/mem/
Dmmap_mem_pool-inl.h34 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()
412 auto element = non_object_mmaped_pools_.find(pool_addr); in RemoveFromNonObjectPoolsMap() local
413 ASSERT(element != non_object_mmaped_pools_.end()); in RemoveFromNonObjectPoolsMap()
414 non_object_mmaped_pools_.erase(element); in RemoveFromNonObjectPoolsMap()
419 auto element = non_object_mmaped_pools_.lower_bound(addr); in FindAddrInNonObjectPoolsMap() local
421element != non_object_mmaped_pools_.end() ? ToUintPtr(element->first) : std::numeric_limits<uintpt… in FindAddrInNonObjectPoolsMap()
[all …]
/ark/runtime_core/tests/cts-assembly/
Darrays-08.pa19 # Load an element from array using accumulator as an index and puts it into accumulator.
20 # If element size is smaller then 32 bits, it will be zero or sign extended (depending on byt…
Darrays-07.pa19 # Load an element from array using accumulator as an index and puts it into accumulator.
20 # If element size is smaller then 32 bits, it will be zero or sign extended (depending on byt…
/ark/runtime_core/docs/
Dassembly_format.md418 func_kv_pair := <an element of the function standard metadata list that assumes the assign…
419 func_id := <an element of the function standard metadata list>
422 func_kv_lonely_pair := <an element of the function lonely metadata list that assumes the assignme…
423 func_lonely_id := <an element of the function lonely metadata list>
430 rec_kv_pair := <an element of the record standard metadata list that assumes the assignmen…
431 rec_id := <an element of the record standard metadata list>
434 rec_kv_lonely_pair := <an element of the record lonely metadata list that assumes the assignment …
435 rec_lonely_id := <an element of the record lonely metadata list>
441 field_kv_pair := <an element of the field metadata list that assumes the assignment of a val…
442 field_id := <an element of the field metadata list>
/ark/runtime_core/runtime/mem/gc/
Dcrossing_map.h286 … void *element = ToVoidPtr(ToUintPtr(static_array_) + static_array_num * sizeof(StaticArrayPtr)); in SetStaticArrayElement() local
287 *static_cast<StaticArrayPtr>(element) = value; in SetStaticArrayElement()
Dcrossing_map.cpp57 void *element = GetStaticArrayElement(i); in Destroy() local
58 if (element != nullptr) { in Destroy()
59 internal_allocator_->Free(element); in Destroy()
/ark/ts2abc/ts2panda/src/base/
DtypeSystem.ts138 for (let element of this.anonymousRedirect) {
139 summaryLiterals.push(new Literal(LiteralTag.STRING, element));
512 for (let element of (<ts.UnionType><any>typeNode).types) {
513 let elementNode = <ts.TypeNode><any>element;

123