blob: 085b6fa2963a27a6f9c843cdad8d97ee0e0144c1 [file] [log] [blame]
// 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.code;
import com.android.tools.r8.graph.DexType;
import com.android.tools.r8.graph.OffsetToObjectMapping;
import com.android.tools.r8.ir.conversion.IRBuilder;
public class FilledNewArray extends Format35c {
public static final int OPCODE = 0x24;
public static final String NAME = "FilledNewArray";
public static final String SMALI_NAME = "filled-new-array";
FilledNewArray(int high, BytecodeStream stream, OffsetToObjectMapping mapping) {
super(high, stream, mapping.getTypeMap());
}
public FilledNewArray(int size, DexType type, int v0, int v1, int v2, int v3, int v4) {
super(size, type, v0, v1, v2, v3, v4);
}
public String getName() {
return NAME;
}
public String getSmaliName() {
return SMALI_NAME;
}
public int getOpcode() {
return OPCODE;
}
public DexType getType() {
return (DexType) BBBB;
}
@Override
public void buildIR(IRBuilder builder) {
builder.addInvokeNewArray(getType(), A, new int[]{C, D, E, F, G});
}
@Override
public boolean canThrow() {
return true;
}
}