class HBasicBlockBuilder : public ValueObject { public:
HBasicBlockBuilder(HGraph* graph, const DexFile* const dex_file, const CodeItemDebugInfoAccessor& accessor,
ScopedArenaAllocator* local_allocator);
// Creates basic blocks in `graph_` at branch target dex_pc positions of the // `code_item_`. Blocks are connected but left unpopulated with instructions. // TryBoundary blocks are inserted at positions where control-flow enters/ // exits a try block. bool Build();
// Creates basic blocks in `graph_` for compiling an intrinsic. void BuildIntrinsic();
private: // Creates a basic block starting at given `dex_pc`.
HBasicBlock* MaybeCreateBlockAt(uint32_t dex_pc);
// Creates a basic block for bytecode instructions at `semantic_dex_pc` and // stores it under the `store_dex_pc` key. This is used when multiple blocks // share the same semantic dex_pc, e.g. when building switch decision trees.
HBasicBlock* MaybeCreateBlockAt(uint32_t semantic_dex_pc, uint32_t store_dex_pc);
// To ensure branches with negative offsets can always OSR jump to compiled // code, we insert synthesized loops before each block that is the target of a // negative branch. void InsertSynthesizedLoopsForOsr();
// Helper method which decides whether `catch_block` may have live normal // predecessors and thus whether a synthetic catch block needs to be created // to avoid mixing normal and exceptional predecessors. // Should only be called during InsertTryBoundaryBlocks on blocks at catch // handler dex_pcs. bool MightHaveLiveNormalPredecessors(HBasicBlock* catch_block);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.