Home
last modified time | relevance | path

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

12345678910>>...14

/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Dheap_tracker_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<EcmaString> string = instance->GetFactory()->NewFromASCII("Hello World"); in HWTEST_F_L0()
130 instance->GetFactory()->NewJSString(JSHandle<JSTaggedValue>(string)); in HWTEST_F_L0()
141 HeapProfilerInterface::Destroy(instance); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Dquick_fix_test.cpp44 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
49 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
52 EcmaVM *instance {nullptr}; member in panda::test::QuickFixTest
62 JSNApi::EnableUserUncaughtErrorHandler(instance); in HWTEST_F_L0()
64 JSNApi::SetBundle(instance, false); in HWTEST_F_L0()
66 bool result = JSNApi::Execute(instance, baseFileName, "index"); in HWTEST_F_L0()
69 result = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0()
72 Local<ObjectRef> exception = JSNApi::GetAndClearUncaughtException(instance); in HWTEST_F_L0()
73 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0()
76 result = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/verification/config/context/
Dcontext.cpp26 DebugContext *DebugContext::instance = nullptr; member in panda::verifier::debug::DebugContext
30 if (instance != nullptr) { in GetCurrent()
31 return *instance; in GetCurrent()
33 instance = new (mem::AllocatorAdapter<DebugContext>().allocate(1)) DebugContext {}; in GetCurrent()
34 ASSERT(instance != nullptr); in GetCurrent()
35 return *instance; in GetCurrent()
60 if (instance != nullptr) { in Destroy()
61 instance->~DebugContext(); in Destroy()
62 mem::AllocatorAdapter<DebugContext>().deallocate(instance, 1); in Destroy()
63 instance = nullptr; in Destroy()
/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 …]
Dtest_helper.h103 static void CreateEcmaVMWithScope(EcmaVM *&instance, JSThread *&thread, EcmaHandleScope *&scope,
111 instance = JSNApi::CreateEcmaVM(options);
112 instance->SetEnableForceGC(true);
113 ASSERT_TRUE(instance != nullptr) << "Cannot create EcmaVM";
114 thread = instance->GetJSThread();
116 auto globalEnv = instance->GetGlobalEnv();
117 methodFunction_ = instance->GetFactory()->NewJSFunction(globalEnv);
120 static inline void DestroyEcmaVMWithScope(EcmaVM *instance, EcmaHandleScope *scope) in DestroyEcmaVMWithScope() argument
124 instance->SetEnableForceGC(false); in DestroyEcmaVMWithScope()
125 auto thread = instance->GetJSThread(); in DestroyEcmaVMWithScope()
[all …]
Dconcurrent_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()
54 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
63 EcmaVM *instance {nullptr}; member in panda::test::ConcurrentMarkingTest
Djs_relative_time_format_test.cpp46 instance = JSNApi::CreateEcmaVM(options); in SetUp()
47 instance->SetEnableForceGC(true); in SetUp()
48 ASSERT_TRUE(instance != nullptr) << "Cannot create EcmaVM"; in SetUp()
49 thread = instance->GetJSThread(); in SetUp()
55 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
58 EcmaVM *instance {nullptr}; member in panda::test::JSRelativeTimeFormatTest
130 // object has no Instance in HWTEST_F_L0()
134 // object has Instance in HWTEST_F_L0()
Dlexical_env_test.cpp38 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
43 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
46 EcmaVM *instance {nullptr}; member in panda::test::LexicalEnvTest
Djs_collator_test.cpp43 instance = JSNApi::CreateEcmaVM(options); in SetUp()
44 instance->SetEnableForceGC(true); in SetUp()
45 ASSERT_TRUE(instance != nullptr) << "Cannot create EcmaVM"; in SetUp()
46 thread = instance->GetJSThread(); in SetUp()
52 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
55 EcmaVM *instance {nullptr}; member in panda::test::JSCollatorTest
Djs_async_function_test.cpp40 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
45 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
48 EcmaVM *instance {nullptr}; member in panda::test::JSAsyncFunctionTest
95 auto microJobQueue = instance->GetMicroJobQueue(); in HWTEST_F_L0()
Djs_async_generator_object_test.cpp39 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
44 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
47 EcmaVM *instance {nullptr}; member in panda::test::JSAsyncGeneratorObjectTest
Djs_number_format_test.cpp43 instance = JSNApi::CreateEcmaVM(options); in SetUp()
44 instance->SetEnableForceGC(true); in SetUp()
45 ASSERT_TRUE(instance != nullptr) << "Cannot create EcmaVM"; in SetUp()
46 thread = instance->GetJSThread(); in SetUp()
52 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
55 EcmaVM *instance {nullptr}; member in panda::test::JSNumberFormatTest
217 // object has no Instance in HWTEST_F_L0()
220 // object has Instance in HWTEST_F_L0()
/arkcompiler/toolchain/tooling/test/
Ddebugger_entry_test.cpp39 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
40 JSNApi::StartDebugger(DEBUGGER_TEST_LIBRARY, instance, true); in SetUp()
45 JSNApi::StopDebugger(instance); in TearDown()
46 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
49 EcmaVM *instance {nullptr}; member in panda::ecmascript::tooling::test::DebuggerEntryTest
58 ASSERT_NE(instance, nullptr); in HWTEST_P_L0()
60 auto res = JSNApi::Execute(instance, pandaFile.c_str(), entryPoint.c_str()); in HWTEST_P_L0()
/arkcompiler/runtime_core/runtime/mem/gc/heap-space-misc/
Dcrossing_map_singleton.cpp25 CrossingMap *CrossingMapSingleton ::instance = nullptr; member in panda::mem::CrossingMapSingleton
34 if (instance != nullptr) { in Create()
38instance = allocator->New<CrossingMap>(allocator, PoolManager::GetMmapMemPool()->GetMinObjectAddre… in Create()
40 instance->Initialize(); in Create()
48 return instance != nullptr; in IsCreated()
58 if (instance == nullptr) { in Destroy()
61 temp_instance = instance; in Destroy()
62 instance = nullptr; in Destroy()
Dcrossing_map_singleton.h42 ASSERT(instance != nullptr); in GetCrossingMap()
43 return instance; in GetCrossingMap()
62 static CrossingMap *instance;
/arkcompiler/runtime_core/verification/util/tests/
Denvironment.cpp37 …onst auto WS = par::of_charset(" \t\r\n"); // NOLINT(readability-static-accessed-through-instance) in EnvOptions()
38 …onst auto DELIM = par::of_string(";"); // NOLINT(readability-static-accessed-through-instance) in EnvOptions()
46 ….of_charset("abcdefghijklmnopqrstuvwxyz_") // NOLINT(readability-static-accessed-through-instance) in EnvOptions()
48 …nst auto EQ = NAME.of_string("="); // NOLINT(readability-static-accessed-through-instance) in EnvOptions()
49 …nst auto BOOL_TRUE = EQ.of_string("true"); // NOLINT(readability-static-accessed-through-instance) in EnvOptions()
51 BOOL_TRUE.of_string("false"); // NOLINT(readability-static-accessed-through-instance) in EnvOptions()
64 … auto DEC = BOOL.of_charset("0123456789"); // NOLINT(readability-static-accessed-through-instance) in EnvOptions()
65 … auto HEX = DEC.of_string("0x") >> DEC; // NOLINT(readability-static-accessed-through-instance) in EnvOptions()
73 …c const auto QUOTES = HEX.of_string("\""); // NOLINT(readability-static-accessed-through-instance) in EnvOptions()
75 QUOTES.of_charset(!charset("\"")); // NOLINT(readability-static-accessed-through-instance) in EnvOptions()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_errors_test.cpp59 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
64 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
67 EcmaVM *instance {nullptr}; member in panda::test::BuiltinsErrorsTest
82 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0()
112 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0()
138 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0()
139 JSHandle<GlobalEnv> env = instance->GetGlobalEnv(); in HWTEST_F_L0()
176 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0()
177 JSHandle<GlobalEnv> env = instance->GetGlobalEnv(); in HWTEST_F_L0()
216 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0()
[all …]
Dbuiltins_intl_test.cpp46 instance = JSNApi::CreateEcmaVM(options); in SetUp()
47 instance->SetEnableForceGC(true); in SetUp()
48 ASSERT_TRUE(instance != nullptr) << "Cannot create EcmaVM"; in SetUp()
49 thread = instance->GetJSThread(); in SetUp()
55 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
58 EcmaVM *instance {nullptr}; member in panda::test::BuiltinsIntlTest
Dbuiltins_iterator_test.cpp44 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
49 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
52 EcmaVM *instance {nullptr}; member in panda::test::BuiltinsIteratorTest
Dbuiltins_promise_test.cpp52 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
57 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
60 EcmaVM *instance {nullptr}; member in panda::test::BuiltinsPromiseTest
131 JSHandle<GlobalEnv> env = instance->GetGlobalEnv(); in HWTEST_F_L0()
159 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0()
160 JSHandle<GlobalEnv> env = instance->GetGlobalEnv(); in HWTEST_F_L0()
208 JSHandle<GlobalEnv> env = instance->GetGlobalEnv(); in HWTEST_F_L0()
236 ObjectFactory *factory = instance->GetFactory(); in HWTEST_F_L0()
237 JSHandle<GlobalEnv> env = instance->GetGlobalEnv(); in HWTEST_F_L0()
284 JSHandle<GlobalEnv> env = instance->GetGlobalEnv(); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/module/tests/
Decma_module_test.cpp51 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
56 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
58 EcmaVM *instance {nullptr}; member in panda::test::EcmaModuleTest
206 JSNApi::EnableUserUncaughtErrorHandler(instance); in HWTEST_F_L0()
208 bool result = JSNApi::Execute(instance, baseFileName, "module_test_module_test_module_base"); in HWTEST_F_L0()
216 JSNApi::EnableUserUncaughtErrorHandler(instance); in HWTEST_F_L0()
218 bool result = JSNApi::Execute(instance, baseFileName, "module_test_module_test_A"); in HWTEST_F_L0()
226 JSNApi::EnableUserUncaughtErrorHandler(instance); in HWTEST_F_L0()
228 bool result = JSNApi::Execute(instance, baseFileName, "module_test_module_test_C"); in HWTEST_F_L0()
229 JSNApi::GetExportObject(instance, "module_test_module_test_B", "a"); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/runtime/include/
Dloadable_agent.h68 // This mutex is needed to be sure that getting / creation of an instance is made atomically in LoadInstance()
69 // (e.g. there won't be two threads that found no instance and tried to create a new one). in LoadInstance()
73 static std::weak_ptr<LoadableAgent> instance; in LoadInstance() local
75 auto inst = instance.lock(); in LoadInstance()
86 …// (e.g. a new instance initialization won't be performed earlier than deinitialization of the old… in LoadInstance()
100 instance = inst; in LoadInstance()
/arkcompiler/runtime_core/runtime/mem/
Dinternal_allocator.h126 * \brief Create and set up local internal allocator instance for fast small objects allocation
127 …aram allocator - a pointer to the allocator which will be used for local allocator instance storage
128 * @return - a pointer to the local internal allocator instance
133 * \brief Delete local internal allocator instance and return all pools to the system
134 …* @param allocator - a pointer to the allocator which was used for local allocator instance storage
135 * @param local_allocator - a pointer to the local internal allocator instance
142 * @param local_allocator - a pointer to a local internal allocator instance
/arkcompiler/runtime_core/runtime/bridge/arch/x86/
Dinterpreter_to_compiled_code_bridge_x86.S78 // parameter 'this' of instance methods is not encoded in the shorty
79 // check whether the method is an instance
83 // it is an instance method
181 // parameter 'this' of instance methods is not encoded in the shorty
182 // in case of instance method hack SHORTY_REG by replacing the return type by REF
184 // check whether the method is an instance
188 // it is an instance method
362 // parameter 'this' of instance methods is not encoded in the shorty
363 // in case of instance method hack SHORTY_REG by replacing the return type by REF
365 // check whether the method is an instance
[all …]
/arkcompiler/ets_runtime/ecmascript/base/tests/
Dfile_path_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::FilePathHelperTest

12345678910>>...14