equal
deleted
inserted
replaced
37 #include "oops/arrayOop.inline.hpp" |
37 #include "oops/arrayOop.inline.hpp" |
38 #include "oops/oop.inline.hpp" |
38 #include "oops/oop.inline.hpp" |
39 #include "oops/objArrayOop.inline.hpp" |
39 #include "oops/objArrayOop.inline.hpp" |
40 #include "oops/typeArrayOop.inline.hpp" |
40 #include "oops/typeArrayOop.inline.hpp" |
41 #include "runtime/javaCalls.hpp" |
41 #include "runtime/javaCalls.hpp" |
|
42 #include "runtime/jniHandles.inline.hpp" |
42 #include "runtime/safepointMechanism.inline.hpp" |
43 #include "runtime/safepointMechanism.inline.hpp" |
43 #include "utilities/align.hpp" |
44 #include "utilities/align.hpp" |
44 |
45 |
45 // frequently used constants |
46 // frequently used constants |
46 // Allocate them with new so they are never destroyed (otherwise, a |
47 // Allocate them with new so they are never destroyed (otherwise, a |
93 return vmReg; |
94 return vmReg; |
94 } else { |
95 } else { |
95 JVMCI_ERROR_NULL("unaligned stack offset %d in oop map", offset); |
96 JVMCI_ERROR_NULL("unaligned stack offset %d in oop map", offset); |
96 } |
97 } |
97 } |
98 } |
|
99 } |
|
100 |
|
101 objArrayOop CodeInstaller::sites() { |
|
102 return (objArrayOop) JNIHandles::resolve(_sites_handle); |
|
103 } |
|
104 |
|
105 arrayOop CodeInstaller::code() { |
|
106 return (arrayOop) JNIHandles::resolve(_code_handle); |
|
107 } |
|
108 |
|
109 arrayOop CodeInstaller::data_section() { |
|
110 return (arrayOop) JNIHandles::resolve(_data_section_handle); |
|
111 } |
|
112 |
|
113 objArrayOop CodeInstaller::data_section_patches() { |
|
114 return (objArrayOop) JNIHandles::resolve(_data_section_patches_handle); |
|
115 } |
|
116 |
|
117 #ifndef PRODUCT |
|
118 objArrayOop CodeInstaller::comments() { |
|
119 return (objArrayOop) JNIHandles::resolve(_comments_handle); |
|
120 } |
|
121 #endif |
|
122 |
|
123 oop CodeInstaller::word_kind() { |
|
124 return JNIHandles::resolve(_word_kind_handle); |
98 } |
125 } |
99 |
126 |
100 // creates a HotSpot oop map out of the byte arrays provided by DebugInfo |
127 // creates a HotSpot oop map out of the byte arrays provided by DebugInfo |
101 OopMap* CodeInstaller::create_oop_map(Handle debug_info, TRAPS) { |
128 OopMap* CodeInstaller::create_oop_map(Handle debug_info, TRAPS) { |
102 Handle reference_map(THREAD, DebugInfo::referenceMap(debug_info)); |
129 Handle reference_map(THREAD, DebugInfo::referenceMap(debug_info)); |