1 // Copyright (c) 2017, 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 5 package com.android.tools.r8.ir.conversion; 6 7 import com.android.tools.r8.graph.DexEncodedMethod; 8 import com.android.tools.r8.ir.optimize.Inliner.Constraint; 9 10 public interface OptimizationFeedback { methodReturnsArgument(DexEncodedMethod method, int argument)11 void methodReturnsArgument(DexEncodedMethod method, int argument); methodReturnsConstant(DexEncodedMethod method, long value)12 void methodReturnsConstant(DexEncodedMethod method, long value); methodNeverReturnsNull(DexEncodedMethod method)13 void methodNeverReturnsNull(DexEncodedMethod method); markProcessed(DexEncodedMethod method, Constraint state)14 void markProcessed(DexEncodedMethod method, Constraint state); 15 } 16