hotspot/src/share/vm/asm/assembler.hpp
changeset 40040 7644f470d923
parent 37466 287c4ebd11b0
child 40093 f94d179a730b
--- a/hotspot/src/share/vm/asm/assembler.hpp	Wed Jun 29 18:04:04 2016 +0300
+++ b/hotspot/src/share/vm/asm/assembler.hpp	Thu Jun 30 08:24:51 2016 +0200
@@ -337,6 +337,15 @@
   //
   // We must remember the code section (insts or stubs) in c1
   // so we can reset to the proper section in end_a_const().
+  address int_constant(jint c) {
+    CodeSection* c1 = _code_section;
+    address ptr = start_a_const(sizeof(c), sizeof(c));
+    if (ptr != NULL) {
+      emit_int32(c);
+      end_a_const(c1);
+    }
+    return ptr;
+  }
   address long_constant(jlong c) {
     CodeSection* c1 = _code_section;
     address ptr = start_a_const(sizeof(c), sizeof(c));