1# Copyright (C) 2019 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 LWeirdLoop; 16 17.super Ljava/lang/Object; 18 19.method public static weirdLoop()I 20 .registers 3 21 invoke-static {}, LMain;->$noinline$magicValue()I 22 move-result v0 23 const-string v1, "weirdLoop" 24 invoke-static {v1}, LMain;->isInInterpreter(Ljava/lang/String;)Z 25 move-result v2 26 if-eqz v2, :end 27 goto :mid 28 29 :top 30 invoke-static {}, LMain;->$noinline$magicValue()I 31 move-result v0 32 :mid 33 invoke-static {v1}, LMain;->isInOsrCode(Ljava/lang/String;)Z 34 move-result v2 35 if-eqz v2, :top 36 :end 37 return v0 38.end method 39 40