src/hotspot/share/interpreter/interpreterRuntime.cpp
changeset 53547 9d1a788dea3d
parent 52823 f5d0926026ec
child 53746 bdccafc038a2
equal deleted inserted replaced
53546:63eb7e38ce84 53547:9d1a788dea3d
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   132     return _last_frame.next_monitor_in_interpreter_frame(current);
   132     return _last_frame.next_monitor_in_interpreter_frame(current);
   133   }
   133   }
   134 
   134 
   135   frame& get_frame()                             { return _last_frame; }
   135   frame& get_frame()                             { return _last_frame; }
   136 };
   136 };
   137 
       
   138 
       
   139 bool InterpreterRuntime::is_breakpoint(JavaThread *thread) {
       
   140   return Bytecodes::code_or_bp_at(LastFrameAccessor(thread).bcp()) == Bytecodes::_breakpoint;
       
   141 }
       
   142 
   137 
   143 //------------------------------------------------------------------------------------------------------------------------
   138 //------------------------------------------------------------------------------------------------------------------------
   144 // State accessors
   139 // State accessors
   145 
   140 
   146 void InterpreterRuntime::set_bcp_and_mdp(address bcp, JavaThread *thread) {
   141 void InterpreterRuntime::set_bcp_and_mdp(address bcp, JavaThread *thread) {