/arkcompiler/ets_runtime/ecmascript/js_api/ |
D | js_api_deque.cpp | 35 JSHandle<TaggedArray> elements(thread, deque->GetElements()); in InsertFront() local 36 ASSERT(!elements->IsDictionaryMode()); in InsertFront() 37 uint32_t capacity = elements->GetLength(); in InsertFront() 42 elements = GrowCapacity(thread, deque, capacity, first, last); in InsertFront() 43 ASSERT(!elements->IsDictionaryMode()); in InsertFront() 47 capacity = elements->GetLength(); in InsertFront() 50 elements->Set(thread, first, value); in InsertFront() 56 JSHandle<TaggedArray> elements(thread, deque->GetElements()); in InsertEnd() local 57 ASSERT(!elements->IsDictionaryMode()); in InsertEnd() 58 uint32_t capacity = elements->GetLength(); in InsertEnd() [all …]
|
D | js_api_stack.cpp | 37 JSHandle<TaggedArray> elements = GrowCapacity(thread, stack, top + 1); in Push() local 39 ASSERT(!elements->IsDictionaryMode()); in Push() 40 elements->Set(thread, top + 1, value); in Push() 52 TaggedArray *elements = TaggedArray::Cast(this->GetElements().GetTaggedObject()); in Peek() local 53 ASSERT(!elements->IsDictionaryMode()); in Peek() 54 return elements->Get(top); in Peek() 63 TaggedArray *elements = TaggedArray::Cast(this->GetElements().GetTaggedObject()); in Pop() local 64 ASSERT(!elements->IsDictionaryMode()); in Pop() 66 return elements->Get(top + 1); in Pop() 72 TaggedArray *elements = TaggedArray::Cast(this->GetElements().GetTaggedObject()); in Search() local [all …]
|
D | js_api_vector.cpp | 35 TaggedArray *elements = TaggedArray::Cast(vector->GetElements().GetTaggedObject()); in Add() local 36 ASSERT(!elements->IsDictionaryMode()); in Add() 37 elements->Set(thread, length, value); in Add() 52 TaggedArray *elements = TaggedArray::Cast(vector->GetElements().GetTaggedObject()); in Insert() local 53 ASSERT(!elements->IsDictionaryMode()); in Insert() 55 elements->Set(thread, i + 1, elements->Get(i)); in Insert() 58 elements->Set(thread, index, value); in Insert() 104 TaggedArray *elements = TaggedArray::Cast(vector->GetElements().GetTaggedObject()); in GetIndexFrom() local 105 ASSERT(!elements->IsDictionaryMode()); in GetIndexFrom() 115 value.Update(JSTaggedValue(elements->Get(i))); in GetIndexFrom() [all …]
|
D | js_api_queue.cpp | 30 JSHandle<TaggedArray> elements = GrowCapacity(thread, queue, length + 1); in Add() local 32 ASSERT(!elements->IsDictionaryMode()); in Add() 35 elements->Set(thread, tail, value); in Add() 38 uint32_t elementsSize = elements->GetLength(); in Add() 79 JSHandle<TaggedArray> elements(thread, queue->GetElements()); in GetFirst() local 80 ASSERT(!elements->IsDictionaryMode()); in GetFirst() 81 return elements->Get(index); in GetFirst() 91 JSHandle<TaggedArray> elements(thread, queue->GetElements()); in Pop() local 92 ASSERT(!elements->IsDictionaryMode()); in Pop() 95 JSTaggedValue value = elements->Get(front); in Pop() [all …]
|
D | js_api_arraylist.cpp | 35 JSHandle<TaggedArray> elements = GrowCapacity(thread, arrayList, length + 1); in Add() local 37 ASSERT(!elements->IsDictionaryMode()); in Add() 38 elements->Set(thread, length, value); in Add() 54 JSHandle<TaggedArray> elements = GrowCapacity(thread, arrayList, length + 1); in Insert() local 55 ASSERT(!elements->IsDictionaryMode()); in Insert() 57 elements->Set(thread, i + 1, elements->Get(i)); in Insert() 59 elements->Set(thread, index, value); in Insert() 67 JSHandle<TaggedArray> elements(thread, arrayList->GetElements()); in Clear() local 68 ASSERT(!elements->IsDictionaryMode()); in Clear() 70 elements->Set(thread, i, JSTaggedValue::Hole()); in Clear() [all …]
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | genericMethodOverspecialization.ts | 42 let elements = names.map(function (name) { variable 43 AssertType(elements, "HTMLElement[]"); 57 let xxx = elements.filter(function (e) { 59 AssertType(elements.filter, "{ <S extends HTMLElement>((HTMLElement, number, HTMLElement[]) => valu… 62 AssertType(elements.filter(function (e) { return !e.isDisabled;}), "HTMLElement[]"); 70 let widths:number[] = elements.map(function (e) { // should not error 72 AssertType(elements.map, "<U>((HTMLElement, number, HTMLElement[]) => U, ?any) => U[]"); 75 AssertType(elements.map(function (e) { // should not error return e.clientWidth;}), "number[]");
|
D | discriminantsAndPrimitives.ts | 133 elements: string[] property 146 n.elements.slice() // n should be narrowed to Pattern 147 AssertType(n.elements.slice(), "string[]"); 148 AssertType(n.elements.slice, "(?union, ?union) => string[]"); 149 AssertType(n.elements, "string[]");
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | containers_plainarray_stub_builder.h | 38 GateRef elements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in Get() local 39 return GetValueFromTaggedArray(elements, index); in Get() 45 GateRef elements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in GetKey() local 46 return GetValueFromTaggedArray(elements, index); in GetKey() 51 GateRef elements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in Set() local 52 SetValueToTaggedArray(VariableType::JS_ANY(), glue, elements, index, value); in Set()
|
D | containers_deque_stub_builder.h | 34 GateRef elements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in GetSize() local 35 … GateRef capacity = Load(VariableType::INT32(), elements, IntPtr(TaggedArray::LENGTH_OFFSET)); in GetSize() 44 GateRef elements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in Get() local 45 … GateRef capacity = Load(VariableType::INT32(), elements, IntPtr(TaggedArray::LENGTH_OFFSET)); in Get() 48 return GetValueFromTaggedArray(elements, curIndex); in Get() 64 GateRef elements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in GetElementsLength() local 65 return Load(VariableType::INT32(), elements, IntPtr(TaggedArray::LENGTH_OFFSET)); in GetElementsLength()
|
D | containers_queue_stub_builder.h | 51 GateRef elements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in GetArrayLength() local 52 … GateRef elementsSize = Load(VariableType::INT32(), elements, IntPtr(TaggedArray::LENGTH_OFFSET)); in GetArrayLength() 65 GateRef elements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in Get() local 66 … GateRef capacity = Load(VariableType::INT32(), elements, IntPtr(TaggedArray::LENGTH_OFFSET)); in Get() 69 return GetValueFromTaggedArray(elements, curIndex); in Get() 75 GateRef elements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in GetNextPosition() local 76 … GateRef elementsSize = Load(VariableType::INT32(), elements, IntPtr(TaggedArray::LENGTH_OFFSET)); in GetNextPosition()
|
D | containers_vector_stub_builder.h | 38 GateRef elements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in Get() local 39 return GetValueFromTaggedArray(elements, index); in Get() 44 GateRef elements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in Set() local 45 SetValueToTaggedArray(VariableType::JS_ANY(), glue, elements, index, value); in Set()
|
D | containers_stack_stub_builder.h | 39 GateRef elements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in Get() local 40 return GetValueFromTaggedArray(elements, index); in Get() 45 GateRef elements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in Set() local 46 SetValueToTaggedArray(VariableType::JS_ANY(), glue, elements, index, value); in Set()
|
D | containers_arraylist_stub_builder.h | 39 GateRef elements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in Get() local 40 return GetValueFromTaggedArray(elements, index); in Get() 46 GateRef elements = Load(VariableType::JS_POINTER(), obj, elementsOffset); in Set() local 47 SetValueToTaggedArray(VariableType::JS_ANY(), glue, elements, index, value); in Set()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | ntype_mcr_lowering.cpp | 70 GateRef elements = builder_.GetGlobalConstantValue(ConstantIndex::EMPTY_ARRAY_OBJECT_INDEX); in LowerCreateEmptyArray() local 72 auto array = NewJSArrayLiteral(elements, length); in LowerCreateEmptyArray() 80 GateRef elements = Circuit::NullGate(); in LowerCreateArrayWithOwn() local 82 elements = NewTaggedArray(elementsLength); in LowerCreateArrayWithOwn() 84 …elements = LowerCallRuntime(glue, gate, RTSTUB_ID(NewTaggedArray), { builder_.Int32ToTaggedInt(len… in LowerCreateArrayWithOwn() 87 auto array = NewJSArrayLiteral(elements, length); in LowerCreateArrayWithOwn() 104 GateRef elements = LoadFromConstPool(jsFunc, elementIndex); in LowerCreateArrayWithBuffer() local 115 auto array = NewJSArrayLiteral(elements, length); in LowerCreateArrayWithBuffer() 125 GateRef NTypeMCRLowering::NewJSArrayLiteral(GateRef elements, GateRef length) in NewJSArrayLiteral() argument 149 … builder_.StoreConstOffset(VariableType::JS_POINTER(), array, JSObject::ELEMENTS_OFFSET, elements); in NewJSArrayLiteral() [all …]
|
/arkcompiler/ets_frontend/es2panda/test/ |
D | test262skiplist.txt | 1745 language/expressions/class/elements/after-same-line-gen-computed-names.js 1746 language/expressions/class/elements/after-same-line-gen-grammar-privatename-identifier-semantics-st… 1747 language/expressions/class/elements/after-same-line-gen-private-field-usage.js 1748 language/expressions/class/elements/after-same-line-gen-private-method-getter-usage.js 1749 language/expressions/class/elements/after-same-line-gen-private-method-usage.js 1750 language/expressions/class/elements/after-same-line-gen-private-names.js 1751 language/expressions/class/elements/after-same-line-gen-rs-private-getter-alt.js 1752 language/expressions/class/elements/after-same-line-gen-rs-private-getter.js 1753 language/expressions/class/elements/after-same-line-gen-rs-private-method-alt.js 1754 language/expressions/class/elements/after-same-line-gen-rs-private-method.js [all …]
|
/arkcompiler/ets_frontend/es2panda/test/parser/js/ |
D | test-array-expression-expected.txt | 25 "elements": [], 67 "elements": [ 141 "elements": [ 238 "elements": [ 241 "elements": [ 244 "elements": [], 327 "elements": [ 332 "elements": [], 408 "elements": [
|
/arkcompiler/ets_frontend/ts2panda/src/expression/ |
D | arrayLiteralExpression.ts | 28 createArrayFromElements(node, compiler, node.elements, arrayObj); 32 export function createArrayFromElements(node: ts.Node, compiler: Compiler, elements: ts.NodeArray<t… 35 if (elements.length === 0) { 46 for (let i = 0; i < elements.length; i++) { 47 let element = elements[i]; 54 if (i === elements.length - 1) { 96 if (i === elements.length - 1) { 103 pandaGen.loadAccumulatorInt(element, elements.length);
|
/arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/ |
D | arrayDestructuring23-expected.txt | 11 "elements": [ 30 "elements": [ 73 "elements": [ 125 "elements": [ 142 "elements": [
|
D | arrayDestructuring21-expected.txt | 11 "elements": [ 14 "elements": [ 69 "elements": [ 72 "elements": [
|
D | arrayDestructuring22-expected.txt | 11 "elements": [ 30 "elements": [ 73 "elements": [ 139 "elements": [ 156 "elements": [
|
D | arrayDestructuring38-expected.txt | 68 "elements": [ 71 "elements": [ 112 "elements": [ 115 "elements": [],
|
D | arrayDestructuring40-expected.txt | 68 "elements": [ 71 "elements": [ 112 "elements": [ 115 "elements": [
|
D | arrayDestructuring7-expected.txt | 11 "elements": [ 30 "elements": [ 110 "elements": [ 113 "elements": [
|
D | arrayDestructuring8-expected.txt | 11 "elements": [ 30 "elements": [ 110 "elements": [ 113 "elements": [ 156 "elements": [
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_intl_test.cpp | 90 JSHandle<TaggedArray> elements(thread, resultHandle->GetElements()); in HWTEST_F_L0() local 91 EXPECT_EQ(elements->GetLength(), 1U); in HWTEST_F_L0() 92 JSHandle<EcmaString> handleEcmaStr(thread, elements->Get(0)); in HWTEST_F_L0() 117 JSHandle<TaggedArray> elements(thread, resultHandle->GetElements()); in HWTEST_F_L0() local 118 EXPECT_EQ(elements->GetLength(), 1U); in HWTEST_F_L0() 119 JSHandle<EcmaString> handleEcmaStr(thread, elements->Get(0)); in HWTEST_F_L0()
|