CodeGen 37 sandbox/linux/seccomp-bpf/codegen.cc CodeGen::CodeGen() : compiled_(false) {} CodeGen 39 sandbox/linux/seccomp-bpf/codegen.cc CodeGen::~CodeGen() { CodeGen 52 sandbox/linux/seccomp-bpf/codegen.cc void CodeGen::PrintProgram(const SandboxBPF::Program& program) { CodeGen 138 sandbox/linux/seccomp-bpf/codegen.cc Instruction* CodeGen::MakeInstruction(uint16_t code, CodeGen 166 sandbox/linux/seccomp-bpf/codegen.cc Instruction* CodeGen::MakeInstruction(uint16_t code, const ErrorCode& err) { CodeGen 177 sandbox/linux/seccomp-bpf/codegen.cc Instruction* CodeGen::MakeInstruction(uint16_t code, CodeGen 196 sandbox/linux/seccomp-bpf/codegen.cc void CodeGen::JoinInstructions(Instruction* head, Instruction* tail) { CodeGen 225 sandbox/linux/seccomp-bpf/codegen.cc void CodeGen::Traverse(Instruction* instruction, CodeGen 237 sandbox/linux/seccomp-bpf/codegen.cc void CodeGen::FindBranchTargets(const Instruction& instructions, CodeGen 310 sandbox/linux/seccomp-bpf/codegen.cc BasicBlock* CodeGen::MakeBasicBlock(Instruction* head, Instruction* tail) { CodeGen 327 sandbox/linux/seccomp-bpf/codegen.cc void CodeGen::AddBasicBlock(Instruction* head, CodeGen 349 sandbox/linux/seccomp-bpf/codegen.cc BasicBlock* CodeGen::CutGraphIntoBasicBlocks( CodeGen 523 sandbox/linux/seccomp-bpf/codegen.cc void CodeGen::MergeTails(TargetsToBlocks* blocks) { CodeGen 557 sandbox/linux/seccomp-bpf/codegen.cc void CodeGen::ComputeIncomingBranches(BasicBlock* block, CodeGen 584 sandbox/linux/seccomp-bpf/codegen.cc void CodeGen::TopoSortBasicBlocks(BasicBlock* first_block, CodeGen 654 sandbox/linux/seccomp-bpf/codegen.cc void CodeGen::ComputeRelativeJumps(BasicBlocks* basic_blocks, CodeGen 732 sandbox/linux/seccomp-bpf/codegen.cc void CodeGen::ConcatenateBasicBlocks(const BasicBlocks& basic_blocks, CodeGen 753 sandbox/linux/seccomp-bpf/codegen.cc void CodeGen::Compile(Instruction* instructions, SandboxBPF::Program* program) { CodeGen 56 sandbox/linux/seccomp-bpf/codegen.h class SANDBOX_EXPORT CodeGen { CodeGen 58 sandbox/linux/seccomp-bpf/codegen.h CodeGen(); CodeGen 59 sandbox/linux/seccomp-bpf/codegen.h ~CodeGen(); CodeGen 24 sandbox/linux/seccomp-bpf/codegen_unittest.cc class CodeGenUnittestHelper : public CodeGen { CodeGen 28 sandbox/linux/seccomp-bpf/codegen_unittest.cc CodeGen::FindBranchTargets(instructions, branch_targets); CodeGen 34 sandbox/linux/seccomp-bpf/codegen_unittest.cc return CodeGen::CutGraphIntoBasicBlocks(insns, branch_targets, blocks); CodeGen 37 sandbox/linux/seccomp-bpf/codegen_unittest.cc void MergeTails(TargetsToBlocks* blocks) { CodeGen::MergeTails(blocks); } CodeGen 42 sandbox/linux/seccomp-bpf/codegen_unittest.cc Instruction* SampleProgramOneInstruction(CodeGen* codegen, int* flags) { CodeGen 50 sandbox/linux/seccomp-bpf/codegen_unittest.cc Instruction* SampleProgramSimpleBranch(CodeGen* codegen, int* flags) { CodeGen 64 sandbox/linux/seccomp-bpf/codegen_unittest.cc Instruction* SampleProgramAtypicalBranch(CodeGen* codegen, int* flags) { CodeGen 79 sandbox/linux/seccomp-bpf/codegen_unittest.cc Instruction* SampleProgramComplex(CodeGen* codegen, int* flags) { CodeGen 144 sandbox/linux/seccomp-bpf/codegen_unittest.cc Instruction* SampleProgramConfusingTails(CodeGen* codegen, int* flags) { CodeGen 179 sandbox/linux/seccomp-bpf/codegen_unittest.cc Instruction* SampleProgramConfusingTailsBasic(CodeGen* codegen, int* flags) { CodeGen 204 sandbox/linux/seccomp-bpf/codegen_unittest.cc Instruction* SampleProgramConfusingTailsMergeable(CodeGen* codegen, CodeGen 237 sandbox/linux/seccomp-bpf/codegen_unittest.cc Instruction* (*function_table[])(CodeGen* codegen, int* flags) = { CodeGen 260 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_TEST(CodeGen, MakeInstruction) { CodeGen 323 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_TEST(CodeGen, FindBranchTargets) { ForAllPrograms(FindBranchTargets); } CodeGen 366 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_TEST(CodeGen, CutGraphIntoBasicBlocks) { CodeGen 450 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_TEST(CodeGen, MergeTails) { CodeGen 534 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_TEST(CodeGen, All) { CodeGen 151 sandbox/linux/seccomp-bpf/errorcode.h friend class CodeGen; CodeGen 552 sandbox/linux/seccomp-bpf/sandbox_bpf.cc CodeGen* gen = new CodeGen(); CodeGen 729 sandbox/linux/seccomp-bpf/sandbox_bpf.cc CodeGen::PrintProgram(program); CodeGen 762 sandbox/linux/seccomp-bpf/sandbox_bpf.cc Instruction* SandboxBPF::AssembleJumpTable(CodeGen* gen, CodeGen 789 sandbox/linux/seccomp-bpf/sandbox_bpf.cc Instruction* SandboxBPF::RetExpression(CodeGen* gen, const ErrorCode& err) { CodeGen 797 sandbox/linux/seccomp-bpf/sandbox_bpf.cc Instruction* SandboxBPF::CondExpression(CodeGen* gen, const ErrorCode& cond) { CodeGen 40 sandbox/linux/seccomp-bpf/sandbox_bpf.h class CodeGen; CodeGen 197 sandbox/linux/seccomp-bpf/sandbox_bpf.h friend class CodeGen; CodeGen 247 sandbox/linux/seccomp-bpf/sandbox_bpf.h Instruction* AssembleJumpTable(CodeGen* gen, CodeGen 256 sandbox/linux/seccomp-bpf/sandbox_bpf.h Instruction* RetExpression(CodeGen* gen, const ErrorCode& err); CodeGen 262 sandbox/linux/seccomp-bpf/sandbox_bpf.h Instruction* CondExpression(CodeGen* gen, const ErrorCode& cond);