1 # Copyright (C) 2015 The Android Open Source Project 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 .class public LDCE; 16 17 .super Ljava/lang/Object; 18 19 .method public static method([I)LDCE; 20 .registers 2 21 const/4 v0, 0 22 # Jump over the code that requires the null constant 23 # so that the compiler sees the null constant as dead code. 24 if-eq v0, v0, :end 25 invoke-static {v0}, LDCE;->method([I)LDCE; 26 :end 27 invoke-static {}, LDCE;->$inline$returnNull()LDCE; 28 move-result-object v0 29 return-object v0 30 .end method 31 32 .method public static $inline$returnNull()LDCE; 33 .registers 2 34 const/4 v0, 0 35 # Return null to make `method` call GetConstantNull again. 36 return-object v0 37 .end method 38