Lines Matching refs:pf
67 std::shared_ptr<JSPandaFile> pf = pfManager->NewJSPandaFile(pfPtr.release(), filename);
68 return pf;
78 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);
79 EXPECT_TRUE(pf != nullptr);
88 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);
89 const CString expectFileName = pf->GetJSPandaFileDesc();
99 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);
100 const File *file = pf->GetPandaFile();
112 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);
113 MethodLiteral *method = pf->GetMethodLiterals();
116 uint32_t methodNum = pf->GetNumMethods();
128 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);
129 const File *file = pf->GetPandaFile();
146 pf->SetMethodLiteralToMap(method1);
147 pf->SetMethodLiteralToMap(method2);
148 pf->SetMethodLiteralToMap(method3);
149 EXPECT_STREQ(MethodLiteral::ParseFunctionName(pf.get(), methodId[0]).c_str(), "foo1");
150 EXPECT_STREQ(MethodLiteral::ParseFunctionName(pf.get(), methodId[1]).c_str(), "foo2");
151 EXPECT_STREQ(MethodLiteral::ParseFunctionName(pf.get(), methodId[2]).c_str(), "foo3");
162 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);
163 const File *file = pf->GetPandaFile();
177 uint32_t index1 = pf->GetOrInsertConstantPool(ConstPoolType::METHOD, methodId[0].GetOffset());
178 uint32_t index2 = pf->GetOrInsertConstantPool(ConstPoolType::METHOD, methodId[1].GetOffset());
179 uint32_t index3 = pf->GetOrInsertConstantPool(ConstPoolType::METHOD, methodId[2].GetOffset());
184 uint32_t conPoolIndex = pf->GetConstpoolIndex();
187 CUnorderedMap<uint32_t, uint64_t> constpoolMap = pf->GetConstpoolMap();
212 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);
213 const File *file = pf->GetPandaFile();
227 uint32_t mainMethodIndex = pf->GetMainMethodIndex();
230 pf->UpdateMainMethodIndex(methodId[0].GetOffset());
231 mainMethodIndex = pf->GetMainMethodIndex();
234 pf->UpdateMainMethodIndex(methodId[1].GetOffset());
235 mainMethodIndex = pf->GetMainMethodIndex();
245 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);
246 const File *file = pf->GetPandaFile();
256 Span<const uint32_t> classes = pf->GetClasses();
279 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);
280 bool isLoadedAOT = pf->IsLoadedAOT();
283 pf->SetAOTFileInfoIndex(0);
284 isLoadedAOT = pf->IsLoadedAOT();
294 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);
295 EXPECT_EQ(pf->GetFileUniqId(), merge_hashes(panda_file::File::CalcFilenameHash(""),
296 GetHash32(reinterpret_cast<const uint8_t *>(pf->GetPandaFile()->GetHeader()),
306 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);
307 auto &recordInfo = pf->FindRecordInfo(JSPandaFile::ENTRY_FUNCTION_NAME);
310 EXPECT_TRUE(pf->FindRecordInfo(JSPandaFile::ENTRY_FUNCTION_NAME).IsParsedConstpoolOfCurrentVM(instance));
319 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName);
320 EXPECT_EQ(pf->GetNormalizedFileDesc(), "entry/ets/modules.abc");
323 pf = CreateJSPandaFile(source, fileName);
324 EXPECT_EQ(pf->GetNormalizedFileDesc(), "entry/ets/widgets.abc");
327 pf = CreateJSPandaFile(source, fileName);
328 EXPECT_EQ(pf->GetNormalizedFileDesc(), "entry/ets/modules.abc");
331 pf = CreateJSPandaFile(source, fileName);
332 EXPECT_EQ(pf->GetNormalizedFileDesc(), "entry/ets/widgets.abc");
335 pf = CreateJSPandaFile(source, fileName);
336 EXPECT_EQ(pf->GetNormalizedFileDesc(), "entry1/ets/modules.abc");
339 pf = CreateJSPandaFile(source, fileName);
340 EXPECT_EQ(pf->GetNormalizedFileDesc(), fileName);
343 pf = CreateJSPandaFile(source, fileName);
344 EXPECT_EQ(pf->GetNormalizedFileDesc(), fileName);