Home
last modified time | relevance | path

Searched refs:elements (Results 1 – 25 of 307) sorted by relevance

12345678910>>...13

/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_deque.cpp35 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 …]
Djs_api_stack.cpp37 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 …]
Djs_api_vector.cpp35 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 …]
Djs_api_queue.cpp30 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 …]
Djs_api_arraylist.cpp35 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/
DgenericMethodOverspecialization.ts42 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[]");
DdiscriminantsAndPrimitives.ts133 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/
Dcontainers_plainarray_stub_builder.h38 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()
Dcontainers_deque_stub_builder.h34 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()
Dcontainers_queue_stub_builder.h51 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()
Dcontainers_vector_stub_builder.h38 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()
Dcontainers_stack_stub_builder.h39 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()
Dcontainers_arraylist_stub_builder.h39 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/
Dntype_mcr_lowering.cpp70 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()
84elements = 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/
Dtest262skiplist.txt1745 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/
Dtest-array-expression-expected.txt25 "elements": [],
67 "elements": [
141 "elements": [
238 "elements": [
241 "elements": [
244 "elements": [],
327 "elements": [
332 "elements": [],
408 "elements": [
/arkcompiler/ets_frontend/ts2panda/src/expression/
DarrayLiteralExpression.ts28 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/
DarrayDestructuring23-expected.txt11 "elements": [
30 "elements": [
73 "elements": [
125 "elements": [
142 "elements": [
DarrayDestructuring21-expected.txt11 "elements": [
14 "elements": [
69 "elements": [
72 "elements": [
DarrayDestructuring22-expected.txt11 "elements": [
30 "elements": [
73 "elements": [
139 "elements": [
156 "elements": [
DarrayDestructuring38-expected.txt68 "elements": [
71 "elements": [
112 "elements": [
115 "elements": [],
DarrayDestructuring40-expected.txt68 "elements": [
71 "elements": [
112 "elements": [
115 "elements": [
DarrayDestructuring7-expected.txt11 "elements": [
30 "elements": [
110 "elements": [
113 "elements": [
DarrayDestructuring8-expected.txt11 "elements": [
30 "elements": [
110 "elements": [
113 "elements": [
156 "elements": [
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_intl_test.cpp90 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()

12345678910>>...13