Lines Matching full:vm
42 EcmaVM *vm = thread->GetEcmaVM(); in HWTEST_F_L0() local
43 …JSHandle<TaggedArray> weakRefArray = vm->GetFactory()->NewTaggedArray(INT_VALUE_2, JSTaggedValue::… in HWTEST_F_L0()
44 vm->SetEnableForceGC(false); in HWTEST_F_L0()
55 vm->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0()
58 vm->SetEnableForceGC(true); in HWTEST_F_L0()
64 EcmaVM *vm = thread->GetEcmaVM(); in HWTEST_F_L0() local
68 CrossVMOperator::DoHandshake(vm, stsVMInterface.get(), &ecmaVMInterface); in HWTEST_F_L0()
70 EXPECT_TRUE(vm->GetCrossVMOperator()->GetSTSVMInterface() == stsVMInterface.get()); in HWTEST_F_L0()
71 EXPECT_TRUE(vm->GetCrossVMOperator()->GetEcmaVMInterface() == in HWTEST_F_L0()
77 EcmaVM *vm = thread->GetEcmaVM(); in HWTEST_F_L0() local
80 CrossVMOperator::DoHandshake(vm, stsVMInterface.get(), &ecmaVMInterface); in HWTEST_F_L0()
82 CrossReferenceObjectBuilder CrossReferenceObject(vm, thread); in HWTEST_F_L0()
92 EcmaVM *vm = thread->GetEcmaVM(); in HWTEST_F_L0() local
95 CrossVMOperator::DoHandshake(vm, stsVMInterface.get(), &ecmaVMInterface); in HWTEST_F_L0()
97 auto heap = vm->GetHeap(); in HWTEST_F_L0()
106 EcmaVM *vm = thread->GetEcmaVM(); in HWTEST_F_L0() local
109 CrossVMOperator::DoHandshake(vm, stsVMInterface.get(), &ecmaVMInterface); in HWTEST_F_L0()
114 vm->CollectGarbage(TriggerGCType::YOUNG_GC); in HWTEST_F_L0()
125 EcmaVM *vm = thread->GetEcmaVM(); in HWTEST_F_L0() local
126 vm->SetEnableForceGC(false); in HWTEST_F_L0()
133 auto oldArray = vm->GetFactory()->NewFromASCII("123"); in HWTEST_F_L0()
134 EXPECT_TRUE(!panda::JSNApi::IsObjectAlive(vm, reinterpret_cast<uintptr_t>(&oldArray))); in HWTEST_F_L0()
139 EcmaVM *vm = thread->GetEcmaVM(); in HWTEST_F_L0() local
140 vm->SetEnableForceGC(false); in HWTEST_F_L0()
147 auto oldArray = vm->GetFactory()->NewFromASCII("123"); in HWTEST_F_L0()
148 EXPECT_TRUE(!panda::JSNApi::IsValidHeapObject(vm, reinterpret_cast<uintptr_t>(&oldArray))); in HWTEST_F_L0()
153 EcmaVM *vm = thread->GetEcmaVM(); in HWTEST_F_L0() local
154 vm->SetEnableForceGC(false); in HWTEST_F_L0()
162 vm->GetCrossVMOperator()->MarkFromObject(arrayInXRefRoot->GetRawData()); in HWTEST_F_L0()
172 vm->SetEnableForceGC(true); in HWTEST_F_L0()
177 EcmaVM *vm = thread->GetEcmaVM(); in HWTEST_F_L0() local
180 CrossVMOperator::DoHandshake(vm, stsVMInterface.get(), &ecmaVMInterface); in HWTEST_F_L0()
182 CrossReferenceObjectBuilder CrossReferenceObject(vm, thread); in HWTEST_F_L0()
184 vm->GetCrossVMOperator()->GetEcmaVMInterface()->NotifyXGCInterruption(); in HWTEST_F_L0()
192 EcmaVM *vm = thread->GetEcmaVM(); in HWTEST_F_L0() local
193 vm->SetEnableForceGC(false); in HWTEST_F_L0()
196 CrossVMOperator::DoHandshake(vm, stsVMInterface.get(), &ecmaVMInterface); in HWTEST_F_L0()
200 vm->SetEnableForceGC(true); in HWTEST_F_L0()