mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8303415: Add VM_Version::is_intrinsic_supported(id)
Reviewed-by: thartmann, dholmes
This commit is contained in:
parent
31680b2bcf
commit
ec1eb00ed3
25 changed files with 851 additions and 829 deletions
|
@ -74,6 +74,7 @@ class AbstractInterpreter: AllStatic {
|
|||
java_lang_math_tan, // implementation of java.lang.Math.tan (x)
|
||||
java_lang_math_abs, // implementation of java.lang.Math.abs (x)
|
||||
java_lang_math_sqrt, // implementation of java.lang.Math.sqrt (x)
|
||||
java_lang_math_sqrt_strict, // implementation of java.lang.StrictMath.sqrt(x)
|
||||
java_lang_math_log, // implementation of java.lang.Math.log (x)
|
||||
java_lang_math_log10, // implementation of java.lang.Math.log10 (x)
|
||||
java_lang_math_pow, // implementation of java.lang.Math.pow (x,y)
|
||||
|
@ -105,6 +106,9 @@ class AbstractInterpreter: AllStatic {
|
|||
return vmIntrinsics::_none;
|
||||
}
|
||||
|
||||
// Conversion from the above enum to vmIntrinsics::ID
|
||||
static vmIntrinsics::ID method_intrinsic(MethodKind kind);
|
||||
|
||||
enum SomeConstants {
|
||||
number_of_result_handlers = 10 // number of result handlers for native calls
|
||||
};
|
||||
|
@ -114,9 +118,6 @@ class AbstractInterpreter: AllStatic {
|
|||
|
||||
static bool _notice_safepoints; // true if safepoints are activated
|
||||
|
||||
static address _native_entry_begin; // Region for native entry code
|
||||
static address _native_entry_end;
|
||||
|
||||
// method entry points
|
||||
static address _entry_table[number_of_method_entries]; // entry points for a given method
|
||||
static address _native_abi_to_tosca[number_of_result_handlers]; // for native method result handlers
|
||||
|
@ -223,7 +224,6 @@ class AbstractInterpreter: AllStatic {
|
|||
static address slow_signature_handler() { return _slow_signature_handler; }
|
||||
static address result_handler(BasicType type) { return _native_abi_to_tosca[BasicType_as_index(type)]; }
|
||||
static int BasicType_as_index(BasicType type); // computes index into result_handler_by_index table
|
||||
static bool in_native_entry(address pc) { return _native_entry_begin <= pc && pc < _native_entry_end; }
|
||||
// Debugging/printing
|
||||
static void print(); // prints the interpreter code
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue