Home
last modified time | relevance | path

Searched refs:instance (Results 1 – 25 of 540) sorted by relevance

12345678910>>...22

/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Dheap_tracker_second_test.cpp97 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
98 instance->SetEnableForceGC(false); in SetUp()
103 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
106 EcmaVM *instance {nullptr}; member in panda::test::HeapTrackerTest
114 HeapProfilerInterface *heapProfile = HeapProfilerInterface::GetInstance(instance); in HWTEST_F_L0()
119 instance->GetFactory()->NewJSAsyncFuncObject(); in HWTEST_F_L0()
124 instance->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
129 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
130 JSHandle<EcmaString> string = instance->GetFactory()->NewFromASCII("Hello World"); in HWTEST_F_L0()
131 instance->GetFactory()->NewJSString(JSHandle<JSTaggedValue>(string), undefined); in HWTEST_F_L0()
[all …]
Dheap_tracker_first_test.cpp97 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
98 instance->SetEnableForceGC(false); in SetUp()
103 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
106 EcmaVM *instance {nullptr}; member in panda::test::HeapTrackerTest
114 HeapProfilerInterface *heapProfile = HeapProfilerInterface::GetInstance(instance); in HWTEST_F_L0()
119 instance->GetFactory()->NewJSAsyncFuncObject(); in HWTEST_F_L0()
124 instance->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
129 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
130 JSHandle<EcmaString> string = instance->GetFactory()->NewFromASCII("Hello World"); in HWTEST_F_L0()
131 instance->GetFactory()->NewJSString(JSHandle<JSTaggedValue>(string), undefined); in HWTEST_F_L0()
[all …]
Dhprof_test.cpp101 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
106 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
108 EcmaVM *instance {nullptr}; member in panda::test::HProfTest
115 explicit HProfTestHelper(EcmaVM *vm) : instance(vm) {} in HProfTestHelper()
119 HeapProfilerInterface::Destroy(instance); in ~HProfTestHelper()
130 HeapProfilerInterface *heapProfile = HeapProfilerInterface::GetInstance(instance); in GenerateSnapShot()
219 …if (instance->GetNativePointerList().size() != nodeNativeSizes.size() || nodeNativeSizes.size() !=… in ContrastJSONNativeSizeNum()
223 for (JSNativePointer *jsNp : instance->GetNativePointerList()) { in ContrastJSONNativeSizeNum()
291 EcmaVM *instance {nullptr}; member in panda::test::HProfTestHelper
296 HProfTestHelper tester(instance); in HWTEST_F_L0()
[all …]
Dheap_sampling_test.cpp41 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
42 instance->SetEnableForceGC(false); in SetUp()
47 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
50 EcmaVM *instance {nullptr}; member in panda::test::HeapSamplingTest
57 HeapProfilerInterface *heapProfile = HeapProfilerInterface::GetInstance(instance); in HWTEST_F_L0()
68 HeapProfilerInterface *heapProfile = HeapProfilerInterface::GetInstance(instance); in HWTEST_F_L0()
80 HeapProfilerInterface *heapProfile = HeapProfilerInterface::GetInstance(instance); in HWTEST_F_L0()
95 std::unique_ptr<HeapSampling> heapSampling = std::make_unique<HeapSampling>(instance, in HWTEST_F_L0()
96 const_cast<Heap *>(instance->GetHeap()), samplingInterval, stackDepth); in HWTEST_F_L0()
Dheap_tracker_third_test.cpp97 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
98 instance->SetEnableForceGC(false); in SetUp()
103 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
106 EcmaVM *instance {nullptr}; member in panda::test::HeapTrackerTest
114 HeapProfilerInterface *heapProfile = HeapProfilerInterface::GetInstance(instance); in HWTEST_F_L0()
119 instance->GetFactory()->NewJSAsyncFuncObject(); in HWTEST_F_L0()
124 instance->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
129 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
130 JSHandle<EcmaString> string = instance->GetFactory()->NewFromASCII("Hello World"); in HWTEST_F_L0()
131 instance->GetFactory()->NewJSString(JSHandle<JSTaggedValue>(string), undefined); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Dquick_fix_test.cpp45 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
50 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
53 EcmaVM *instance {nullptr}; member in panda::test::QuickFixTest
63 JSNApi::EnableUserUncaughtErrorHandler(instance); in HWTEST_F_L0()
65 JSNApi::SetBundle(instance, false); in HWTEST_F_L0()
67 bool result = JSNApi::Execute(instance, baseFileName, "index"); in HWTEST_F_L0()
70 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0()
73 Local<ObjectRef> exception = JSNApi::GetAndClearUncaughtException(instance); in HWTEST_F_L0()
74 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0()
77 res = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0()
[all …]
Djs_pandafile_manager_test.cpp46 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
51 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
54 EcmaVM *instance {nullptr}; member in panda::test::JSPandaFileManagerTest
83 pfManager->RemoveJSPandaFileVm(instance, pf.get()); in HWTEST_F_L0()
103 pfManager->RemoveJSPandaFileVm(instance, ojspf.get()); in HWTEST_F_L0()
124 pfManager->AddJSPandaFileVm(instance, pf1); in HWTEST_F_L0()
125 pfManager->AddJSPandaFileVm(instance, pf2); in HWTEST_F_L0()
131 pfManager->RemoveJSPandaFileVm(instance, pf1.get()); in HWTEST_F_L0()
132 pfManager->RemoveJSPandaFileVm(instance, pf2.get()); in HWTEST_F_L0()
153 pfManager->AddJSPandaFileVm(instance, pf1); 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_cint_client_test.cpp41 TestHelper::CreateEcmaVMWithScope(instance, thread, scope, false, true); in SetUp()
44 JSNApi::StartDebugger(instance, debugOption); in SetUp()
45 if (instance->GetJsDebuggerManager() != nullptr) { in SetUp()
46 instance->GetJsDebuggerManager()->DisableObjectHashDisplay(); in SetUp()
53 JSNApi::StopDebugger(instance); in TearDown()
54 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
57 EcmaVM *instance {nullptr}; member in panda::ecmascript::tooling::test::DebuggerCIntClientTest
66 ASSERT_NE(instance, nullptr); in HWTEST_P_L0()
68 auto res = JSNApi::Execute(instance, pandaFile.c_str(), entryPoint.c_str()); in HWTEST_P_L0()
Ddebugger_client_test.cpp41 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
44 JSNApi::StartDebugger(instance, debugOption); in SetUp()
45 if (instance->GetJsDebuggerManager() != nullptr) { in SetUp()
46 instance->GetJsDebuggerManager()->DisableObjectHashDisplay(); in SetUp()
53 JSNApi::StopDebugger(instance); in TearDown()
54 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
57 EcmaVM *instance {nullptr}; member in panda::ecmascript::tooling::test::DebuggerClientTest
66 ASSERT_NE(instance, nullptr); in HWTEST_P_L0()
68 auto res = JSNApi::Execute(instance, pandaFile.c_str(), entryPoint.c_str()); in HWTEST_P_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_errors_test.cpp60 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
65 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
68 EcmaVM *instance {nullptr}; member in panda::test::BuiltinsErrorsTest
83 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0()
94 EXPECT_EQ(EcmaStringAccessor::Compare(instance, in HWTEST_F_L0()
98 ASSERT_EQ(EcmaStringAccessor::Compare(instance, in HWTEST_F_L0()
109 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0()
116 ASSERT_EQ(EcmaStringAccessor::Compare(instance, in HWTEST_F_L0()
120 ASSERT_EQ(EcmaStringAccessor::Compare(instance, in HWTEST_F_L0()
131 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DBoolean.ets34 * @param value value to construct class instance with
43 * @param value value to construct class instance with
50 * Returns the value of this instance as a primitive
59 * Static instance that represents true boolean value
64 * Static instance that represents false boolean value
83 * Checks for equality this instance with provided object, treated as a Boolean
87 * @returns true if provided object and this instance have same value, false otherwise
98 * Returns a hash code (integer representation) for this instance
100 * @returns representation of this instance
112 * @returns "True" if this instance is true, "False" otherwise
[all …]
DShort.ets25 * 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.ets25 * 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 …]
DByte.ets25 * 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 …]
DLong.ets25 * 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 …]
/arkcompiler/ets_runtime/ecmascript/tests/
Dhandle_leak_test.cpp53 instance = JSNApi::CreateEcmaVM(options); in SetUp()
54 ASSERT_TRUE(instance != nullptr) << "Cannot create EcmaVM"; in SetUp()
55 thread = instance->GetJSThread(); in SetUp()
61 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
64 EcmaVM *instance {nullptr}; member in panda::test::HandleLeakTest
96 result.emplace_back(Global<ArrayRef>(instance, ArrayRef::New(instance, 100))); in HWTEST_F_L0()
103 …JSHandle<TaggedObject> newProgram(thread, const_cast<Heap *>(instance->GetHeap())->AllocateYoungOr… in HWTEST_F_L0()
113 VerifyObjectVisitor verifier(instance->GetHeap(), &failCount); in HWTEST_F_L0()
126 …JSHandle<Program> newProgram(thread, const_cast<Heap *>(instance->GetHeap())->AllocateYoungOrHugeO… in HWTEST_F_L0()
132 VerifyObjectVisitor verifier(instance->GetHeap(), &failCount); in HWTEST_F_L0()
[all …]
Dincremental_marking_test.cpp43 instance = JSNApi::CreateEcmaVM(options); in SetUp()
44 ASSERT_TRUE(instance != nullptr) << "Cannot create EcmaVM"; in SetUp()
45 thread = instance->GetJSThread(); in SetUp()
47 instance->SetEnableForceGC(false); in SetUp()
52 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
61 EcmaVM *instance {nullptr}; member in panda::test::IncrementalMarkingTest
Dtest_helper.h104 static void CreateEcmaVMWithScope(EcmaVM *&instance, JSThread *&thread, EcmaHandleScope *&scope,
115 instance = JSNApi::CreateEcmaVM(options);
116 instance->SetEnableForceGC(true);
117 ASSERT_TRUE(instance != nullptr) << "Cannot create EcmaVM";
118 thread = instance->GetJSThread();
122 static inline void DestroyEcmaVMWithScope(EcmaVM *instance, EcmaHandleScope *scope) in DestroyEcmaVMWithScope() argument
126 instance->SetEnableForceGC(false); in DestroyEcmaVMWithScope()
127 JSNApi::DestroyJSVM(instance); in DestroyEcmaVMWithScope()
/arkcompiler/ets_runtime/ecmascript/base/tests/
Dnumber_helper_test.cpp37 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
42 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
45 EcmaVM *instance {nullptr}; member in panda::test::NumberHelperTest
89 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr1, resultStr), 0); in HWTEST_F_L0()
94 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr2, resultStr), 0); in HWTEST_F_L0()
99 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr3, resultStr), 0); in HWTEST_F_L0()
104 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr4, resultStr), 0); in HWTEST_F_L0()
110 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr5, resultStr), 0); in HWTEST_F_L0()
115 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr6, resultStr), 0); in HWTEST_F_L0()
120 EXPECT_EQ(EcmaStringAccessor::Compare(instance, handleEcmaStr7, resultStr), 0); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DvoidInstanceReturn.ets36 let instance = Void;
45 assert(instance === static_field);
46 assert(instance === a);
47 assert(instance === b);
48 assert(instance === c);
49 assert(instance === d);
50 assert(instance === e);
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/koala-related-benchmarks/
Darkts-mockup.ets21 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
Darkts-phase1.ets45 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/ets_frontend/ets2panda/test/compiler/ets/
Dgenerics_implicit_lambda1.ets17 const instance = first()
18 return instance
23 const instance = first()
25 return instance
29 const instance = first()
31 return instance

12345678910>>...22