14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 *
24 */
25
26 #include "precompiled.hpp"
27 #include "jvm.h"
28 #include "asm/macroAssembler.inline.hpp"
29 #include "classfile/javaClasses.inline.hpp"
30 #include "interpreter/interpreter.hpp"
31 #include "memory/allocation.inline.hpp"
32 #include "memory/resourceArea.hpp"
33 #include "prims/methodHandles.hpp"
34 #include "utilities/preserveException.hpp"
35
36 #ifdef PRODUCT
37 #define __ _masm->
38 #define BLOCK_COMMENT(str) /* nothing */
39 #else
40 #define __ (Verbose ? (_masm->block_comment(FILE_AND_LINE),_masm):_masm)->
41 #define BLOCK_COMMENT(str) __ block_comment(str)
42 #endif
43
44 #define BIND(label) bind(label); BLOCK_COMMENT(#label ":")
45
46 // Workaround for C++ overloading nastiness on '0' for RegisterOrConstant.
47 static RegisterOrConstant constant(int value) {
48 return RegisterOrConstant(value);
49 }
50
51 void MethodHandles::load_klass_from_Class(MacroAssembler* _masm, Register klass_reg,
52 Register temp_reg, Register temp2_reg) {
53 if (VerifyMethodHandles) {
|
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 *
24 */
25
26 #include "precompiled.hpp"
27 #include "jvm.h"
28 #include "asm/macroAssembler.inline.hpp"
29 #include "classfile/javaClasses.inline.hpp"
30 #include "interpreter/interpreter.hpp"
31 #include "memory/allocation.inline.hpp"
32 #include "memory/resourceArea.hpp"
33 #include "prims/methodHandles.hpp"
34 #include "runtime/frame.inline.hpp"
35 #include "utilities/preserveException.hpp"
36
37 #ifdef PRODUCT
38 #define __ _masm->
39 #define BLOCK_COMMENT(str) /* nothing */
40 #else
41 #define __ (Verbose ? (_masm->block_comment(FILE_AND_LINE),_masm):_masm)->
42 #define BLOCK_COMMENT(str) __ block_comment(str)
43 #endif
44
45 #define BIND(label) bind(label); BLOCK_COMMENT(#label ":")
46
47 // Workaround for C++ overloading nastiness on '0' for RegisterOrConstant.
48 static RegisterOrConstant constant(int value) {
49 return RegisterOrConstant(value);
50 }
51
52 void MethodHandles::load_klass_from_Class(MacroAssembler* _masm, Register klass_reg,
53 Register temp_reg, Register temp2_reg) {
54 if (VerifyMethodHandles) {
|