Home
last modified time | relevance | path

Searched refs:codeBuff (Results 1 - 8 of 8) sorted by relevance

/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dcode_allocator_test.cpp66 void *codeBuff = ca.AllocateCode(sizeof(buff), static_cast<void *>(&buff[0U])); in TEST_F() local
69 ASSERT_EQ(static_cast<uint8_t *>(codeBuff)[i], 0xCCU); in TEST_F()
71 ASSERT_TRUE(IsAligned(codeBuff, 4U * SIZE_1K)); in TEST_F()
/arkcompiler/ets_runtime/ecmascript/dfx/dump_code/
H A Djit_dump_elf.cpp132 void JsJitDumpElf::AppendData(std::vector<uint8> &codeBuff) in AppendData() argument
134 textSection->AppendData(codeBuff.data(), codeBuff.size()); in AppendData()
H A Djit_dump_elf.h342 void AppendData(std::vector<uint8> &codeBuff);
/arkcompiler/runtime_core/static_core/libpandabase/mem/
H A Dcode_allocator.cpp45 void *CodeAllocator::AllocateCode(size_t size, const void *codeBuff) in AllocateCode() argument
49 if (UNLIKELY(codePtr == nullptr || memcpy_s(codePtr, size, codeBuff, size) != EOK)) { in AllocateCode()
H A Dcode_allocator.h35 * @brief Allocates @param size bytes, copies @param codeBuff to allocated memory and make this memory executable
37 * @param codeBuff
40 [[nodiscard]] PANDA_PUBLIC_API void *AllocateCode(size_t size, const void *codeBuff);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/
H A Delf_assembler.cpp84 auto reloffset = codeBuff.size(); in EmitFloatValue()
137 static_cast<uint32>(lastModulePC + codeBuff.size())); in EmitFunctionHeader()
139 UpdateLabel(symIdx, LabelType::kFunc, static_cast<uint32>(codeBuff.size())); in EmitFunctionHeader()
144 UpdateLabel(labelSymIdx, LabelType::kBBLabel, static_cast<uint32>(codeBuff.size())); in EmitBBLabel()
149 UpdateLabel(jmpLabelIdx, LabelType::kJmpLabel, static_cast<uint32>(codeBuff.size())); in EmitJmpTableElem()
152 AppendFixup(labelSymIdx, kAbsolute64, {static_cast<uint32>(codeBuff.size()), kLabelSize}, fixups); in EmitJmpTableElem()
377 AppendFixup(symIdx, kRelative, {static_cast<uint32>(codeBuff.size()), offsetSize}, fixups, mem.disp.second); in OpDisp()
469 AppendFixup(immOpnd.first, kRelative, {static_cast<uint32>(codeBuff.size()), immBit / k8Bits}, fixups); in OpImmAndReg()
486 AppendFixup(immOpnd.first, kRelative, {static_cast<uint32>(codeBuff.size()), offsetSize}, fixups);
524 AppendFixup(symIdx, kAbsolute64, {static_cast<uint32>(codeBuff
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/assembler/
H A Delf_assembler.h372 codeBuff.push_back(static_cast<uint8>(code)); in Encodeb()
409 codeBuff[position + i] = static_cast<uint8>(code >> (i * k8Bits)); in FixupEncode()
603 std::vector<uint8> codeBuff; member in assembler::ElfAssembler
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dfile_generators.cpp114 auto codeBuff = assembler->GetSectionAddr(ElfSecName::TEXT); in CollectFuncEntryInfo() local
130 funcSize = codeBuff + assembler->GetSectionSize(ElfSecName::TEXT) - entrys[j]; in CollectFuncEntryInfo()
133 stubInfo.AddEntry(cs->GetTargetKind(), false, false, cs->GetID(), entrys[j] - codeBuff, in CollectFuncEntryInfo()

Completed in 9 milliseconds