1 // Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file 2 // for details. All rights reserved. Use of this source code is governed by a 3 // BSD-style license that can be found in the LICENSE file. 4 package com.android.tools.r8.code; 5 6 import com.android.tools.r8.ir.conversion.IRBuilder; 7 8 public class ReturnVoid extends Format10x { 9 10 public static final int OPCODE = 0xe; 11 public static final String NAME = "ReturnVoid"; 12 public static final String SMALI_NAME = "return-void"; 13 ReturnVoid(int high, BytecodeStream stream)14 ReturnVoid(int high, BytecodeStream stream) { 15 super(high, stream); 16 } 17 ReturnVoid()18 public ReturnVoid() {} 19 getName()20 public String getName() { 21 return NAME; 22 } 23 getSmaliName()24 public String getSmaliName() { 25 return SMALI_NAME; 26 } 27 getOpcode()28 public int getOpcode() { 29 return OPCODE; 30 } 31 32 @Override getTargets()33 public int[] getTargets() { 34 return EXIT_TARGET; 35 } 36 37 @Override buildIR(IRBuilder builder)38 public void buildIR(IRBuilder builder) { 39 builder.addReturn(); 40 } 41 } 42