Home
last modified time | relevance | path

Searched full:instance (Results 1 – 25 of 866) sorted by relevance

12345678910>>...35

/arkcompiler/ets_frontend/ets2panda/linter/
Dtsconfig-sdk.json210 "instance": "AbilityComponentInstance" string
215 "instance": "AlphabetIndexerInstance" string
220 "instance": "AnimatorInstance" string
225 "instance": "BadgeInstance" string
230 "instance": "BlankInstance" string
235 "instance": "ButtonInstance" string
240 "instance": "CalendarInstance" string
245 "instance": "CalendarPickerInstance" string
250 "instance": "CameraInstance" string
255 "instance": "CanvasInstance" string
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/09.field_access_expressions/02.accessing_superclass_fields/
Daccess_by_super_in_field_nn.params.yaml16 - { type: "byte", value: "2", assert: "instance.b == 2"}
17 - { type: "short", value: "2", assert: "instance.b == 2"}
18 - { type: "long", value: "2", assert: "instance.b == 2"}
19 - { type: "float", value: "1.2", assert: "instance.b == 1.2 as float"}
20 - { type: "double", value: "2", assert: "instance.b == 2"}
21 - { type: "char", value: "c'a'", assert: "instance.b == c'a'"}
22 - { type: "boolean", value: "true", assert: "instance.b == true"}
23 - { type: "string", value: "\"some string\"", assert: "instance.b == \"some string\""}
24 - { type: "Byte", value: "new Byte(2 as byte)", assert: "instance.b == 2"}
25 - { type: "Short", value: "new Short(2 as short)", assert: "instance.b == 2"}
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DBoolean.sts27 * @param value value to construct class instance with
36 * @param value value to construct class instance with
45 * @param value value to construct class instance with
54 * @param value value to construct class instance with
63 * @param value value to construct class instance with
72 * @param value value to construct class instance with
81 * @param value value to construct class instance with
90 * @param value value to construct class instance with
99 * @param value value to construct class instance with
109 * @param value value to construct class instance with
[all …]
DShort.sts25 * Constructs a new Short instance with initial value zero
32 * Constructs a new Short instance with provided initial value
41 * Constructs a new Short instance with provided initial value
50 * Returns value of this instance as a primitive
52 * @returns value of this instance
91 * Returns value of this instance
100 * Returns value of this instance
109 * Returns value of this instance
118 * Returns value of this instance
127 * Returns value of this instance
[all …]
DInt.sts25 * Constructs a new Int instance with initial value zero
32 * Constructs a new Int instance with provided initial value
41 * Constructs a new Int instance with provided initial value
50 * Returns value of this instance as a primitive
52 * @returns value of this instance
91 * Returns value of this instance
100 * Returns value of this instance
109 * Returns value of this instance
118 * Returns value of this instance
127 * Returns value of this instance
[all …]
DLong.sts25 * Constructs a new Long instance with initial value zero
32 * Constructs a new Long instance with provided initial value
41 * Constructs a new Long instance with provided initial value
50 * Returns value of this instance as a primitive
52 * @returns value of this instance
91 * Returns value of this instance
100 * Returns value of this instance
109 * Returns value of this instance
118 * Returns value of this instance
127 * Returns value of this instance
[all …]
DByte.sts25 * Constructs a new Byte instance with initial value zero
32 * Constructs a new Byte instance with provided initial value
41 * Constructs a new Byte instance with provided initial value
50 * Returns value of this instance as a primitive
52 * @returns value of this instance
91 * Returns value of this instance
100 * Returns value of this instance
109 * Returns value of this instance
118 * Returns value of this instance
127 * Returns value of this instance
[all …]
DFloat.sts25 * Constructs a new Float instance with initial value zero
32 * Constructs a new Float instance with provided initial value
41 * Constructs a new Float instance with provided initial value (`double` type literal)
51 * Constructs a new Float instance with provided initial value
60 * Returns value of this instance as a primitive
62 * @returns value of this instance
138 * Returns value of this instance
147 * Returns value of this instance
156 * Returns value of this instance
165 * Returns value of this instance
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Dheap_tracker_second_test.cpp101 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
102 instance->SetEnableForceGC(false); in SetUp()
107 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
110 EcmaVM *instance {nullptr}; member in panda::test::HeapTrackerTest
118 HeapProfilerInterface *heapProfile = HeapProfilerInterface::GetInstance(instance); in HWTEST_F_L0()
123 instance->GetFactory()->NewJSAsyncFuncObject(); in HWTEST_F_L0()
128 instance->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
133 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
134 JSHandle<EcmaString> string = instance->GetFactory()->NewFromASCII("Hello World"); in HWTEST_F_L0()
135 instance->GetFactory()->NewJSString(JSHandle<JSTaggedValue>(string), undefined); in HWTEST_F_L0()
[all …]
Dheap_tracker_first_test.cpp101 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
102 instance->SetEnableForceGC(false); in SetUp()
107 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
110 EcmaVM *instance {nullptr}; member in panda::test::HeapTrackerTest
118 HeapProfilerInterface *heapProfile = HeapProfilerInterface::GetInstance(instance); in HWTEST_F_L0()
123 instance->GetFactory()->NewJSAsyncFuncObject(); in HWTEST_F_L0()
128 instance->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
133 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
134 JSHandle<EcmaString> string = instance->GetFactory()->NewFromASCII("Hello World"); in HWTEST_F_L0()
135 instance->GetFactory()->NewJSString(JSHandle<JSTaggedValue>(string), undefined); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
Dreserve_string_builder_buffer.cpp59 bool HasAppendInstructions(Inst *instance, BasicBlock *block) in HasAppendInstructions() argument
66 if (appendInstruction->GetDataFlowInput(0) == instance) { in HasAppendInstructions()
74 bool HasAppendInstructions(Inst *instance, Loop *loop) in HasAppendInstructions() argument
77 if (HasAppendInstructions(instance, innerLoop)) { in HasAppendInstructions()
83 if (HasAppendInstructions(instance, block)) { in HasAppendInstructions()
95 // returns 'sb' instance for any append call in a chain in GetStringBuilderAppendChainInstance()
109 uint64_t CountStringBuilderAppendCalls(Inst *instance, BasicBlock *block) in CountStringBuilderAppendCalls() argument
118 if (appendInstruction->GetDataFlowInput(0) == instance || in CountStringBuilderAppendCalls()
119 GetStringBuilderAppendChainInstance(appendInstruction) == instance) { in CountStringBuilderAppendCalls()
120 count += appendInstruction->GetInputsCount() - 2U; // -2 for sb instance and save state in CountStringBuilderAppendCalls()
[all …]
Doptimize_string_concat.cpp101 IntrinsicInst *CreateStringBuilderAppendStringIntrinsic(Graph *graph, Inst *instance, Inst *arg, in CreateStringBuilderAppendStringIntrinsic() argument
111 …{{instance, instance->GetType()}, {arg, arg->GetType()}, {saveStateClone, saveStateClone->GetType(… in CreateStringBuilderAppendStringIntrinsic()
116 IntrinsicInst *CreateStringBuilderToStringIntrinsic(Graph *graph, Inst *instance, SaveStateInst *sa… in CreateStringBuilderToStringIntrinsic() argument
124 … {{instance, instance->GetType()}, {saveStateClone, saveStateClone->GetType()}}); in CreateStringBuilderToStringIntrinsic()
129 CallInst *CreateStringBuilderDefaultConstructorCall(Graph *graph, Inst *instance, SaveStateInst *sa… in CreateStringBuilderDefaultConstructorCall() argument
135 … auto ctorCall = graph->CreateInstCallStatic(DataType::VOID, instance->GetPc(), methodId, method); in CreateStringBuilderDefaultConstructorCall()
140 … {{instance, instance->GetType()}, {saveStateClone, saveStateClone->GetType()}}); in CreateStringBuilderDefaultConstructorCall()
167 void OptimizeStringConcat::CreateAppendArgsIntrinsic(Inst *instance, Inst *arg, SaveStateInst *save… in CreateAppendArgsIntrinsic() argument
169 …auto appendIntrinsic = CreateStringBuilderAppendStringIntrinsic(GetGraph(), instance, arg, saveSta… in CreateAppendArgsIntrinsic()
173 FixBrokenSaveStates(instance, appendIntrinsic); in CreateAppendArgsIntrinsic()
[all …]
Dsimplify_string_builder.cpp134 // Walk through a basic block, find every StringBuilder instance and constructor call, in OptimizeStringBuilderToString()
141 // void StringBuilder::<ctor> instance, arg, save_state in OptimizeStringBuilderToString()
143 auto instance = ctorCall->GetInput(0).GetInst(); in OptimizeStringBuilderToString() local
166 if (!IsDataFlowInput(*inst, instance)) { in OptimizeStringBuilderToString()
170 // Process usages of StringBuilder instance: in OptimizeStringBuilderToString()
184 // Remove StringBuilder instance unless it has usages in OptimizeStringBuilderToString()
185 if (removeInstance && !IsUsedOutsideBasicBlock(instance, instance->GetBasicBlock())) { in OptimizeStringBuilderToString()
186 RemoveStringBuilderInstance(instance); in OptimizeStringBuilderToString()
226 bool CheckUnsupportedCases(Inst *instance) in CheckUnsupportedCases() argument
228 if (IsUsedOutsideBasicBlock(instance, instance->GetBasicBlock())) { in CheckUnsupportedCases()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dlocal-class-standard-example2.sts19 let local: string = "instance local"
28 … console.log ("Instance field = " + this.field + " par = " + parameter + " loc = " + local )
29 assert(this.field == "`instance method instance field value`")
31 assert(local == "instance local")
34 field: string = "`instance method instance field value`"
37 assert(LocalClass.s_field == "`instance method class/static field value`")
39 static s_field: string = "`instance method class/static field value`"
56 … console.log ("Instance field = " + this.field + " par = " + parameter + " loc = " + local)
57 assert(this.field == "`static method instance field value`")
61 field: string = "`static method instance field value`"
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Dquick_fix_test.cpp49 TestHelper::CreateEcmaVMWithScope(instance, thread, scope, false, false, false); in SetUp()
54 TestHelper::DestroyEcmaVMWithScope(instance, scope, false); in TearDown()
57 EcmaVM *instance {nullptr}; member in panda::test::QuickFixTest
67 JSNApi::EnableUserUncaughtErrorHandler(instance); in HWTEST_F_L0()
69 JSNApi::SetBundle(instance, false); in HWTEST_F_L0()
71 bool result = JSNApi::Execute(instance, baseFileName, "index"); in HWTEST_F_L0()
74 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0()
77 Local<ObjectRef> exception = JSNApi::GetAndClearUncaughtException(instance); in HWTEST_F_L0()
78 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0()
81 res = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Dconstant_string_test.cpp34 …<EcmaString> handleEcmaStrEmpty(thread, EcmaStringAccessor::CreateConstantString(instance, nullptr, in HWTEST_F_L0()
53 EcmaStringAccessor::CreateConstantString(instance, &arrayU8[0], lengthEcmaStrU8, true)); in HWTEST_F_L0()
70 …<EcmaString> handleEcmaStrEmpty(thread, EcmaStringAccessor::CreateConstantString(instance, nullptr, in HWTEST_F_L0()
77 EcmaStringAccessor::CreateConstantString(instance, &arrayU8[0], lengthEcmaStrU8, true)); in HWTEST_F_L0()
99 … EcmaStringAccessor::CreateConstantString(instance, &arrayU8No1[0], lengthEcmaStrU8No1, true)); in HWTEST_F_L0()
101 … EcmaStringAccessor::CreateConstantString(instance, &arrayU8No2[0], lengthEcmaStrU8No2, true)); in HWTEST_F_L0()
103 … EcmaStringAccessor::CreateConstantString(instance, &arrayU8No3[0], lengthEcmaStrU8No3, true)); in HWTEST_F_L0()
104 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStrU8No1, handleEcmaStrU8No2), -1); in HWTEST_F_L0()
105 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStrU8No2, handleEcmaStrU8No1), 1); in HWTEST_F_L0()
106 … EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStrU8No2, handleEcmaStrU8No3), 49 - 45); in HWTEST_F_L0()
[all …]
Decma_string_accessor_test.cpp70 EcmaStringAccessor::CreateLineString(instance, sizeAllocComp, true)); in HWTEST_F_L0()
78 EcmaStringAccessor::CreateLineString(instance, sizeAllocNotComp, false)); in HWTEST_F_L0()
92 … JSHandle<EcmaString> handleEcmaStrEmpty(thread, EcmaStringAccessor::CreateEmptyString(instance)); in HWTEST_F_L0()
109 EcmaStringAccessor::CreateFromUtf8(instance, &arrayU8[0], lengthEcmaStrU8, true)); in HWTEST_F_L0()
130 … EcmaStringAccessor::CreateFromUtf16(instance, &arrayU16Comp[0], lengthEcmaStrU16Comp, true)); in HWTEST_F_L0()
139 …EcmaStringAccessor::CreateFromUtf16(instance, &arrayU16NotComp[0], lengthEcmaStrU16NotComp, false)… in HWTEST_F_L0()
160 EcmaStringAccessor::CreateFromUtf8(instance, &arrayFrontU8[0], lengthEcmaStrFrontU8, true)); in HWTEST_F_L0()
162 EcmaStringAccessor::CreateFromUtf8(instance, &arrayBackU8[0], lengthEcmaStrBackU8, true)); in HWTEST_F_L0()
164 EcmaStringAccessor::Concat(instance, handleEcmaStrFrontU8, handleEcmaStrBackU8)); in HWTEST_F_L0()
190 …EcmaStringAccessor::CreateFromUtf16(instance, &arrayFrontU16NotComp[0], lengthEcmaStrFrontU16NotCo… in HWTEST_F_L0()
[all …]
Dhandle_leak_test.cpp43 instance = JSNApi::CreateEcmaVM(options); in SetUp()
44 ASSERT_TRUE(instance != nullptr) << "Cannot create EcmaVM"; in SetUp()
45 thread = instance->GetJSThread(); in SetUp()
78 result.emplace_back(Global<ArrayRef>(instance, ArrayRef::New(instance, 100))); in HWTEST_F_L0()
85 …JSHandle<Program> newProgram(thread, const_cast<Heap *>(instance->GetHeap())->AllocateYoungOrHugeO… in HWTEST_F_L0()
91 VerifyObjectVisitor verifier(instance->GetHeap(), &failCount); in HWTEST_F_L0()
97 static void HeandleLeakTestCommon(const EcmaVM *instance, JSHandle<TaggedArray>& newArray) in HeandleLeakTestCommon() argument
102 VerifyObjectVisitor verifier(instance->GetHeap(), &failCount); in HeandleLeakTestCommon()
117 …JSHandle<TaggedArray> newArray(thread, const_cast<Heap *>(instance->GetHeap())->AllocateNonMovable… in HWTEST_F_L0()
129 HeandleLeakTestCommon(instance, newArray); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_errors_test.cpp59 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0()
70 EXPECT_EQ(EcmaStringAccessor::Compare(instance, in HWTEST_F_L0()
74 ASSERT_EQ(EcmaStringAccessor::Compare(instance, in HWTEST_F_L0()
85 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0()
92 ASSERT_EQ(EcmaStringAccessor::Compare(instance, in HWTEST_F_L0()
96 ASSERT_EQ(EcmaStringAccessor::Compare(instance, in HWTEST_F_L0()
107 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0()
108 JSHandle<GlobalEnv> env = instance->GetGlobalEnv(); in HWTEST_F_L0()
126 ASSERT_EQ(EcmaStringAccessor::Compare(instance, in HWTEST_F_L0()
130 ASSERT_EQ(EcmaStringAccessor::Compare(instance, in HWTEST_F_L0()
[all …]
/arkcompiler/toolchain/tooling/test/
Ddebugger_entry_test.cpp40 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
42 JSNApi::StartDebugger(instance, debugOption); in SetUp()
43 if (instance->GetJsDebuggerManager() != nullptr) { in SetUp()
44 instance->GetJsDebuggerManager()->DisableObjectHashDisplay(); in SetUp()
50 JSNApi::StopDebugger(instance); in TearDown()
51 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
54 EcmaVM *instance {nullptr}; member in panda::ecmascript::tooling::test::DebuggerEntryTest
63 ASSERT_NE(instance, nullptr); in HWTEST_P_L0()
65 auto res = JSNApi::Execute(instance, pandaFile.c_str(), entryPoint.c_str()); in HWTEST_P_L0()
Ddebugger_cinterp_test.cpp40 TestHelper::CreateEcmaVMWithScope(instance, thread, scope, false, true); in SetUp()
42 JSNApi::StartDebugger(instance, debugOption); in SetUp()
43 if (instance->GetJsDebuggerManager() != nullptr) { in SetUp()
44 instance->GetJsDebuggerManager()->DisableObjectHashDisplay(); in SetUp()
50 JSNApi::StopDebugger(instance); in TearDown()
51 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
54 EcmaVM *instance {nullptr}; member in panda::ecmascript::tooling::test::DebuggerCInterpTest
63 ASSERT_NE(instance, nullptr); in HWTEST_P_L0()
65 auto res = JSNApi::Execute(instance, pandaFile.c_str(), entryPoint.c_str()); in HWTEST_P_L0()
Ddebugger_client_test.cpp46 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
49 JSNApi::StartDebugger(instance, debugOption); in SetUp()
50 if (instance->GetJsDebuggerManager() != nullptr) { in SetUp()
51 instance->GetJsDebuggerManager()->DisableObjectHashDisplay(); in SetUp()
58 JSNApi::StopDebugger(instance); in TearDown()
59 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
62 EcmaVM *instance {nullptr}; member in panda::ecmascript::tooling::test::DebuggerClientTest
72 ASSERT_NE(instance, nullptr); in HWTEST_P_L0()
74 auto res = JSNApi::Execute(instance, pandaFile.c_str(), entryPoint.c_str()); in HWTEST_P_L0()
Ddebugger_cint_client_test.cpp46 TestHelper::CreateEcmaVMWithScope(instance, thread, scope, false, true); in SetUp()
49 JSNApi::StartDebugger(instance, debugOption); in SetUp()
50 if (instance->GetJsDebuggerManager() != nullptr) { in SetUp()
51 instance->GetJsDebuggerManager()->DisableObjectHashDisplay(); in SetUp()
58 JSNApi::StopDebugger(instance); in TearDown()
59 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
62 EcmaVM *instance {nullptr}; member in panda::ecmascript::tooling::test::DebuggerCIntClientTest
71 ASSERT_NE(instance, nullptr); in HWTEST_P_L0()
73 auto res = JSNApi::Execute(instance, pandaFile.c_str(), entryPoint.c_str()); in HWTEST_P_L0()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/koala-related-benchmarks/
Darkts-mockup.sts21 const instance = factory()
22 instance.__initializeStruct()
24 return instance
48 const instance = factory()
49 instance.__initializeStruct()
51 return instance
66 const instance = factory()
67 instance.__initializeStruct()
69 return instance
/arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/services/
DapiInstance.test.ts20 let instance: AxiosInstance; variable
23 instance = getApiInstance();
27 it('should create an Axios instance with the correct baseURL', () => {
29 expect(instance.defaults.baseURL).toBe(defaultBaseURL);
32 it('should create an Axios instance with response interceptors', () => {
33 const responseInterceptors = instance.interceptors.response;
49 … expect(instance.interceptors.response.handlers[0].fulfilled(response)).toEqual(response);

12345678910>>...35