hotspot/src/share/vm/interpreter/interpreterRuntime.hpp
changeset 46727 6e4a84748e2c
parent 46430 45fd2f759802
equal deleted inserted replaced
46726:7801367e3cc9 46727:6e4a84748e2c
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, 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.
    64   static int       number_of_dimensions(JavaThread *thread)  { return bcp(thread)[3]; }
    64   static int       number_of_dimensions(JavaThread *thread)  { return bcp(thread)[3]; }
    65 
    65 
    66   static ConstantPoolCacheEntry* cache_entry_at(JavaThread *thread, int i)  { return method(thread)->constants()->cache()->entry_at(i); }
    66   static ConstantPoolCacheEntry* cache_entry_at(JavaThread *thread, int i)  { return method(thread)->constants()->cache()->entry_at(i); }
    67   static ConstantPoolCacheEntry* cache_entry(JavaThread *thread)            { return cache_entry_at(thread, Bytes::get_native_u2(bcp(thread) + 1)); }
    67   static ConstantPoolCacheEntry* cache_entry(JavaThread *thread)            { return cache_entry_at(thread, Bytes::get_native_u2(bcp(thread) + 1)); }
    68   static void      note_trap_inner(JavaThread* thread, int reason,
    68   static void      note_trap_inner(JavaThread* thread, int reason,
    69                                    methodHandle trap_method, int trap_bci, TRAPS);
    69                                    const methodHandle& trap_method, int trap_bci, TRAPS);
    70   static void      note_trap(JavaThread *thread, int reason, TRAPS);
    70   static void      note_trap(JavaThread *thread, int reason, TRAPS);
    71 #ifdef CC_INTERP
    71 #ifdef CC_INTERP
    72   // Profile traps in C++ interpreter.
    72   // Profile traps in C++ interpreter.
    73   static void      note_trap(JavaThread* thread, int reason, Method *method, int trap_bci);
    73   static void      note_trap(JavaThread* thread, int reason, Method *method, int trap_bci);
    74 #endif // CC_INTERP
    74 #endif // CC_INTERP