| // Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| package com.android.tools.r8.ir.code; |
| import com.android.tools.r8.graph.AppInfo; |
| import com.android.tools.r8.graph.DexType; |
| import com.android.tools.r8.ir.optimize.Inliner.InliningConstraint; |
| import com.android.tools.r8.utils.InternalOptions; |
| public abstract class JumpInstruction extends Instruction { |
| public JumpInstruction(Value out) { |
| public JumpInstruction(Value out, Value in) { |
| public JumpInstruction(Value out, List<? extends Value> ins) { |
| public BasicBlock fallthroughBlock() { |
| public void setFallthroughBlock(BasicBlock block) { |
| assert false : "We should not change the fallthrough of a JumpInstruction with no fallthrough."; |
| public boolean canBeDeadCode(InternalOptions options) { |
| public boolean isJumpInstruction() { |
| public JumpInstruction asJumpInstruction() { |
| public InliningConstraint inliningConstraint(AppInfo info, DexType holder) { |
| return InliningConstraint.ALWAYS; |