• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.code.If.Type;
7 
8 public class IfEq extends Format22t {
9 
10   public static final int OPCODE = 0x32;
11   public static final String NAME = "IfEq";
12   public static final String SMALI_NAME = "if-eq";
13 
IfEq(int high, BytecodeStream stream)14   IfEq(int high, BytecodeStream stream) {
15     super(high, stream);
16   }
17 
IfEq(int register1, int register2, int offset)18   public IfEq(int register1, int register2, int offset) {
19     super(register1, register2, offset);
20   }
21 
getName()22   public String getName() {
23     return NAME;
24   }
25 
getSmaliName()26   public String getSmaliName() {
27     return SMALI_NAME;
28   }
29 
getOpcode()30   public int getOpcode() {
31     return OPCODE;
32   }
33 
34   @Override
getType()35   public Type getType() {
36     return Type.EQ;
37   }
38 }
39