/ark/js_runtime/ecmascript/builtins/tests/ |
D | builtins_regexp_test.cpp | 68 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in CreateRegExpObjByPatternAndFlags() 88 …JSHandle<EcmaString> pattern = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("\\w+… in HWTEST_F_L0() 89 JSHandle<EcmaString> flags = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("i"); in HWTEST_F_L0() 107 …JSHandle<EcmaString> pattern = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("\\w+… in HWTEST_F_L0() 108 JSHandle<EcmaString> flags = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("i"); in HWTEST_F_L0() 112 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() 141 …JSHandle<EcmaString> pattern1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("\\w… in HWTEST_F_L0() 142 … JSHandle<EcmaString> flags1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("i"); in HWTEST_F_L0() 146 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() 149 … JSHandle<EcmaString> flags2 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("gi"); in HWTEST_F_L0() [all …]
|
D | builtins_number_test.cpp | 69 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() 117 …JSHandle<EcmaString> test = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("hellowo… in HWTEST_F_L0() 209 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 210 auto ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 215 …JSHandle<JSPrimitiveRef> number = thread->GetEcmaVM()->GetFactory()->NewJSPrimitiveRef(numberObjec… in HWTEST_F_L0() 235 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 236 auto ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 261 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 262 auto ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 285 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() [all …]
|
D | builtins_object_test.cpp | 65 EcmaVM *ecmaVM = thread->GetEcmaVM(); in CreateBuiltinJSObject() 68 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateBuiltinJSObject() 79 EcmaVM *ecmaVM = thread->GetEcmaVM(); in BuiltinsObjectTestCreate() 86 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in TestNewJSObject() 98 JSHandle<GlobalEnv> globalEnv = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() 118 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(function), … in HWTEST_F_L0() 137 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(function), … in HWTEST_F_L0() 162 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0() 164 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(function), functi… in HWTEST_F_L0() 166 … JSHandle<JSTaggedValue> key1(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("x")); in HWTEST_F_L0() [all …]
|
D | builtins_boolean_test.cpp | 62 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() 82 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() 102 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() 106 …JSHandle<EcmaString> str = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("hellowor… in HWTEST_F_L0() 131 auto ruler = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("false"); in HWTEST_F_L0() 138 auto ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 143 …JSHandle<JSPrimitiveRef> boolean = thread->GetEcmaVM()->GetFactory()->NewJSPrimitiveRef(booleanObj… in HWTEST_F_L0() 153 auto ruler = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("true"); in HWTEST_F_L0() 174 auto ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 179 …JSHandle<JSPrimitiveRef> boolean = thread->GetEcmaVM()->GetFactory()->NewJSPrimitiveRef(booleanObj… in HWTEST_F_L0()
|
D | builtins_string_test.cpp | 65 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in CreateRegExpObjByPatternAndFlags() 83 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() 85 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 109 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 135 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 158 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 177 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 196 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 215 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 232 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() [all …]
|
D | builtins_json_test.cpp | 120 EcmaVM *ecmaVM = thread->GetEcmaVM(); in CreateBuiltinJSObject1() 148 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 167 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 168 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() 188 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 212 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 239 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 255 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 276 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 277 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() [all …]
|
D | builtins_function_test.cpp | 68 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in TestFunctionApplyAndCall() 94 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() 96 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 128 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() 130 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 172 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() 174 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 218 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() 220 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 274 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() [all …]
|
/ark/js_runtime/ecmascript/tests/ |
D | js_function_test.cpp | 63 EcmaVM *ecmaVM = thread->GetEcmaVM(); in JSObjectCreate() 70 EcmaVM *ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 72 JSHandle<JSFunction> funHandle = thread->GetEcmaVM()->GetFactory()->NewJSFunction(env); in HWTEST_F_L0() 76 JSHandle<LexicalEnv> lexicalEnv = thread->GetEcmaVM()->GetFactory()->NewLexicalEnv(0); in HWTEST_F_L0() 83 EcmaVM *ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 85 …JSHandle<JSFunction> func = thread->GetEcmaVM()->GetFactory()->NewJSFunction(env, static_cast<void… in HWTEST_F_L0() 98 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("constructor")); in HWTEST_F_L0() 100 …JSHandle<JSTaggedValue> protoKey(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("pr… in HWTEST_F_L0() 114 … thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun); in HWTEST_F_L0() 118 EcmaVM *ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() [all …]
|
D | js_arguments_test.cpp | 54 EcmaVM *ecmaVM = thread->GetEcmaVM(); in JSObjectTestCreate() 63 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(argFunc), argFunc… in HWTEST_F_L0() 64 JSHandle<JSArguments> arg = thread->GetEcmaVM()->GetFactory()->NewJSArguments(); in HWTEST_F_L0() 67 … JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(array)); in HWTEST_F_L0() 86 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(argFunc), argFunc… in HWTEST_F_L0() 87 JSHandle<JSArguments> arg = thread->GetEcmaVM()->GetFactory()->NewJSArguments(); in HWTEST_F_L0() 90 … JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(array)); in HWTEST_F_L0() 108 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(argFunc), argFunc… in HWTEST_F_L0() 109 JSHandle<JSArguments> arg = thread->GetEcmaVM()->GetFactory()->NewJSArguments(); in HWTEST_F_L0() 112 … JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(array)); in HWTEST_F_L0() [all …]
|
D | js_handle_test.cpp | 55 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 65 thread->GetEcmaVM()->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0() 73 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 86 thread->GetEcmaVM()->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0() 97 thread->GetEcmaVM()->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0() 107 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 133 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 149 thread->GetEcmaVM()->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0() 168 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 179 thread->GetEcmaVM()->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0() [all …]
|
D | js_object_test.cpp | 69 JSHandle<GlobalEnv> globalEnv = thread->GetEcmaVM()->GetGlobalEnv(); in JSObjectTestCreate() 77 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0() 85 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0() 89 … JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(array)); in HWTEST_F_L0() 104 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0() 108 … JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(array)); in HWTEST_F_L0() 121 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFunc), objFunc… in HWTEST_F_L0() 125 … JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(array)); in HWTEST_F_L0() 134 …JSHandle<JSTaggedValue> key2(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("print_… in HWTEST_F_L0() 146 JSHandle<GlobalEnv> globalEnv = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() [all …]
|
D | object_factory_test.cpp | 64 return thread->GetEcmaVM()->GetGlobalEnv(); in GetGlobal() 69 thread->GetEcmaVM()->SetEnableForceGC(false); in HWTEST_F_L0() 70 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 93 thread->GetEcmaVM()->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0() 96 thread->GetEcmaVM()->SetEnableForceGC(true); in HWTEST_F_L0() 101 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 102 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in HWTEST_F_L0() 130 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 147 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 164 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() [all …]
|
D | builtins_test.cpp | 60 auto ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 69 auto ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 78 auto ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 87 auto ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 96 auto ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 105 auto ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 108 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
|
D | name_dictionary_test.cpp | 64 EcmaVM *ecma = thread->GetEcmaVM(); in GetGlobalEnv() 86 … thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun); in HWTEST_F_L0() 90 …JSHandle<EcmaString> stringKey1 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(ke… in HWTEST_F_L0() 94 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun)); in HWTEST_F_L0() 98 …JSHandle<EcmaString> stringKey2 = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(ke… in HWTEST_F_L0() 102 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun)); in HWTEST_F_L0() 131 … thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun); in HWTEST_F_L0() 139 …JSHandle<EcmaString> stringKey = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(key… in HWTEST_F_L0() 161 … thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun); in HWTEST_F_L0() 165 auto stringTable = thread->GetEcmaVM()->GetEcmaStringTable(); in HWTEST_F_L0()
|
D | huge_object_test.cpp | 43 thread->GetEcmaVM()->SetEnableForceGC(false); in SetUp() 44 const_cast<Heap *>(thread->GetEcmaVM()->GetHeap())->SetMarkType(MarkType::FULL_MARK); in SetUp() 60 EcmaVM *ecmaVM = thread->GetEcmaVM(); in JSObjectTestCreate() 72 JSHandle<TaggedArray> array = thread->GetEcmaVM()->GetFactory()->NewTaggedArray(SIZE); in LargeArrayTestCreate() 84 auto ecmaVm = thread->GetEcmaVM(); in HWTEST_F_L0() 94 auto ecmaVm = thread->GetEcmaVM(); in HWTEST_F_L0()
|
D | tagged_value_test.cpp | 194 EXPECT_FALSE(thread->GetEcmaVM()->GetFactory()->GetEmptyString().GetTaggedValue().ToBoolean()); in HWTEST_F_L0() 195 …EXPECT_TRUE(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("test").GetTaggedValue()… in HWTEST_F_L0() 230 …JSHandle<JSTaggedValue> stringV0(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(" 1… in HWTEST_F_L0() 234 …JSHandle<JSTaggedValue> stringV1(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(" 0… in HWTEST_F_L0() 238 …JSHandle<JSTaggedValue> stringV2(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(" 0… in HWTEST_F_L0() 242 …JSHandle<JSTaggedValue> stringV3(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(" 0… in HWTEST_F_L0() 246 …JSHandle<JSTaggedValue> stringV4(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(" 0… in HWTEST_F_L0() 250 …JSHandle<JSTaggedValue> stringV5(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(" 1… in HWTEST_F_L0() 254 …JSHandle<JSTaggedValue> stringV6(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(" -… in HWTEST_F_L0() 258 …JSHandle<JSTaggedValue> stringV7(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(" -… in HWTEST_F_L0() [all …]
|
D | ecma_module_test.cpp | 53 ObjectFactory *objectFactory = thread->GetEcmaVM()->GetFactory(); in EcmaModuleCreate() 74 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(cStrItemName)); in HWTEST_F_L0() 96 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(cStrItemName)); in HWTEST_F_L0() 115 ObjectFactory* objFactory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 141 ObjectFactory* objFactory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 145 … JSHandle<JSTaggedValue> handleObjFunc = thread->GetEcmaVM()->GetGlobalEnv()->GetObjectFunction(); in HWTEST_F_L0() 175 ObjectFactory* objFactory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 176 ModuleManager *moduleManager = thread->GetEcmaVM()->GetModuleManager(); in HWTEST_F_L0() 187 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(cStrItemName1)); in HWTEST_F_L0() 189 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString(cStrItemName2)); in HWTEST_F_L0() [all …]
|
D | js_proxy_test.cpp | 62 EcmaVM *ecmaVM = thread->GetEcmaVM(); in JSObjectTestCreate() 71 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(dynclass), … in HWTEST_F_L0() 73 JSHandle<JSTaggedValue> key(thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("x")); in HWTEST_F_L0() 79 …thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(dynclass), … in HWTEST_F_L0() 100 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 120 EcmaVM *vm = thread->GetEcmaVM(); in HWTEST_F_L0() 141 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 163 EcmaVM *vm = thread->GetEcmaVM(); in HWTEST_F_L0() 185 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 205 EcmaVM *vm = thread->GetEcmaVM(); in HWTEST_F_L0() [all …]
|
D | weak_ref_old_gc_test.cpp | 56 EcmaVM *ecmaVM = thread->GetEcmaVM(); in JSObjectTestCreate() 69 JSHandle<TaggedArray> array = thread->GetEcmaVM()->GetFactory()->NewTaggedArray(2); in ArrayTestCreate() 75 auto vm = thread->GetEcmaVM(); in HWTEST_F_L0() 93 EcmaVM *ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 112 EcmaVM *ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 139 thread->GetEcmaVM()->CollectGarbage(TriggerGCType::OLD_GC); in HWTEST_F_L0() 151 thread->GetEcmaVM()->CollectGarbage(TriggerGCType::OLD_GC); in HWTEST_F_L0()
|
D | weak_ref_semi_gc_test.cpp | 56 EcmaVM *ecmaVM = thread->GetEcmaVM(); in JSObjectTestCreate() 68 JSHandle<TaggedArray> array = thread->GetEcmaVM()->GetFactory()->NewTaggedArray(2); in ArrayTestCreate() 74 EcmaVM *ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 93 EcmaVM *ecmaVM = thread->GetEcmaVM(); in HWTEST_F_L0() 120 thread->GetEcmaVM()->CollectGarbage(TriggerGCType::SEMI_GC); in HWTEST_F_L0() 132 thread->GetEcmaVM()->CollectGarbage(TriggerGCType::SEMI_GC); in HWTEST_F_L0()
|
/ark/js_runtime/ecmascript/containers/ |
D | containers_private.cpp | 83 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in InitializeContainer() 98 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in NewContainerConstructor() 99 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in NewContainerConstructor() 121 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in SetFrozenFunction() 132 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in SetFrozenConstructor() 141 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in NewFunction() 143 factory->NewJSFunction(thread->GetEcmaVM()->GetGlobalEnv(), reinterpret_cast<void *>(func)); in NewFunction() 153 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in CreateGetter() 154 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in CreateGetter() 166 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in SetGetter() [all …]
|
/ark/js_runtime/ecmascript/mem/ |
D | parallel_evacuation.cpp | 31 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), ParallelEvacuationInitialize); in Initialize() 40 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), ParallelEvacuationFinalize); in Finalize() 53 heap_->GetEcmaVM()->GetEcmaGCStats()->StatisticConcurrentEvacuate(clockScope.GetPauseTime()); in Evacuate() 58 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), ParallelEvacuation); in EvacuateSpace() 176 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), ParallelUpdateReference); in UpdateReference() 218 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), UpdateRoot); in UpdateRoot() 254 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), UpdateWeakReference); in UpdateWeakReference() 256 auto stringTable = heap_->GetEcmaVM()->GetEcmaStringTable(); in UpdateWeakReference() 284 heap_->GetEcmaVM()->GetJSThread()->IterateWeakEcmaGlobalStorage(gcUpdateWeak); in UpdateWeakReference() 285 heap_->GetEcmaVM()->ProcessReferences(gcUpdateWeak); in UpdateWeakReference() [all …]
|
D | stw_young_gc_for_testing.cpp | 38 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), STWYoungGC_RunPhases); in RunPhases() 51 …heap_->GetEcmaVM()->GetEcmaGCStats()->StatisticSTWYoungGC(clockScope.GetPauseTime(), semiCopiedSiz… in RunPhases() 119 auto stringTable = heap_->GetEcmaVM()->GetEcmaStringTable(); in SweepPhases() 134 heap_->GetEcmaVM()->GetJSThread()->IterateWeakEcmaGlobalStorage(gcUpdateWeak); in SweepPhases() 135 heap_->GetEcmaVM()->ProcessReferences(gcUpdateWeak); in SweepPhases()
|
D | full_gc.cpp | 34 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), FullGC_RunPhases); in RunPhases() 46 …heap_->GetEcmaVM()->GetEcmaGCStats()->StatisticFullGC(clockScope.GetPauseTime(), youngAndOldAliveS… in RunPhases() 119 auto stringTable = heap_->GetEcmaVM()->GetEcmaStringTable(); in SweepPhases() 137 heap_->GetEcmaVM()->GetJSThread()->IterateWeakEcmaGlobalStorage(gcUpdateWeak); in SweepPhases() 138 heap_->GetEcmaVM()->ProcessReferences(gcUpdateWeak); in SweepPhases()
|
/ark/js_runtime/ecmascript/hprof/tests/ |
D | heap_tracker_test.cpp | 67 thread->GetEcmaVM()->GetFactory()->NewJSAsyncFuncObject(); in HWTEST_F_L0() 72 thread->GetEcmaVM()->GetFactory()->NewJSSymbol(); in HWTEST_F_L0() 77 …JSHandle<EcmaString> string = thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("Hello… in HWTEST_F_L0() 78 thread->GetEcmaVM()->GetFactory()->NewJSString(JSHandle<JSTaggedValue>(string)); in HWTEST_F_L0()
|