Lines Matching refs:program
19 void Program::Serialize(const panda::pandasm::Program &program, protoPanda::Program &protoProgram) in Serialize() argument
21 protoProgram.set_lang(static_cast<uint32_t>(program.lang)); in Serialize()
23 for (const auto &[name, record] : program.record_table) { in Serialize()
30 for (const auto &[name, func] : program.function_table) { in Serialize()
37 for (const auto &[name, array] : program.literalarray_table) { in Serialize()
43 for (const auto &str : program.strings) { in Serialize()
46 for (const auto &type : program.array_types) { in Serialize()
52 void Program::Deserialize(const protoPanda::Program &protoProgram, panda::pandasm::Program &program, in Deserialize() argument
55 program.lang = static_cast<panda::panda_file::SourceLang>(protoProgram.lang()); in Deserialize()
63 program.record_table.insert({name, std::move(record)}); in Deserialize()
72 program.function_table.insert({name, std::move(*function)}); in Deserialize()
80 program.literalarray_table.insert({name, std::move(literalArray)}); in Deserialize()
84 program.strings.insert(protoString); in Deserialize()
89 program.array_types.insert(std::move(arrayType)); in Deserialize()