| /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/compiler/builtins/ |
| D | builtins_function_stub_builder.cpp | 40 GateRef arrayObj = GetCallArg1(numArgs); in Apply() local 42 Branch(TaggedIsUndefined(arrayObj), &targetIsUndefined, &targetNotUndefined); in Apply() 53 GateRef elements = BuildArgumentsListFastElements(glue, arrayObj); in Apply() 60 GateRef argList = objectStubBuilder.CreateListFromArrayLike(glue, arrayObj); in Apply() 83 … Branch(IsStableJSArguments(glue, arrayObj), &taggedIsStableJsArg, &taggedNotStableJsArg); in Apply() 86 GateRef hClass = LoadHClass(arrayObj); in Apply() 88 … GateRef result = GetPropertyInlinedProps(arrayObj, hClass, PropertyInlinedPropsOffset); in Apply() 98 GateRef length = GetArrayLength(arrayObj); in Apply() 112 GateRef BuiltinsFunctionStubBuilder::BuildArgumentsListFastElements(GateRef glue, GateRef arrayObj) in BuildArgumentsListFastElements() argument 127 Branch(HasStableElements(glue, arrayObj), &hasStableElements, &exit); in BuildArgumentsListFastElements() [all …]
|
| D | builtins_function_stub_builder.h | 30 GateRef BuildArgumentsListFastElements(GateRef glue, GateRef arrayObj);
|
| D | builtins_object_stub_builder.h | 31 GateRef CreateListFromArrayLike(GateRef glue, GateRef arrayObj);
|
| D | builtins_object_stub_builder.cpp | 28 GateRef BuiltinsObjectStubBuilder::CreateListFromArrayLike(GateRef glue, GateRef arrayObj) in CreateListFromArrayLike() argument 41 Branch(TaggedIsHeapObject(arrayObj), &targetIsHeapObject, &targetNotEcmaObject); in CreateListFromArrayLike() 43 Branch(TaggedObjectIsEcmaObject(arrayObj), &targetIsEcmaObject, &targetNotEcmaObject); in CreateListFromArrayLike() 55 GateRef value = FastGetPropertyByName(glue, arrayObj, lengthString, ProfileOperation()); in CreateListFromArrayLike() 86 Branch(IsTypedArray(arrayObj), &targetIsTypeArray, &targetNotTypeArray); in CreateListFromArrayLike() 90 arrayStubBuilder.FastCopyElementToArray(glue, arrayObj, array); in CreateListFromArrayLike() 119 … GateRef next = FastGetPropertyByIndex(glue, arrayObj, *index, ProfileOperation()); in CreateListFromArrayLike()
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_function.cpp | 62 … const JSHandle<JSTaggedValue> &arrayObj) in BuildArgumentsListFast() argument 64 if (!arrayObj->HasStableElements(thread)) { in BuildArgumentsListFast() 67 if (arrayObj->IsStableJSArguments(thread)) { in BuildArgumentsListFast() 68 JSHandle<JSArguments> argList = JSHandle<JSArguments>::Cast(arrayObj); in BuildArgumentsListFast() 81 } else if (arrayObj->IsStableJSArray(thread)) { in BuildArgumentsListFast() 82 JSHandle<JSArray> argList = JSHandle<JSArray>::Cast(arrayObj); in BuildArgumentsListFast() 85 JSHandle<JSObject> obj(arrayObj); in BuildArgumentsListFast() 135 JSHandle<JSTaggedValue> arrayObj = GetCallArg(argv, 1); in FunctionPrototypeApply() local 136 std::pair<TaggedArray*, size_t> argumentsList = BuildArgumentsListFast(thread, arrayObj); in FunctionPrototypeApply() 138 JSHandle<JSTaggedValue> num = JSObject::CreateListFromArrayLike(thread, arrayObj); in FunctionPrototypeApply()
|
| /arkcompiler/ets_frontend/ets2panda/compiler/core/ |
| D | ETSfunction.h | 36 static void GenerateEnumMembers(ETSGen *etsg, const ir::AstNode *node, VReg arrayObj,
|
| D | JSCompiler.cpp | 564 compiler::VReg arrayObj = pg->AllocReg(); in Compile() local 566 pg->CreateArray(expr, expr->Elements(), arrayObj); in Compile()
|
| /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/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 | 293 JSHandle<JSTypedArray> arrayObj(typedarray); in OwnPropertyKeys() local 294 …le<TaggedArray> objKeys = JSObject::GetOwnPropertyKeys(thread, JSHandle<JSObject>::Cast(arrayObj)); in OwnPropertyKeys() 296 uint32_t bufferKeysLen = arrayObj->GetArrayLength(); in OwnPropertyKeys() 344 JSHandle<JSTypedArray> arrayObj(typedarray); in OwnEnumPropertyKeys() local 345 …aggedArray> objKeys = JSObject::GetOwnEnumPropertyKeys(thread, JSHandle<JSObject>::Cast(arrayObj)); in OwnEnumPropertyKeys() 347 uint32_t bufferKeysLen = arrayObj->GetArrayLength(); in OwnEnumPropertyKeys()
|
| D | js_array.cpp | 535 JSHandle<JSArray> arrayObj = JSHandle<JSArray>::Cast(obj); in IncludeInSortedValue() local 536 int32_t length = static_cast<int32_t>(arrayObj->GetArrayLength()); in IncludeInSortedValue() 560 JSHandle<JSArray> arrayObj = JSHandle<JSArray>::Cast(obj); in ToTaggedArray() local 561 uint32_t length = arrayObj->GetArrayLength(); in ToTaggedArray()
|
| D | js_stable_array.cpp | 1121 JSHandle<JSObject> arrayObj = factory->NewAndCopyJSArrayObject(thisObjHandle, count, oldLen, k); in Slice() local 1123 JSTaggedValue value = ElementAccessor::Get(arrayObj, i); in Slice() 1127 ElementAccessor::Set(thread, arrayObj, i, value, true); in Slice() 1130 return arrayObj.GetTaggedValue(); in Slice()
|
| D | object_factory.cpp | 2458 JSHandle<JSObject> arrayObj = JSHandle<JSObject>(NewJSStableArrayWithElements(dstElements)); in NewAndCopyJSArrayObject() local 2460 return JSHandle<JSObject>(arrayObj); in NewAndCopyJSArrayObject() 2464 ElementAccessor::Set(thread_, arrayObj, i, value, true); in NewAndCopyJSArrayObject() 2467 ElementAccessor::Set(thread_, arrayObj, i, JSTaggedValue::Hole(), true); in NewAndCopyJSArrayObject() 2469 return arrayObj; in NewAndCopyJSArrayObject()
|
| /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/napi/ |
| D | JSNapi接口说明.md | 6176 Local<ArrayRef> arrayObj = ArrayRef::New(vm_, 3); 6177 uint32_t result = arrayObj->Length(vm_); 6204 Local<ArrayRef> arrayObj = ArrayRef::New(vm_, 1); 6206 bool result = ArrayRef::SetValueAt(vm_, arrayObj, index, intValue); 6232 Local<ArrayRef> arrayObj = ArrayRef::New(vm_, 1); 6234 ArrayRef::SetValueAt(vm_, arrayObj, index, intValue); 6235 Local<JSValueRef> result = ArrayRef::GetValueAt(vm_, arrayObj, 0);
|
| /arkcompiler/ets_runtime/ecmascript/napi/test/ |
| D | ffi_workload.cpp | 8079 Local<ArrayRef> arrayObj = ArrayRef::New(vm_, 3); in HWTEST_F_L0() local 8080 EXPECT_TRUE(arrayObj->IsArray(vm_)); in HWTEST_F_L0() 8090 Local<ArrayRef> arrayObj = ArrayRef::New(vm_, 3); in HWTEST_F_L0() local 8093 arrayObj->Length(vm_); in HWTEST_F_L0() 8103 Local<ArrayRef> arrayObj = ArrayRef::New(vm_, 1); in HWTEST_F_L0() local 8114 ArrayRef::SetValueAt(vm_, arrayObj, 0, intValue); in HWTEST_F_L0() 8120 ArrayRef::SetValueAt(vm_, arrayObj, 0, targetBool); in HWTEST_F_L0() 8126 ArrayRef::SetValueAt(vm_, arrayObj, 0, resUnit32); in HWTEST_F_L0() 8132 ArrayRef::SetValueAt(vm_, arrayObj, 0, maxBigintUint64); in HWTEST_F_L0() 8138 ArrayRef::SetValueAt(vm_, arrayObj, 0, stringUtf8); in HWTEST_F_L0() [all …]
|