| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/09.field_access_expressions/02.accessing_superclass_fields/ |
| D | access_by_super_in_field_nn.params.yaml | 16 - { 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/ |
| D | Boolean.sts | 27 * @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 …]
|
| D | Short.sts | 25 * 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 …]
|
| D | Int.sts | 25 * 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 …]
|
| D | Long.sts | 25 * 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 …]
|
| D | Byte.sts | 25 * 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 …]
|
| D | Float.sts | 25 * 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/ |
| D | heap_tracker_second_test.cpp | 101 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 …]
|
| D | heap_tracker_first_test.cpp | 101 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/ |
| D | reserve_string_builder_buffer.cpp | 59 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() 142 void ReserveStringBuilderBuffer::ReplaceInitialBufferSizeConstantInlined(Inst *instance, uint64_t a… in ReplaceInitialBufferSizeConstantInlined() argument [all …]
|
| D | optimize_string_concat.cpp | 125 IntrinsicInst *CreateStringBuilderAppendStringIntrinsic(Graph *graph, Inst *instance, Inst *arg, in CreateStringBuilderAppendStringIntrinsic() argument 135 …{{instance, instance->GetType()}, {arg, arg->GetType()}, {saveStateClone, saveStateClone->GetType(… in CreateStringBuilderAppendStringIntrinsic() 140 IntrinsicInst *CreateStringBuilderToStringIntrinsic(Graph *graph, Inst *instance, SaveStateInst *sa… in CreateStringBuilderToStringIntrinsic() argument 148 … {{instance, instance->GetType()}, {saveStateClone, saveStateClone->GetType()}}); in CreateStringBuilderToStringIntrinsic() 153 CallInst *CreateStringBuilderDefaultConstructorCall(Graph *graph, Inst *instance, SaveStateInst *sa… in CreateStringBuilderDefaultConstructorCall() argument 159 … auto ctorCall = graph->CreateInstCallStatic(DataType::VOID, instance->GetPc(), methodId, method); in CreateStringBuilderDefaultConstructorCall() 164 … {{instance, instance->GetType()}, {saveStateClone, saveStateClone->GetType()}}); in CreateStringBuilderDefaultConstructorCall() 191 void OptimizeStringConcat::CreateAppendArgsIntrinsics(Inst *instance, Inst *args, uint64_t arrayLen… in CreateAppendArgsIntrinsics() argument 196 …auto appendIntrinsic = CreateStringBuilderAppendStringIntrinsic(GetGraph(), instance, arg, saveSta… in CreateAppendArgsIntrinsics() 200 FixBrokenSaveStates(instance, appendIntrinsic); in CreateAppendArgsIntrinsics() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/tests/ |
| D | quick_fix_test.cpp | 48 TestHelper::CreateEcmaVMWithScope(instance, thread, scope, false, false, false); in SetUp() 53 TestHelper::DestroyEcmaVMWithScope(instance, scope, false); in TearDown() 56 EcmaVM *instance {nullptr}; member in panda::test::QuickFixTest 66 JSNApi::EnableUserUncaughtErrorHandler(instance); in HWTEST_F_L0() 68 JSNApi::SetBundle(instance, false); in HWTEST_F_L0() 70 bool result = JSNApi::Execute(instance, baseFileName, "index"); in HWTEST_F_L0() 73 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0() 76 Local<ObjectRef> exception = JSNApi::GetAndClearUncaughtException(instance); in HWTEST_F_L0() 77 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0() 80 res = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | local-class-standard-example2.sts | 19 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/tests/ |
| D | constant_string_test.cpp | 34 …<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 …]
|
| D | ecma_string_accessor_test.cpp | 70 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 …]
|
| D | handle_leak_test.cpp | 43 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<TaggedObject> newProgram(thread, const_cast<Heap *>(instance->GetHeap())->AllocateYoungOr… in HWTEST_F_L0() 95 VerifyObjectVisitor verifier(instance->GetHeap(), &failCount); in HWTEST_F_L0() 108 …JSHandle<Program> newProgram(thread, const_cast<Heap *>(instance->GetHeap())->AllocateYoungOrHugeO… in HWTEST_F_L0() 114 VerifyObjectVisitor verifier(instance->GetHeap(), &failCount); in HWTEST_F_L0() 120 static void HeandleLeakTestCommon(const EcmaVM *instance, JSHandle<TaggedArray>& newArray) in HeandleLeakTestCommon() argument 125 VerifyObjectVisitor verifier(instance->GetHeap(), &failCount); in HeandleLeakTestCommon() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_errors_test.cpp | 59 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/ |
| D | debugger_entry_test.cpp | 40 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()
|
| D | debugger_cinterp_test.cpp | 40 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()
|
| D | debugger_cint_client_test.cpp | 46 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()
|
| D | debugger_client_test.cpp | 46 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 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/ |
| D | arkts-mockup.sts | 21 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
|
| D | arkts-phase1.sts | 45 builder: ((instance: S) => void) | undefined, 50 const instance = factory() 51 instance.__initializeStruct(initializers) 52 return instance; 65 builder: ((instance: T) => void) | undefined, 73 build(builder: ((instance: T) => void) | undefined): void { 90 build(builder: ((instance: ArkMyStructComponent) => void) | undefined) { 93 instance => instance
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/01.names/ |
| D | qualified_name.params.yaml | 19 - test.instance instanceof test.Clazz; 20 - test.instance instanceof Clazz; 27 - instance.field == 3; 28 - instance.method() == 4; 29 - test.instance.field == 3; 30 - test.instance.method() == 4;
|
| /arkcompiler/ets_runtime/ecmascript/base/tests/ |
| D | number_helper_test.cpp | 65 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr1, resultStr), 0); in HWTEST_F_L0() 70 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr2, resultStr), 0); in HWTEST_F_L0() 75 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr3, resultStr), 0); in HWTEST_F_L0() 80 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr4, resultStr), 0); in HWTEST_F_L0() 86 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr5, resultStr), 0); in HWTEST_F_L0() 91 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr6, resultStr), 0); in HWTEST_F_L0() 96 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr7, resultStr), 0); in HWTEST_F_L0() 101 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr8, resultStr), 0); in HWTEST_F_L0() 112 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr1, resultStr), 0); in HWTEST_F_L0() 116 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr2, resultStr), 0); in HWTEST_F_L0() [all …]
|