| /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/runtime_core/verification/util/tests/ |
| D | environment.cpp | 38 … const auto WS = p::of_charset(" \t\r\n"); // NOLINT(readability-static-accessed-through-instance) in EnvOptions() 39 … const auto DELIM = p::of_string(";"); // NOLINT(readability-static-accessed-through-instance) in EnvOptions() 47 ….of_charset("abcdefghijklmnopqrstuvwxyz_") // NOLINT(readability-static-accessed-through-instance) in EnvOptions() 49 …nst auto EQ = NAME.of_string("="); // NOLINT(readability-static-accessed-through-instance) in EnvOptions() 50 …nst auto BOOL_TRUE = EQ.of_string("true"); // NOLINT(readability-static-accessed-through-instance) in EnvOptions() 52 BOOL_TRUE.of_string("false"); // NOLINT(readability-static-accessed-through-instance) in EnvOptions() 65 … auto DEC = BOOL.of_charset("0123456789"); // NOLINT(readability-static-accessed-through-instance) in EnvOptions() 66 … auto HEX = DEC.of_string("0x") >> DEC; // NOLINT(readability-static-accessed-through-instance) in EnvOptions() 74 …c const auto QUOTES = HEX.of_string("\""); // NOLINT(readability-static-accessed-through-instance) in EnvOptions() 76 QUOTES.of_charset(!charset("\"")); // NOLINT(readability-static-accessed-through-instance) in EnvOptions()
|
| /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_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 | 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 | 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
|
| /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_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 …]
|
| 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
|
| /ark/runtime_core/runtime/mem/ |
| D | internal_allocator.h | 123 * \brief Create and set up local internal allocator instance for fast small objects allocation 124 …aram allocator - a pointer to the allocator which will be used for local allocator instance storage 125 * @return - a pointer to the local internal allocator instance 130 * \brief Delete local internal allocator instance and return all pools to the system 131 …* @param allocator - a pointer to the allocator which was used for local allocator instance storage 132 * @param local_allocator - a pointer to the local internal allocator instance 139 * @param local_allocator - a pointer to a local internal allocator instance
|
| /ark/runtime_core/runtime/bridge/arch/x86/ |
| D | interpreter_to_compiled_code_bridge_x86.S | 78 // 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 …]
|
| /ark/runtime_core/tests/cts-generator/cts-template/ |
| D | isinstance.yaml | 47 title: Is instance 49 …Resolve object type by specified id and if an object in accumulator is an instance of the resolved… 51 …Object of type O is instance of type T if O is the same as T or is subtype of T. For arrays T shou… 60 description: Check that null object reference is not an instance of any class 63 'null' object is not an instance of any class. 155 …Resolve object type by specified id and if an object in accumulator is an instance of the resolved… 157 …Object of type O is instance of type T if O is the same as T or is subtype of T. For arrays T shou… 280 …Resolve object type by specified id and if an object in accumulator is an instance of the resolved… 282 …Object of type O is instance of type T if O is the same as T or is subtype of T. For arrays T shou…
|
| /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
|
| /ark/runtime_core/verification/models/contexts_merge/ |
| D | check_set_intersection_as_lub.als | 40 Register.holds in Instance 55 …le: run Show for 7 but exactly 4 Register, exactly 5 Class, exactly 5 Interface, exactly 3 Instance 61 #Instance >= 1 94 -- Sig java_typing/Instance scope <= 7 105 -- Sig java_typing/Instance in [[java_typing/Value$0], [java_typing/Value$1], [java_typing/Value…
|
| /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 …]
|