comparison src/cpu/sparc/vm/vm_version_sparc.hpp @ 2008:2f644f85485d

6961690: load oops from constant table on SPARC Summary: oops should be loaded from the constant table of an nmethod instead of materializing them with a long code sequence. Reviewed-by: never, kvn
author twisti
date Fri, 03 Dec 2010 01:34:31 -0800
parents f95d63e2154a
children c04052fd6ae1
comparison
equal deleted inserted replaced
2007:5ddfcf4b079e 2008:2f644f85485d
78 78
79 static bool is_niagara1(int features) { return (features & sun4v_m) != 0; } 79 static bool is_niagara1(int features) { return (features & sun4v_m) != 0; }
80 static bool is_sparc64(int features) { return (features & fmaf_instructions_m) != 0; } 80 static bool is_sparc64(int features) { return (features & fmaf_instructions_m) != 0; }
81 81
82 static int maximum_niagara1_processor_count() { return 32; } 82 static int maximum_niagara1_processor_count() { return 32; }
83 // Returns true if the platform is in the niagara line and
84 // newer than the niagara1.
85 static bool is_niagara1_plus();
86 83
87 public: 84 public:
88 // Initialization 85 // Initialization
89 static void initialize(); 86 static void initialize();
90 87
103 { return has_v9(); } 100 { return has_v9(); }
104 101
105 static bool is_ultra3() { return (_features & ultra3_m) == ultra3_m; } 102 static bool is_ultra3() { return (_features & ultra3_m) == ultra3_m; }
106 static bool is_sun4v() { return (_features & sun4v_m) != 0; } 103 static bool is_sun4v() { return (_features & sun4v_m) != 0; }
107 static bool is_niagara1() { return is_niagara1(_features); } 104 static bool is_niagara1() { return is_niagara1(_features); }
105 // Returns true if the platform is in the niagara line and
106 // newer than the niagara1.
107 static bool is_niagara1_plus();
108 static bool is_sparc64() { return is_sparc64(_features); } 108 static bool is_sparc64() { return is_sparc64(_features); }
109 109
110 static bool has_fast_fxtof() { return has_v9() && !is_ultra3(); } 110 static bool has_fast_fxtof() { return has_v9() && !is_ultra3(); }
111 static bool has_fast_idiv() { return is_niagara1_plus() || is_sparc64(); } 111 static bool has_fast_idiv() { return is_niagara1_plus() || is_sparc64(); }
112 112