comparison src/share/vm/runtime/stubRoutines.hpp @ 1763:d6f45b55c972

4809552: Optimize Arrays.fill(...) Reviewed-by: kvn
author never
date Fri, 27 Aug 2010 17:33:49 -0700
parents c18cbe5936b8
children f95d63e2154a
comparison
equal deleted inserted replaced
1731:ee5cc9e78493 1763:d6f45b55c972
146 // these are recommended but optional: 146 // these are recommended but optional:
147 static address _checkcast_arraycopy; 147 static address _checkcast_arraycopy;
148 static address _unsafe_arraycopy; 148 static address _unsafe_arraycopy;
149 static address _generic_arraycopy; 149 static address _generic_arraycopy;
150 150
151 static address _jbyte_fill;
152 static address _jshort_fill;
153 static address _jint_fill;
154 static address _arrayof_jbyte_fill;
155 static address _arrayof_jshort_fill;
156 static address _arrayof_jint_fill;
157
151 // These are versions of the java.lang.Math methods which perform 158 // These are versions of the java.lang.Math methods which perform
152 // the same operations as the intrinsic version. They are used for 159 // the same operations as the intrinsic version. They are used for
153 // constant folding in the compiler to ensure equivalence. If the 160 // constant folding in the compiler to ensure equivalence. If the
154 // intrinsic version returns the same result as the strict version 161 // intrinsic version returns the same result as the strict version
155 // then they can be set to the appropriate function from 162 // then they can be set to the appropriate function from
257 264
258 static address checkcast_arraycopy() { return _checkcast_arraycopy; } 265 static address checkcast_arraycopy() { return _checkcast_arraycopy; }
259 static address unsafe_arraycopy() { return _unsafe_arraycopy; } 266 static address unsafe_arraycopy() { return _unsafe_arraycopy; }
260 static address generic_arraycopy() { return _generic_arraycopy; } 267 static address generic_arraycopy() { return _generic_arraycopy; }
261 268
269 static address jbyte_fill() { return _jbyte_fill; }
270 static address jshort_fill() { return _jshort_fill; }
271 static address jint_fill() { return _jint_fill; }
272 static address arrayof_jbyte_fill() { return _arrayof_jbyte_fill; }
273 static address arrayof_jshort_fill() { return _arrayof_jshort_fill; }
274 static address arrayof_jint_fill() { return _arrayof_jint_fill; }
275
276 static address select_fill_function(BasicType t, bool aligned, const char* &name);
277
278
262 static double intrinsic_log(double d) { 279 static double intrinsic_log(double d) {
263 assert(_intrinsic_log != NULL, "must be defined"); 280 assert(_intrinsic_log != NULL, "must be defined");
264 return _intrinsic_log(d); 281 return _intrinsic_log(d);
265 } 282 }
266 static double intrinsic_log10(double d) { 283 static double intrinsic_log10(double d) {