Home | History | Annotate | Download | only in smali
      1 #
      2 # Copyright (C) 2015 The Android Open Source Project
      3 #
      4 # Licensed under the Apache License, Version 2.0 (the "License");
      5 # you may not use this file except in compliance with the License.
      6 # You may obtain a copy of the License at
      7 #
      8 #     http://www.apache.org/licenses/LICENSE-2.0
      9 #
     10 # Unless required by applicable law or agreed to in writing, software
     11 # distributed under the License is distributed on an "AS IS" BASIS,
     12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 # See the License for the specific language governing permissions and
     14 # limitations under the License.
     15 
     16 .class public LTest;
     17 
     18 .super Ljava/lang/Object;
     19 
     20 .method public static EmptyPackedSwitch(I)I
     21   .registers 1
     22   packed-switch v0, :pswitch_data_6a
     23   const/4 v0, 0x5
     24   return v0
     25 
     26   :pswitch_data_6a
     27   .packed-switch 0x0
     28   .end packed-switch
     29 .end method
     30 
     31 .method public static PackedSwitchAfterData(I)I
     32   .registers 1
     33   goto :pswitch_instr
     34 
     35   :case0
     36   const/4 v0, 0x1
     37   return v0
     38 
     39   :pswitch_data
     40   .packed-switch 0x0
     41     :case0
     42     :case1
     43   .end packed-switch
     44 
     45   :pswitch_instr
     46   packed-switch v0, :pswitch_data
     47   const/4 v0, 0x7
     48   return v0
     49 
     50   :case1
     51   const/4 v0, 0x4
     52   return v0
     53 
     54 .end method
     55