| /arkcompiler/ets_frontend/ts2panda/src/expression/ |
| D | arrayLiteralExpression.ts | 27 let arrayObj = pandaGen.getTemp(); 28 createArrayFromElements(node, compiler, node.elements, arrayObj); 29 pandaGen.freeTemps(arrayObj); 32 …s(node: ts.Node, compiler: Compiler, elements: ts.NodeArray<ts.Expression>, arrayObj: VReg): void { 37 pandaGen.storeAccumulator(node, arrayObj); 56 pandaGen.storeAccumulator(element, arrayObj); 64 storeElementIfSpreadExisted(pandaGen, element, arrayObj, indexReg); 66 pandaGen.storeOwnProperty(element, arrayObj, i); 74 pandaGen.storeAccumulator(element, arrayObj); 79 storeSpreadElement(compiler, pandaGen, element, arrayObj, indexReg); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_function.cpp | 61 … const JSHandle<JSTaggedValue> &arrayObj) in BuildArgumentsListFast() argument 63 if (!arrayObj->HasStableElements(thread)) { in BuildArgumentsListFast() 66 if (arrayObj->IsStableJSArguments(thread)) { in BuildArgumentsListFast() 67 JSHandle<JSArguments> argList = JSHandle<JSArguments>::Cast(arrayObj); in BuildArgumentsListFast() 80 } else if (arrayObj->IsStableJSArray(thread)) { in BuildArgumentsListFast() 81 JSHandle<JSArray> argList = JSHandle<JSArray>::Cast(arrayObj); in BuildArgumentsListFast() 121 JSHandle<JSTaggedValue> arrayObj = GetCallArg(argv, 1); in FunctionPrototypeApply() local 122 std::pair<TaggedArray*, size_t> argumentsList = BuildArgumentsListFast(thread, arrayObj); in FunctionPrototypeApply() 124 JSHandle<JSTaggedValue> num = JSObject::CreateListFromArrayLike(thread, arrayObj); in FunctionPrototypeApply()
|
| /arkcompiler/ets_frontend/ts2panda/src/ |
| D | compilerUtils.ts | 201 let arrayObj = pandaGen.getTemp(); 213 pandaGen.storeAccumulator(restElement, arrayObj); 232 pandaGen.storeObjProperty(restElement, arrayObj, index); 243 pandaGen.loadAccumulator(restElement, arrayObj); 247 pandaGen.freeTemps(arrayObj, index);
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | array_helper.cpp | 294 JSHandle<JSObject> arrayObj = JSHandle<JSObject>::Cast(array); in SortIndexedProperties() local 298 JSArray::Sort(thread, arrayObj, callbackFnHandle); in SortIndexedProperties() 301 return arrayObj.GetTaggedValue(); in SortIndexedProperties()
|
| /arkcompiler/ets_runtime/ecmascript/base/tests/ |
| D | typed_array_helper_test.cpp | 148 JSHandle<JSObject> arrayObj = in HWTEST_F_L0() local 151 JSTypedArray *jsTypedArray = JSTypedArray::Cast(*arrayObj); in HWTEST_F_L0() 169 JSHandle<JSObject> arrayObj = in HWTEST_F_L0() local 172 JSTypedArray *jsTypedArray = JSTypedArray::Cast(*arrayObj); in HWTEST_F_L0() 191 JSHandle<JSTypedArray> arrayObj(int16Array); in HWTEST_F_L0() local 192 uint32_t len = arrayObj->GetArrayLength(); in HWTEST_F_L0() 197 …JSHandle<JSObject> newArrObj = TypedArrayHelper::TypedArraySpeciesCreate(thread, arrayObj, 1, args… in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_typed_array.cpp | 285 JSHandle<JSTypedArray> arrayObj(typedarray); in OwnPropertyKeys() local 286 …le<TaggedArray> objKeys = JSObject::GetOwnPropertyKeys(thread, JSHandle<JSObject>::Cast(arrayObj)); in OwnPropertyKeys() 288 uint32_t bufferKeysLen = arrayObj->GetArrayLength(); in OwnPropertyKeys() 336 JSHandle<JSTypedArray> arrayObj(typedarray); in OwnEnumPropertyKeys() local 337 …aggedArray> objKeys = JSObject::GetOwnEnumPropertyKeys(thread, JSHandle<JSObject>::Cast(arrayObj)); in OwnEnumPropertyKeys() 339 uint32_t bufferKeysLen = arrayObj->GetArrayLength(); in OwnEnumPropertyKeys()
|
| D | js_array.cpp | 442 JSHandle<JSArray> arrayObj = JSHandle<JSArray>::Cast(obj); in IncludeInSortedValue() local 443 int32_t length = static_cast<int32_t>(arrayObj->GetArrayLength()); in IncludeInSortedValue() 467 JSHandle<JSArray> arrayObj = JSHandle<JSArray>::Cast(obj); in ToTaggedArray() local 468 uint32_t length = arrayObj->GetArrayLength(); in ToTaggedArray()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
| D | builtins_stubs.cpp | 877 GateRef arrayObj = GetCallArg1(numArgs); in DECLARE_BUILTINS() local 879 Branch(TaggedIsUndefined(arrayObj), &targetIsUndefined, &targetNotUndefined); in DECLARE_BUILTINS() 890 GateRef elements = BuildArgumentsListFastElements(glue, arrayObj); in DECLARE_BUILTINS() 896 GateRef argList = CreateListFromArrayLike(glue, arrayObj); in DECLARE_BUILTINS() 919 … Branch(IsStableJSArguments(glue, arrayObj), &taggedIsStableJsArg, &taggedNotStableJsArg); in DECLARE_BUILTINS() 922 GateRef hClass = LoadHClass(arrayObj); in DECLARE_BUILTINS() 924 … GateRef result = GetPropertyInlinedProps(arrayObj, hClass, PropertyInlinedPropsOffset); in DECLARE_BUILTINS() 934 GateRef length = GetArrayLength(arrayObj); in DECLARE_BUILTINS()
|
| /arkcompiler/ets_frontend/es2panda/ir/expressions/ |
| D | arrayExpression.cpp | 142 compiler::VReg arrayObj = pg->AllocReg(); in Compile() local 144 pg->CreateArray(this, elements_, arrayObj); in Compile()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | stub_builder.cpp | 4865 GateRef StubBuilder::BuildArgumentsListFastElements(GateRef glue, GateRef arrayObj) in BuildArgumentsListFastElements() argument 4880 Branch(HasStableElements(glue, arrayObj), &hasStableElements, &exit); in BuildArgumentsListFastElements() 4883 …Branch(IsStableJSArguments(glue, arrayObj), &targetIsStableJSArguments, &targetNotStableJSArgument… in BuildArgumentsListFastElements() 4886 GateRef hClass = LoadHClass(arrayObj); in BuildArgumentsListFastElements() 4895 … GateRef result = GetPropertyInlinedProps(arrayObj, hClass, PropertyInlinedPropsOffset); in BuildArgumentsListFastElements() 4899 res = GetElementsArray(arrayObj); in BuildArgumentsListFastElements() 4906 … Branch(IsStableJSArray(glue, arrayObj), &targetIsStableJSArray, &targetNotStableJSArray); in BuildArgumentsListFastElements() 4909 res = GetElementsArray(arrayObj); in BuildArgumentsListFastElements() 6207 GateRef StubBuilder::CreateListFromArrayLike(GateRef glue, GateRef arrayObj) in CreateListFromArrayLike() argument 6220 Branch(TaggedIsHeapObject(arrayObj), &targetIsHeapObject, &targetNotEcmaObject); in CreateListFromArrayLike() [all …]
|
| D | stub_builder.h | 574 GateRef CreateListFromArrayLike(GateRef glue, GateRef arrayObj); 575 GateRef BuildArgumentsListFastElements(GateRef glue, GateRef arrayObj);
|