Home
last modified time | relevance | path

Searched refs:machine_code (Results 1 – 17 of 17) sorted by relevance

/frameworks/libs/binary_translation/lite_translator/riscv64_to_x86_64/
Dlite_translator_tests.cc32 MachineCode machine_code; in TEST() local
33 LiteTranslator translator(&machine_code, 0); in TEST()
46 MachineCode machine_code; in TEST() local
47 LiteTranslator translator(&machine_code, 0); in TEST()
50 int size1 = machine_code.install_size(); in TEST()
52 int size2 = machine_code.install_size(); in TEST()
56 int size3 = machine_code.install_size(); in TEST()
60 int size4 = machine_code.install_size(); in TEST()
66 MachineCode machine_code; in TEST() local
67 LiteTranslator translator(&machine_code, 0); in TEST()
[all …]
Dlite_translate_region_exec_tests.cc46 MachineCode machine_code; in Run() local
49 &machine_code, in Run()
56 ScopedExecRegion exec(&machine_code); in Run()
118 MachineCode machine_code; in TEST_F() local
121 &machine_code, in TEST_F()
150 MachineCode machine_code; in TEST_F() local
156 &machine_code, in TEST_F()
165 ScopedExecRegion exec(&machine_code); in TEST_F()
Dlite_translate_region.cc65 MachineCode* machine_code, in TryLiteTranslateRegionImpl() argument
68 LiteTranslator translator(machine_code, start_pc, params); in TryLiteTranslateRegionImpl()
94 MachineCode* machine_code, in LiteTranslateRange() argument
96 auto [success, stop_pc] = TryLiteTranslateRegionImpl(start_pc, end_pc, machine_code, params); in LiteTranslateRange()
101 MachineCode* machine_code, in TryLiteTranslateRegion() argument
106 start_pc, std::numeric_limits<GuestAddr>::max(), machine_code, params); in TryLiteTranslateRegion()
Dlite_translate_insn_exec_tests.cc39 MachineCode machine_code; in RunOneInstruction() local
42 &machine_code, in RunOneInstruction()
49 ScopedExecRegion exec(&machine_code); in RunOneInstruction()
Dinline_intrinsic_tests.cc117 MachineCode machine_code; in TEST() local
118 MacroAssembler<x86_64::Assembler> as(&machine_code); in TEST()
Dlite_translator.h62 explicit LiteTranslator(MachineCode* machine_code,
65 : as_(machine_code), in as_() argument
/frameworks/libs/binary_translation/code_gen_lib/
Dcode_gen_lib_riscv64_test.cc55 MachineCode machine_code; in TEST() local
58 &machine_code, ToGuestAddr(&g_insn), AsHostCode(DummyTrampoline), &g_arg, "DummyTrampoline"); in TEST()
60 ScopedExecRegion exec(&machine_code); in TEST()
72 void GenMoveResidenceToReg(MachineCode* machine_code) { in GenMoveResidenceToReg() argument
73 x86_64::Assembler as(machine_code); in GenMoveResidenceToReg()
137 MachineCode machine_code; in TEST() local
140 &machine_code, ToGuestAddr(&g_insn), "vi", AsHostCode(DummyRunner2), "DummyRunner2"); in TEST()
142 ScopedExecRegion exec(&machine_code); in TEST()
170 MachineCode machine_code; in TEST() local
173 &machine_code, ToGuestAddr(&g_insn), "zzzzzzzzzzz", AsHostCode(Run10UInt8), "Run10UInt8"); in TEST()
[all …]
/frameworks/libs/binary_translation/runtime_primitives/
Dcode_pool_test.cc85 MachineCode machine_code; in TEST() local
87 machine_code.AddSequence(kCode.data(), kCode.size()); in TEST()
88 auto host_code = code_pool.Add(&machine_code); in TEST()
97 MachineCode machine_code; in TEST() local
99 machine_code.AddSequence(kCode.data(), kCode.size()); in TEST()
100 auto host_code = code_pool.Add(&machine_code); in TEST()
/frameworks/libs/binary_translation/runtime/
Dtranslator_riscv64.cc114 HostCodePiece InstallTranslated(MachineCode* machine_code, in InstallTranslated() argument
118 HostCode host_code = GetDefaultCodePoolInstance()->Add(machine_code); in InstallTranslated()
119 ProfilerLogGeneratedCode(host_code, machine_code->install_size(), pc, size, prefix); in InstallTranslated()
120 return {host_code, machine_code->install_size()}; in InstallTranslated()
133 MachineCode machine_code; in TryLiteTranslateAndInstallRegion() local
135 auto [success, stop_pc] = TryLiteTranslateRegion(pc, &machine_code, params); in TryLiteTranslateAndInstallRegion()
140 return {true, InstallTranslated(&machine_code, pc, size, "lite"), size, kLightTranslated}; in TryLiteTranslateAndInstallRegion()
160 MachineCode machine_code; in HeavyOptimizeRegion() local
162 HeavyOptimizeRegion(pc, &machine_code); in HeavyOptimizeRegion()
165 return {true, InstallTranslated(&machine_code, pc, size, "heavy"), size, kHeavyOptimized}; in HeavyOptimizeRegion()
[all …]
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/
Dheavy_optimizer_insn_exec_tests.cc40 MachineCode machine_code; in RunOneInstruction() local
43 &machine_code, in RunOneInstruction()
55 ScopedExecRegion exec(&machine_code); in RunOneInstruction()
Dheavy_optimize_region.cc37 MachineCode* machine_code, in HeavyOptimizeRegion() argument
66 x86_64::GenCode(&machine_ir, machine_code); in HeavyOptimizeRegion()
Dcall_intrinsic_tests.cc49 MachineCode machine_code; in Init() local
51 &machine_code, machine_ir->FrameSize(), machine_ir->NumBasicBlocks(), machine_ir->arena()); in Init()
67 x86_64::GenCode(machine_ir, &machine_code, x86_64::GenCodeParams{.skip_emit = true}); in Init()
85 exec_.Init(&machine_code); in Init()
/frameworks/libs/binary_translation/lite_translator/include/berberis/lite_translator/
Dlite_translate_region.h42 MachineCode* machine_code,
45 MachineCode* machine_code,
/frameworks/libs/binary_translation/backend/riscv64_to_x86_64/
Dcode_gen.cc37 void GenCode(MachineIR* machine_ir, MachineCode* machine_code, const GenCodeParams& params) { in GenCode() argument
75 machine_code, machine_ir->FrameSize(), machine_ir->NumBasicBlocks(), machine_ir->arena()); in GenCode()
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/include/berberis/heavy_optimizer/riscv64/
Dheavy_optimize_region.h40 MachineCode* machine_code,
/frameworks/libs/binary_translation/assembler/
DAndroid.bp102 "machine_code.cc",
/frameworks/libs/binary_translation/backend/x86_64/
Dmachine_ir_exec_test.cc56 MachineCode machine_code; in Init() local
58 &machine_code, machine_ir.FrameSize(), machine_ir.bb_list().size(), machine_ir.arena()); in Init()
94 exec_.Init(&machine_code); in Init()