< prev index next >

src/hotspot/share/opto/library_call.hpp

Print this page

 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * version 2 for more details (a copy is included in the LICENSE file that
 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  *
 23  */
 24 
 25 #include "ci/ciMethod.hpp"
 26 #include "classfile/javaClasses.hpp"
 27 #include "opto/callGenerator.hpp"
 28 #include "opto/graphKit.hpp"
 29 #include "opto/castnode.hpp"
 30 #include "opto/convertnode.hpp"

 31 #include "opto/intrinsicnode.hpp"
 32 #include "opto/movenode.hpp"
 33 
 34 class LibraryIntrinsic : public InlineCallGenerator {
 35   // Extend the set of intrinsics known to the runtime:
 36  public:
 37  private:
 38   bool             _is_virtual;
 39   bool             _does_virtual_dispatch;
 40   int8_t           _predicates_count;  // Intrinsic is predicated by several conditions
 41   int8_t           _last_predicate; // Last generated predicate
 42   vmIntrinsics::ID _intrinsic_id;
 43 
 44  public:
 45   LibraryIntrinsic(ciMethod* m, bool is_virtual, int predicates_count, bool does_virtual_dispatch, vmIntrinsics::ID id)
 46     : InlineCallGenerator(m),
 47       _is_virtual(is_virtual),
 48       _does_virtual_dispatch(does_virtual_dispatch),
 49       _predicates_count((int8_t)predicates_count),
 50       _last_predicate((int8_t)-1),

 88       ciSignature* declared_signature = nullptr;
 89       ciMethod* ignored_callee = caller()->get_method_at_bci(bci(), ignored_will_link, &declared_signature);
 90       const int nargs = declared_signature->arg_size_for_bc(caller()->java_code_at_bci(bci()));
 91       _reexecute_sp = sp() + nargs;  // "push" arguments back on stack
 92     }
 93   }
 94 
 95   virtual LibraryCallKit* is_LibraryCallKit() const { return (LibraryCallKit*)this; }
 96 
 97   ciMethod*         caller()    const    { return jvms()->method(); }
 98   int               bci()       const    { return jvms()->bci(); }
 99   LibraryIntrinsic* intrinsic() const    { return _intrinsic; }
100   vmIntrinsics::ID  intrinsic_id() const { return _intrinsic->intrinsic_id(); }
101   ciMethod*         callee()    const    { return _intrinsic->method(); }
102 
103   bool  try_to_inline(int predicate);
104   Node* try_to_predicate(int predicate);
105 
106   void push_result() {
107     // Push the result onto the stack.
108     if (!stopped() && result() != nullptr) {
109       BasicType bt = result()->bottom_type()->basic_type();
110       push_node(bt, result());








111     }
112   }
113 
114  private:
115   void fatal_unexpected_iid(vmIntrinsics::ID iid) {
116     fatal("unexpected intrinsic %d: %s", vmIntrinsics::as_int(iid), vmIntrinsics::name_at(iid));
117   }
118 
119   void  set_result(Node* n) { assert(_result == nullptr, "only set once"); _result = n; }
120   void  set_result(RegionNode* region, PhiNode* value);
121   Node*     result() { return _result; }
122 
123   virtual int reexecute_sp() { return _reexecute_sp; }
124 
125   // Helper functions to inline natives
126   Node* generate_guard(Node* test, RegionNode* region, float true_prob);
127   Node* generate_slow_guard(Node* test, RegionNode* region);
128   Node* generate_fair_guard(Node* test, RegionNode* region);
129   Node* generate_negative_guard(Node* index, RegionNode* region,
130                                 // resulting CastII of index:
131                                 Node* *pos_index = nullptr);
132   Node* generate_limit_guard(Node* offset, Node* subseq_length,
133                              Node* array_length,
134                              RegionNode* region);
135   void  generate_string_range_check(Node* array, Node* offset,
136                                     Node* length, bool char_count);
137   Node* current_thread_helper(Node* &tls_output, ByteSize handle_offset,
138                               bool is_immutable);
139   Node* generate_current_thread(Node* &tls_output);
140   Node* generate_virtual_thread(Node* threadObj);
141   Node* load_mirror_from_klass(Node* klass);
142   Node* load_klass_from_mirror_common(Node* mirror, bool never_see_null,
143                                       RegionNode* region, int null_path,
144                                       int offset);
145   Node* load_klass_from_mirror(Node* mirror, bool never_see_null,
146                                RegionNode* region, int null_path) {
147     int offset = java_lang_Class::klass_offset();
148     return load_klass_from_mirror_common(mirror, never_see_null,
149                                          region, null_path,
150                                          offset);
151   }
152   Node* load_array_klass_from_mirror(Node* mirror, bool never_see_null,
153                                      RegionNode* region, int null_path) {
154     int offset = java_lang_Class::array_klass_offset();
155     return load_klass_from_mirror_common(mirror, never_see_null,
156                                          region, null_path,
157                                          offset);
158   }
159   Node* generate_klass_flags_guard(Node* kls, int modifier_mask, int modifier_bits, RegionNode* region,
160                                    ByteSize offset, const Type* type, BasicType bt);
161   Node* generate_misc_flags_guard(Node* kls,
162                                   int modifier_mask, int modifier_bits,
163                                   RegionNode* region);
164   Node* generate_interface_guard(Node* kls, RegionNode* region);









165   Node* generate_hidden_class_guard(Node* kls, RegionNode* region);

166   Node* generate_array_guard(Node* kls, RegionNode* region) {
167     return generate_array_guard_common(kls, region, false, false);
168   }
169   Node* generate_non_array_guard(Node* kls, RegionNode* region) {
170     return generate_array_guard_common(kls, region, false, true);
171   }
172   Node* generate_objArray_guard(Node* kls, RegionNode* region) {
173     return generate_array_guard_common(kls, region, true, false);
174   }
175   Node* generate_non_objArray_guard(Node* kls, RegionNode* region) {
176     return generate_array_guard_common(kls, region, true, true);



177   }
178   Node* generate_array_guard_common(Node* kls, RegionNode* region,
179                                     bool obj_array, bool not_array);
180   Node* generate_virtual_guard(Node* obj_klass, RegionNode* slow_region);
181   CallJavaNode* generate_method_call(vmIntrinsicID method_id, bool is_virtual, bool is_static, bool res_not_null);
182   CallJavaNode* generate_method_call_static(vmIntrinsicID method_id, bool res_not_null) {
183     return generate_method_call(method_id, false, true, res_not_null);
184   }
185   Node* load_field_from_object(Node* fromObj, const char* fieldName, const char* fieldTypeString, DecoratorSet decorators = IN_HEAP, bool is_static = false, ciInstanceKlass* fromKls = nullptr);
186   Node* field_address_from_object(Node* fromObj, const char* fieldName, const char* fieldTypeString, bool is_exact = true, bool is_static = false, ciInstanceKlass* fromKls = nullptr);
187 
188   Node* make_string_method_node(int opcode, Node* str1_start, Node* cnt1, Node* str2_start, Node* cnt2, StrIntrinsicNode::ArgEnc ae);
189   bool inline_string_compareTo(StrIntrinsicNode::ArgEnc ae);
190   bool inline_string_indexOf(StrIntrinsicNode::ArgEnc ae);
191   bool inline_string_indexOfI(StrIntrinsicNode::ArgEnc ae);
192   Node* make_indexOf_node(Node* src_start, Node* src_count, Node* tgt_start, Node* tgt_count,
193                           RegionNode* region, Node* phi, StrIntrinsicNode::ArgEnc ae);
194   bool inline_string_indexOfChar(StrIntrinsicNode::ArgEnc ae);
195   bool inline_string_equals(StrIntrinsicNode::ArgEnc ae);
196   bool inline_vectorizedHashCode();
197   bool inline_string_toBytesU();
198   bool inline_string_getCharsU();
199   bool inline_string_copy(bool compress);

209   void inline_math_mathExact(Node* math, Node* test);
210   bool inline_math_addExactI(bool is_increment);
211   bool inline_math_addExactL(bool is_increment);
212   bool inline_math_multiplyExactI();
213   bool inline_math_multiplyExactL();
214   bool inline_math_multiplyHigh();
215   bool inline_math_unsignedMultiplyHigh();
216   bool inline_math_negateExactI();
217   bool inline_math_negateExactL();
218   bool inline_math_subtractExactI(bool is_decrement);
219   bool inline_math_subtractExactL(bool is_decrement);
220   bool inline_min_max(vmIntrinsics::ID id);
221   bool inline_notify(vmIntrinsics::ID id);
222   Node* generate_min_max(vmIntrinsics::ID id, Node* x, Node* y);
223   // This returns Type::AnyPtr, RawPtr, or OopPtr.
224   int classify_unsafe_addr(Node* &base, Node* &offset, BasicType type);
225   Node* make_unsafe_address(Node*& base, Node* offset, BasicType type = T_ILLEGAL, bool can_cast = false);
226 
227   typedef enum { Relaxed, Opaque, Volatile, Acquire, Release } AccessKind;
228   DecoratorSet mo_decorator_for_access_kind(AccessKind kind);
229   bool inline_unsafe_access(bool is_store, BasicType type, AccessKind kind, bool is_unaligned);
230   static bool klass_needs_init_guard(Node* kls);
231   bool inline_unsafe_allocate();
232   bool inline_unsafe_newArray(bool uninitialized);

233   bool inline_unsafe_writeback0();
234   bool inline_unsafe_writebackSync0(bool is_pre);
235   bool inline_unsafe_copyMemory();



236   bool inline_unsafe_setMemory();
237 
238   bool inline_native_currentCarrierThread();
239   bool inline_native_currentThread();
240   bool inline_native_setCurrentThread();
241 
242   bool inline_native_scopedValueCache();
243   const Type* scopedValueCache_type();
244   Node* scopedValueCache_helper();
245   bool inline_native_setScopedValueCache();
246   bool inline_native_Continuation_pinning(bool unpin);
247 
248   bool inline_native_time_funcs(address method, const char* funcName);
249 #if INCLUDE_JVMTI
250   bool inline_native_notify_jvmti_funcs(address funcAddr, const char* funcName, bool is_start, bool is_end);
251   bool inline_native_notify_jvmti_hide();
252   bool inline_native_notify_jvmti_sync();
253 #endif
254 
255 #ifdef JFR_HAVE_INTRINSICS
256   bool inline_native_classID();
257   bool inline_native_getEventWriter();
258   bool inline_native_jvm_commit();
259   void extend_setCurrentThread(Node* jt, Node* thread);
260 #endif
261   bool inline_native_Class_query(vmIntrinsics::ID id);

262   bool inline_native_subtype_check();
263   bool inline_native_getLength();
264   bool inline_array_copyOf(bool is_copyOfRange);
265   bool inline_array_equals(StrIntrinsicNode::ArgEnc ae);
266   bool inline_preconditions_checkIndex(BasicType bt);
267   void copy_to_clone(Node* obj, Node* alloc_obj, Node* obj_size, bool is_array);
268   bool inline_native_clone(bool is_virtual);
269   bool inline_native_Reflection_getCallerClass();
270   // Helper function for inlining native object hash method
271   bool inline_native_hashcode(bool is_virtual, bool is_static);
272   bool inline_native_getClass();
273 
274   // Helper functions for inlining arraycopy
275   bool inline_arraycopy();
276   AllocateArrayNode* tightly_coupled_allocation(Node* ptr);
277   static CallStaticJavaNode* get_uncommon_trap_from_success_proj(Node* node);
278   SafePointNode* create_safepoint_with_state_before_array_allocation(const AllocateArrayNode* alloc) const;
279   void replace_unrelated_uncommon_traps_with_alloc_state(AllocateArrayNode* alloc, JVMState* saved_jvms_before_guards);
280   void replace_unrelated_uncommon_traps_with_alloc_state(JVMState* saved_jvms_before_guards);
281   void create_new_uncommon_trap(CallStaticJavaNode* uncommon_trap_call);

 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * version 2 for more details (a copy is included in the LICENSE file that
 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  *
 23  */
 24 
 25 #include "ci/ciMethod.hpp"
 26 #include "classfile/javaClasses.hpp"
 27 #include "opto/callGenerator.hpp"
 28 #include "opto/graphKit.hpp"
 29 #include "opto/castnode.hpp"
 30 #include "opto/convertnode.hpp"
 31 #include "opto/inlinetypenode.hpp"
 32 #include "opto/intrinsicnode.hpp"
 33 #include "opto/movenode.hpp"
 34 
 35 class LibraryIntrinsic : public InlineCallGenerator {
 36   // Extend the set of intrinsics known to the runtime:
 37  public:
 38  private:
 39   bool             _is_virtual;
 40   bool             _does_virtual_dispatch;
 41   int8_t           _predicates_count;  // Intrinsic is predicated by several conditions
 42   int8_t           _last_predicate; // Last generated predicate
 43   vmIntrinsics::ID _intrinsic_id;
 44 
 45  public:
 46   LibraryIntrinsic(ciMethod* m, bool is_virtual, int predicates_count, bool does_virtual_dispatch, vmIntrinsics::ID id)
 47     : InlineCallGenerator(m),
 48       _is_virtual(is_virtual),
 49       _does_virtual_dispatch(does_virtual_dispatch),
 50       _predicates_count((int8_t)predicates_count),
 51       _last_predicate((int8_t)-1),

 89       ciSignature* declared_signature = nullptr;
 90       ciMethod* ignored_callee = caller()->get_method_at_bci(bci(), ignored_will_link, &declared_signature);
 91       const int nargs = declared_signature->arg_size_for_bc(caller()->java_code_at_bci(bci()));
 92       _reexecute_sp = sp() + nargs;  // "push" arguments back on stack
 93     }
 94   }
 95 
 96   virtual LibraryCallKit* is_LibraryCallKit() const { return (LibraryCallKit*)this; }
 97 
 98   ciMethod*         caller()    const    { return jvms()->method(); }
 99   int               bci()       const    { return jvms()->bci(); }
100   LibraryIntrinsic* intrinsic() const    { return _intrinsic; }
101   vmIntrinsics::ID  intrinsic_id() const { return _intrinsic->intrinsic_id(); }
102   ciMethod*         callee()    const    { return _intrinsic->method(); }
103 
104   bool  try_to_inline(int predicate);
105   Node* try_to_predicate(int predicate);
106 
107   void push_result() {
108     // Push the result onto the stack.
109     Node* res = result();
110     if (!stopped() && res != nullptr) {
111       BasicType bt = res->bottom_type()->basic_type();
112       if (C->inlining_incrementally() && res->is_InlineType()) {
113         // The caller expects an oop when incrementally inlining an intrinsic that returns an
114         // inline type. Make sure the call is re-executed if the allocation triggers a deoptimization.
115         PreserveReexecuteState preexecs(this);
116         jvms()->set_should_reexecute(true);
117         res = res->as_InlineType()->buffer(this);
118       }
119       push_node(bt, res);
120     }
121   }
122 
123  private:
124   void fatal_unexpected_iid(vmIntrinsics::ID iid) {
125     fatal("unexpected intrinsic %d: %s", vmIntrinsics::as_int(iid), vmIntrinsics::name_at(iid));
126   }
127 
128   void  set_result(Node* n) { assert(_result == nullptr, "only set once"); _result = n; }
129   void  set_result(RegionNode* region, PhiNode* value);
130   Node*     result() { return _result; }
131 
132   virtual int reexecute_sp() { return _reexecute_sp; }
133 
134   // Helper functions to inline natives
135   Node* generate_guard(Node* test, RegionNode* region, float true_prob);
136   Node* generate_slow_guard(Node* test, RegionNode* region);
137   Node* generate_fair_guard(Node* test, RegionNode* region);
138   Node* generate_negative_guard(Node* index, RegionNode* region,
139                                 // resulting CastII of index:
140                                 Node* *pos_index = nullptr);
141   Node* generate_limit_guard(Node* offset, Node* subseq_length,
142                              Node* array_length,
143                              RegionNode* region);
144   void  generate_string_range_check(Node* array, Node* offset,
145                                     Node* length, bool char_count);
146   Node* current_thread_helper(Node* &tls_output, ByteSize handle_offset,
147                               bool is_immutable);
148   Node* generate_current_thread(Node* &tls_output);
149   Node* generate_virtual_thread(Node* threadObj);

150   Node* load_klass_from_mirror_common(Node* mirror, bool never_see_null,
151                                       RegionNode* region, int null_path,
152                                       int offset);
153   Node* load_klass_from_mirror(Node* mirror, bool never_see_null,
154                                RegionNode* region, int null_path) {
155     int offset = java_lang_Class::klass_offset();
156     return load_klass_from_mirror_common(mirror, never_see_null,
157                                          region, null_path,
158                                          offset);
159   }
160   Node* load_array_klass_from_mirror(Node* mirror, bool never_see_null,
161                                      RegionNode* region, int null_path) {
162     int offset = java_lang_Class::array_klass_offset();
163     return load_klass_from_mirror_common(mirror, never_see_null,
164                                          region, null_path,
165                                          offset);
166   }
167   Node* generate_klass_flags_guard(Node* kls, int modifier_mask, int modifier_bits, RegionNode* region,
168                                    ByteSize offset, const Type* type, BasicType bt);
169   Node* generate_misc_flags_guard(Node* kls,
170                                   int modifier_mask, int modifier_bits,
171                                   RegionNode* region);
172   Node* generate_interface_guard(Node* kls, RegionNode* region);
173 
174   enum ArrayKind {
175     AnyArray,
176     NonArray,
177     ObjectArray,
178     NonObjectArray,
179     TypeArray
180   };
181 
182   Node* generate_hidden_class_guard(Node* kls, RegionNode* region);
183 
184   Node* generate_array_guard(Node* kls, RegionNode* region) {
185     return generate_array_guard_common(kls, region, AnyArray);
186   }
187   Node* generate_non_array_guard(Node* kls, RegionNode* region) {
188     return generate_array_guard_common(kls, region, NonArray);
189   }
190   Node* generate_objArray_guard(Node* kls, RegionNode* region) {
191     return generate_array_guard_common(kls, region, ObjectArray);
192   }
193   Node* generate_non_objArray_guard(Node* kls, RegionNode* region) {
194     return generate_array_guard_common(kls, region, NonObjectArray);
195   }
196   Node* generate_typeArray_guard(Node* kls, RegionNode* region) {
197     return generate_array_guard_common(kls, region, TypeArray);
198   }
199   Node* generate_array_guard_common(Node* kls, RegionNode* region, ArrayKind kind);

200   Node* generate_virtual_guard(Node* obj_klass, RegionNode* slow_region);
201   CallJavaNode* generate_method_call(vmIntrinsicID method_id, bool is_virtual, bool is_static, bool res_not_null);
202   CallJavaNode* generate_method_call_static(vmIntrinsicID method_id, bool res_not_null) {
203     return generate_method_call(method_id, false, true, res_not_null);
204   }
205   Node* load_field_from_object(Node* fromObj, const char* fieldName, const char* fieldTypeString, DecoratorSet decorators = IN_HEAP, bool is_static = false, ciInstanceKlass* fromKls = nullptr);
206   Node* field_address_from_object(Node* fromObj, const char* fieldName, const char* fieldTypeString, bool is_exact = true, bool is_static = false, ciInstanceKlass* fromKls = nullptr);
207 
208   Node* make_string_method_node(int opcode, Node* str1_start, Node* cnt1, Node* str2_start, Node* cnt2, StrIntrinsicNode::ArgEnc ae);
209   bool inline_string_compareTo(StrIntrinsicNode::ArgEnc ae);
210   bool inline_string_indexOf(StrIntrinsicNode::ArgEnc ae);
211   bool inline_string_indexOfI(StrIntrinsicNode::ArgEnc ae);
212   Node* make_indexOf_node(Node* src_start, Node* src_count, Node* tgt_start, Node* tgt_count,
213                           RegionNode* region, Node* phi, StrIntrinsicNode::ArgEnc ae);
214   bool inline_string_indexOfChar(StrIntrinsicNode::ArgEnc ae);
215   bool inline_string_equals(StrIntrinsicNode::ArgEnc ae);
216   bool inline_vectorizedHashCode();
217   bool inline_string_toBytesU();
218   bool inline_string_getCharsU();
219   bool inline_string_copy(bool compress);

229   void inline_math_mathExact(Node* math, Node* test);
230   bool inline_math_addExactI(bool is_increment);
231   bool inline_math_addExactL(bool is_increment);
232   bool inline_math_multiplyExactI();
233   bool inline_math_multiplyExactL();
234   bool inline_math_multiplyHigh();
235   bool inline_math_unsignedMultiplyHigh();
236   bool inline_math_negateExactI();
237   bool inline_math_negateExactL();
238   bool inline_math_subtractExactI(bool is_decrement);
239   bool inline_math_subtractExactL(bool is_decrement);
240   bool inline_min_max(vmIntrinsics::ID id);
241   bool inline_notify(vmIntrinsics::ID id);
242   Node* generate_min_max(vmIntrinsics::ID id, Node* x, Node* y);
243   // This returns Type::AnyPtr, RawPtr, or OopPtr.
244   int classify_unsafe_addr(Node* &base, Node* &offset, BasicType type);
245   Node* make_unsafe_address(Node*& base, Node* offset, BasicType type = T_ILLEGAL, bool can_cast = false);
246 
247   typedef enum { Relaxed, Opaque, Volatile, Acquire, Release } AccessKind;
248   DecoratorSet mo_decorator_for_access_kind(AccessKind kind);
249   bool inline_unsafe_access(bool is_store, BasicType type, AccessKind kind, bool is_unaligned, bool is_flat = false);
250   static bool klass_needs_init_guard(Node* kls);
251   bool inline_unsafe_allocate();
252   bool inline_unsafe_newArray(bool uninitialized);
253   bool inline_newNullRestrictedArray();
254   bool inline_unsafe_writeback0();
255   bool inline_unsafe_writebackSync0(bool is_pre);
256   bool inline_unsafe_copyMemory();
257   bool inline_unsafe_isFlatArray();
258   bool inline_unsafe_make_private_buffer();
259   bool inline_unsafe_finish_private_buffer();
260   bool inline_unsafe_setMemory();
261 
262   bool inline_native_currentCarrierThread();
263   bool inline_native_currentThread();
264   bool inline_native_setCurrentThread();
265 
266   bool inline_native_scopedValueCache();
267   const Type* scopedValueCache_type();
268   Node* scopedValueCache_helper();
269   bool inline_native_setScopedValueCache();
270   bool inline_native_Continuation_pinning(bool unpin);
271 
272   bool inline_native_time_funcs(address method, const char* funcName);
273 #if INCLUDE_JVMTI
274   bool inline_native_notify_jvmti_funcs(address funcAddr, const char* funcName, bool is_start, bool is_end);
275   bool inline_native_notify_jvmti_hide();
276   bool inline_native_notify_jvmti_sync();
277 #endif
278 
279 #ifdef JFR_HAVE_INTRINSICS
280   bool inline_native_classID();
281   bool inline_native_getEventWriter();
282   bool inline_native_jvm_commit();
283   void extend_setCurrentThread(Node* jt, Node* thread);
284 #endif
285   bool inline_native_Class_query(vmIntrinsics::ID id);
286   bool inline_primitive_Class_conversion(vmIntrinsics::ID id);
287   bool inline_native_subtype_check();
288   bool inline_native_getLength();
289   bool inline_array_copyOf(bool is_copyOfRange);
290   bool inline_array_equals(StrIntrinsicNode::ArgEnc ae);
291   bool inline_preconditions_checkIndex(BasicType bt);
292   void copy_to_clone(Node* obj, Node* alloc_obj, Node* obj_size, bool is_array);
293   bool inline_native_clone(bool is_virtual);
294   bool inline_native_Reflection_getCallerClass();
295   // Helper function for inlining native object hash method
296   bool inline_native_hashcode(bool is_virtual, bool is_static);
297   bool inline_native_getClass();
298 
299   // Helper functions for inlining arraycopy
300   bool inline_arraycopy();
301   AllocateArrayNode* tightly_coupled_allocation(Node* ptr);
302   static CallStaticJavaNode* get_uncommon_trap_from_success_proj(Node* node);
303   SafePointNode* create_safepoint_with_state_before_array_allocation(const AllocateArrayNode* alloc) const;
304   void replace_unrelated_uncommon_traps_with_alloc_state(AllocateArrayNode* alloc, JVMState* saved_jvms_before_guards);
305   void replace_unrelated_uncommon_traps_with_alloc_state(JVMState* saved_jvms_before_guards);
306   void create_new_uncommon_trap(CallStaticJavaNode* uncommon_trap_call);
< prev index next >