blob: a041f1e30d72a068aaa126c41683b4b4c7b4f164 [file] [log] [blame]
// Copyright (c) 2022, 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.experimental.startup;
import com.android.tools.r8.graph.DexItemFactory;
import com.android.tools.r8.graph.DexMethod;
import com.android.tools.r8.graph.DexType;
public class StartupReferences {
final DexType instrumentationServerType;
final DexType instrumentationServerImplType;
final DexMethod addNonSyntheticMethod;
final DexMethod addSyntheticMethod;
StartupReferences(DexItemFactory dexItemFactory) {
instrumentationServerType =
dexItemFactory.createType("Lcom/android/tools/r8/startup/InstrumentationServer;");
instrumentationServerImplType =
dexItemFactory.createType("Lcom/android/tools/r8/startup/InstrumentationServerImpl;");
addNonSyntheticMethod =
dexItemFactory.createMethod(
instrumentationServerImplType,
dexItemFactory.createProto(dexItemFactory.voidType, dexItemFactory.stringType),
"addNonSyntheticMethod");
addSyntheticMethod =
dexItemFactory.createMethod(
instrumentationServerImplType,
dexItemFactory.createProto(dexItemFactory.voidType, dexItemFactory.stringType),
"addSyntheticMethod");
}
}