MCPcopy Create free account
hub / github.com/connorjaydunn/BinaryShield / compileInstructionsToVirtualInstructions

Method compileInstructionsToVirtualInstructions

src/function.cpp:54–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54bool Function::compileInstructionsToVirtualInstructions()
55{
56 // push context onto virtual stack
57 VM::popVmContext(&instructions[0]);
58 instructions[0].compileToVirtualInstructions();
59
60 // compile each instruction to a set of virtual instructions
61 for (int i = 1; i < instructions.size(); i++)
62 {
63 if (!instructions[i].compileToVirtualInstructions())
64 // unable to virtualise instruciton, likely no support implemented
65 return 0;
66 }
67
68 return 1;
69}
70
71void Function::resolveBranchInstructions(DWORD bytecodeRva)
72{

Callers 1

virtualizeFunctionMethod · 0.80

Calls 2

popVmContextFunction · 0.85

Tested by

no test coverage detected