/ark/runtime_core/verification/debug/context/ |
D | context.cpp | 29 DebugContext *DebugContext::instance = nullptr; member in panda::verifier::debug::DebugContext 33 if (instance != nullptr) { in GetCurrent() 34 return *instance; in GetCurrent() 36 instance = new (mem::AllocatorAdapter<DebugContext>().allocate(1)) DebugContext {}; in GetCurrent() 42 if (instance != nullptr) { in Destroy() 43 instance->~DebugContext(); in Destroy() 44 mem::AllocatorAdapter<DebugContext>().deallocate(instance, 1); in Destroy() 45 instance = nullptr; in Destroy()
|
/ark/runtime_core/runtime/mem/gc/ |
D | crossing_map_singleton.cpp | 24 CrossingMap *CrossingMapSingleton ::instance = nullptr; member in panda::mem::CrossingMapSingleton 33 if (instance != nullptr) { in Create() 37 …instance = allocator->New<CrossingMap>(allocator, PoolManager::GetMmapMemPool()->GetMinObjectAddre… in Create() 39 instance->Initialize(); in Create() 47 return instance != nullptr; in IsCreated() 57 if (instance == nullptr) { in Destroy() 60 temp_instance = instance; in Destroy() 61 instance = nullptr; in Destroy()
|
D | crossing_map_singleton.h | 42 ASSERT(instance != nullptr); in GetCrossingMap() 43 return instance; in GetCrossingMap() 59 static CrossingMap *instance;
|
/ark/js_runtime/ecmascript/tests/ |
D | test_helper.h | 86 … static void CreateEcmaVMWithScope(PandaVM *&instance, JSThread *&thread, EcmaHandleScope *&scope, 103 instance = Runtime::GetCurrent()->GetPandaVM(); 104 EcmaVM::Cast(instance)->SetEnableForceGC(true); 105 ASSERT_TRUE(instance != nullptr) << "Cannot create EcmaVM"; 106 thread = EcmaVM::Cast(instance)->GetJSThread(); 113 static inline void DestroyEcmaVMWithScope(PandaVM *instance, EcmaHandleScope *scope) in DestroyEcmaVMWithScope() argument 116 EcmaVM::Cast(instance)->SetEnableForceGC(false); in DestroyEcmaVMWithScope() 117 auto thread = EcmaVM::Cast(instance)->GetJSThread(); in DestroyEcmaVMWithScope() 119 JSNApi::DestroyJSVM(EcmaVM::Cast(instance)); in DestroyEcmaVMWithScope()
|
D | gc_test.cpp | 50 instance = Runtime::GetCurrent()->GetPandaVM(); in SetUp() 51 ASSERT_TRUE(instance != nullptr) << "Cannot create EcmaVM"; in SetUp() 52 thread = EcmaVM::Cast(instance)->GetJSThread(); in SetUp() 58 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 61 PandaVM *instance {nullptr}; member in panda::test::GCTest
|
D | concurrent_sweep_test.cpp | 39 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 44 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 47 PandaVM *instance {nullptr}; member in panda::test::ConcurrentSweepTest 54 auto vm = EcmaVM::Cast(instance); in TEST_F()
|
D | concurrent_marking_test.cpp | 50 instance = Runtime::GetCurrent()->GetPandaVM(); in SetUp() 51 ASSERT_TRUE(instance != nullptr) << "Cannot create EcmaVM"; in SetUp() 52 thread = EcmaVM::Cast(instance)->GetJSThread(); in SetUp() 54 EcmaVM::Cast(instance)->SetEnableForceGC(false); in SetUp() 61 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 70 PandaVM *instance {nullptr}; member in panda::test::ConcurrentMarkingTest
|
D | ecma_string_test.cpp | 37 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 42 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 44 PandaVM *instance {nullptr}; member in panda::test::EcmaStringTest 98 EcmaVM *ecmaVMPtr = EcmaVM::Cast(instance); in HWTEST_F_L0() 121 EcmaVM* ecmaVMPtr = EcmaVM::Cast(instance); in HWTEST_F_L0() 156 EcmaVM* ecmaVMPtr = EcmaVM::Cast(instance); in HWTEST_F_L0() 178 EcmaVM* ecmaVMPtr = EcmaVM::Cast(instance); in HWTEST_F_L0() 255 EcmaVM* ecmaVMPtr = EcmaVM::Cast(instance); in HWTEST_F_L0() 301 EcmaVM* ecmaVMPtr = EcmaVM::Cast(instance); in HWTEST_F_L0() 331 EcmaVM* ecmaVMPtr = EcmaVM::Cast(instance); in HWTEST_F_L0() [all …]
|
D | lexical_env_test.cpp | 38 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 43 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 46 PandaVM *instance {nullptr}; member in panda::test::LexicalEnvTest
|
D | js_symbol_test.cpp | 48 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 53 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 56 PandaVM *instance {nullptr}; member in panda::test::JSSymbolTest
|
D | native_pointer_test.cpp | 44 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 49 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 52 PandaVM *instance {nullptr}; member in panda::test::NativePointerTest
|
D | js_primitive_ref_test.cpp | 44 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 49 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 52 PandaVM *instance {nullptr}; member in panda::test::JSPrimitiveRefTest
|
D | js_verification_test.cpp | 47 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 52 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 55 PandaVM *instance {nullptr}; member in panda::test::JSVerificationTest
|
D | glue_regs_test.cpp | 45 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 50 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 53 PandaVM *instance {nullptr}; member in panda::test::GlueRegsTest
|
D | builtins_test.cpp | 45 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 50 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 53 PandaVM *instance {nullptr}; member in panda::test::BuiltinsTest
|
/ark/js_runtime/ecmascript/builtins/tests/ |
D | builtins_errors_test.cpp | 60 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 65 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 68 PandaVM *instance {nullptr}; member in panda::test::BuiltinsErrorsTest 83 ObjectFactory *factory = EcmaVM::Cast(instance)->GetFactory(); in HWTEST_F_L0() 113 ObjectFactory *factory = EcmaVM::Cast(instance)->GetFactory(); in HWTEST_F_L0() 139 ObjectFactory *factory = EcmaVM::Cast(instance)->GetFactory(); in HWTEST_F_L0() 140 JSHandle<GlobalEnv> env = EcmaVM::Cast(instance)->GetGlobalEnv(); in HWTEST_F_L0() 177 ObjectFactory *factory = EcmaVM::Cast(instance)->GetFactory(); in HWTEST_F_L0() 178 JSHandle<GlobalEnv> env = EcmaVM::Cast(instance)->GetGlobalEnv(); in HWTEST_F_L0() 217 ObjectFactory *factory = EcmaVM::Cast(instance)->GetFactory(); in HWTEST_F_L0() [all …]
|
D | builtins_iterator_test.cpp | 44 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 49 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 52 PandaVM *instance {nullptr}; member in panda::test::BuiltinsIteratorTest
|
D | builtins_promise_test.cpp | 52 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 57 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 60 PandaVM *instance {nullptr}; member in panda::test::BuiltinsPromiseTest 131 JSHandle<GlobalEnv> env = EcmaVM::Cast(instance)->GetGlobalEnv(); in HWTEST_F_L0() 158 ObjectFactory *factory = EcmaVM::Cast(instance)->GetFactory(); in HWTEST_F_L0() 159 JSHandle<GlobalEnv> env = EcmaVM::Cast(instance)->GetGlobalEnv(); in HWTEST_F_L0() 205 JSHandle<GlobalEnv> env = EcmaVM::Cast(instance)->GetGlobalEnv(); in HWTEST_F_L0() 232 ObjectFactory *factory = EcmaVM::Cast(instance)->GetFactory(); in HWTEST_F_L0() 233 JSHandle<GlobalEnv> env = EcmaVM::Cast(instance)->GetGlobalEnv(); in HWTEST_F_L0() 278 JSHandle<GlobalEnv> env = EcmaVM::Cast(instance)->GetGlobalEnv(); in HWTEST_F_L0() [all …]
|
/ark/js_runtime/ecmascript/hprof/tests/ |
D | heap_tracker_test.cpp | 45 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 46 EcmaVM::Cast(instance)->SetEnableForceGC(false); in SetUp() 51 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 54 PandaVM *instance {nullptr}; member in panda::test::HeapTrackerTest
|
/ark/js_runtime/ecmascript/tooling/test/ |
D | debugger_commands_test.cpp | 46 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 47 ecmaVm = EcmaVM::Cast(instance); in SetUp() 59 PandaVM *instance {nullptr}; member in panda::test::DebuggerCommandsTest
|
D | debugger_entry_test.cpp | 39 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 40 ecmaVm = static_cast<EcmaVM *>(instance); in SetUp() 51 PandaVM *instance {nullptr}; member in panda::ecmascript::tooling::test::DebuggerEntryTest
|
D | debugger_script_test.cpp | 45 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 46 ecmaVm = EcmaVM::Cast(instance); in SetUp() 56 PandaVM *instance {nullptr}; member in panda::test::DebuggerScriptTest
|
/ark/js_runtime/ecmascript/ic/tests/ |
D | ic_invoke_test.cpp | 40 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 41 ecmaVm = EcmaVM::Cast(instance); in SetUp() 46 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 49 PandaVM *instance {nullptr}; member in panda::test::ICInvokeTest
|
/ark/runtime_core/runtime/ |
D | runtime.cpp | 76 Runtime *Runtime::instance = nullptr; member in panda::Runtime 213 if (instance != nullptr) { in CreateInstance() 218 instance = new Runtime(options, internal_allocator, ctxs); in CreateInstance() 227 if (instance != nullptr) { in Create() 246 if (!instance->Initialize()) { in Create() 248 delete instance; in Create() 249 instance = nullptr; in Create() 253 instance->GetPandaVM()->StartGC(); in Create() 256 instance->GetNotificationManager()->VmStartEvent(); in Create() 257 instance->GetNotificationManager()->VmInitializationEvent(thread->GetId()); in Create() [all …]
|
/ark/js_runtime/ecmascript/regexp/tests/ |
D | dyn_chunk_test.cpp | 39 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp() 45 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown() 48 PandaVM *instance {nullptr}; member in panda::test::DynChunkTest
|