ART世界探险(18) InlineMethod
ART世界探险(18) InlineMethod
好,我们还是先复习一下上上节学到的图:
在开始InlineMethod之前,我们再继续补充一点BasicBlock的知识。
BasicBlock中针对MIR的相关操作
AppendMIR
AppendMIR的作用是将MIR增加到一个BasicBlock的结尾。
/* Insert an MIR instruction to the end of a basic block. */
void BasicBlock::AppendMIR(MIR* mir) {
// Insert it after the last MIR.
InsertMIRListAfter(last_mir_insn, mir, mir);
}
InsertMIRListAfter
一个标准的链表,实现MIR的列表队尾增
