src/share/vm/opto/c2compiler.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/share/vm/opto/c2compiler.hpp	Tue Jul 21 17:08:32 2015
--- new/src/share/vm/opto/c2compiler.hpp	Tue Jul 21 17:08:32 2015

*** 34,44 **** --- 34,43 ---- public: C2Compiler() : AbstractCompiler(c2) {} // Name const char *name() { return "C2"; } void initialize(); // Compilation entry point for methods void compile_method(ciEnv* env, ciMethod* target,
*** 50,59 **** --- 49,81 ---- static const char* retry_class_loading_during_parsing(); // Print compilation timers and statistics void print_timers(); + // Check the availability of an intrinsic for 'method' given a compilation context. + bool is_intrinsic_available(methodHandle method, methodHandle compilation_context); + // Check the availability of an intrinsic for a 'method' but ignore + // the compilation context. + bool is_intrinsic_available(methodHandle method) { + return is_intrinsic_available(method, NULL); + } + + // Is intrinsification of a method supported by the compiler + // assuming a non-virtual dispatch. + virtual bool is_intrinsic_supported(methodHandle method) { + return is_intrinsic_supported(method, false); + } + + // Check if the C2 compiler supports an intrinsic for 'method'. + virtual bool is_intrinsic_supported(methodHandle method, bool is_virtual); + + // Processing of command-line flags specific to the C1 compiler. + virtual bool is_intrinsic_disabled_by_flag(methodHandle method) { + return is_intrinsic_disabled_by_flag(method, NULL); + } + virtual bool is_intrinsic_disabled_by_flag(methodHandle method, methodHandle compilation_context); + // Initial size of the code buffer (may be increased at runtime) static int initial_code_buffer_size(); }; #endif // SHARE_VM_OPTO_C2COMPILER_HPP

src/share/vm/opto/c2compiler.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File