1 /* |
1 /* |
2 * Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved. |
2 * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
282 template(park_event_name, "nativeParkEventPointer") \ |
282 template(park_event_name, "nativeParkEventPointer") \ |
283 template(cache_field_name, "cache") \ |
283 template(cache_field_name, "cache") \ |
284 template(value_name, "value") \ |
284 template(value_name, "value") \ |
285 template(frontCacheEnabled_name, "frontCacheEnabled") \ |
285 template(frontCacheEnabled_name, "frontCacheEnabled") \ |
286 template(stringCacheEnabled_name, "stringCacheEnabled") \ |
286 template(stringCacheEnabled_name, "stringCacheEnabled") \ |
|
287 template(bitCount_name, "bitCount") \ |
287 \ |
288 \ |
288 /* non-intrinsic name/signature pairs: */ \ |
289 /* non-intrinsic name/signature pairs: */ \ |
289 template(register_method_name, "register") \ |
290 template(register_method_name, "register") \ |
290 do_alias(register_method_signature, object_void_signature) \ |
291 do_alias(register_method_signature, object_void_signature) \ |
291 \ |
292 \ |
302 template(int_bool_signature, "(I)Z") \ |
303 template(int_bool_signature, "(I)Z") \ |
303 template(float_int_signature, "(F)I") \ |
304 template(float_int_signature, "(F)I") \ |
304 template(double_long_signature, "(D)J") \ |
305 template(double_long_signature, "(D)J") \ |
305 template(double_double_signature, "(D)D") \ |
306 template(double_double_signature, "(D)D") \ |
306 template(int_float_signature, "(I)F") \ |
307 template(int_float_signature, "(I)F") \ |
|
308 template(long_int_signature, "(J)I") \ |
307 template(long_long_signature, "(J)J") \ |
309 template(long_long_signature, "(J)J") \ |
308 template(long_double_signature, "(J)D") \ |
310 template(long_double_signature, "(J)D") \ |
309 template(byte_signature, "B") \ |
311 template(byte_signature, "B") \ |
310 template(char_signature, "C") \ |
312 template(char_signature, "C") \ |
311 template(double_signature, "D") \ |
313 template(double_signature, "D") \ |
505 do_name( doubleToRawLongBits_name, "doubleToRawLongBits") \ |
507 do_name( doubleToRawLongBits_name, "doubleToRawLongBits") \ |
506 do_intrinsic(_doubleToLongBits, java_lang_Double, doubleToLongBits_name, double_long_signature, F_S) \ |
508 do_intrinsic(_doubleToLongBits, java_lang_Double, doubleToLongBits_name, double_long_signature, F_S) \ |
507 do_name( doubleToLongBits_name, "doubleToLongBits") \ |
509 do_name( doubleToLongBits_name, "doubleToLongBits") \ |
508 do_intrinsic(_longBitsToDouble, java_lang_Double, longBitsToDouble_name, long_double_signature, F_S) \ |
510 do_intrinsic(_longBitsToDouble, java_lang_Double, longBitsToDouble_name, long_double_signature, F_S) \ |
509 do_name( longBitsToDouble_name, "longBitsToDouble") \ |
511 do_name( longBitsToDouble_name, "longBitsToDouble") \ |
|
512 \ |
|
513 do_intrinsic(_bitCount_i, java_lang_Integer, bitCount_name, int_int_signature, F_S) \ |
|
514 do_intrinsic(_bitCount_l, java_lang_Long, bitCount_name, long_int_signature, F_S) \ |
|
515 \ |
510 do_intrinsic(_reverseBytes_i, java_lang_Integer, reverseBytes_name, int_int_signature, F_S) \ |
516 do_intrinsic(_reverseBytes_i, java_lang_Integer, reverseBytes_name, int_int_signature, F_S) \ |
511 do_name( reverseBytes_name, "reverseBytes") \ |
517 do_name( reverseBytes_name, "reverseBytes") \ |
512 do_intrinsic(_reverseBytes_l, java_lang_Long, reverseBytes_name, long_long_signature, F_S) \ |
518 do_intrinsic(_reverseBytes_l, java_lang_Long, reverseBytes_name, long_long_signature, F_S) \ |
513 /* (symbol reverseBytes_name defined above) */ \ |
519 /* (symbol reverseBytes_name defined above) */ \ |
514 \ |
520 \ |
694 do_signature(putByte_raw_signature, "(JB)V") \ |
700 do_signature(putByte_raw_signature, "(JB)V") \ |
695 do_signature(getShort_raw_signature, "(J)S") \ |
701 do_signature(getShort_raw_signature, "(J)S") \ |
696 do_signature(putShort_raw_signature, "(JS)V") \ |
702 do_signature(putShort_raw_signature, "(JS)V") \ |
697 do_signature(getChar_raw_signature, "(J)C") \ |
703 do_signature(getChar_raw_signature, "(J)C") \ |
698 do_signature(putChar_raw_signature, "(JC)V") \ |
704 do_signature(putChar_raw_signature, "(JC)V") \ |
699 do_signature(getInt_raw_signature, "(J)I") \ |
|
700 do_signature(putInt_raw_signature, "(JI)V") \ |
705 do_signature(putInt_raw_signature, "(JI)V") \ |
701 do_alias(getLong_raw_signature, /*(J)J*/ long_long_signature) \ |
706 do_alias(getLong_raw_signature, /*(J)J*/ long_long_signature) \ |
702 do_alias(putLong_raw_signature, /*(JJ)V*/ long_long_void_signature) \ |
707 do_alias(putLong_raw_signature, /*(JJ)V*/ long_long_void_signature) \ |
703 do_signature(getFloat_raw_signature, "(J)F") \ |
708 do_signature(getFloat_raw_signature, "(J)F") \ |
704 do_signature(putFloat_raw_signature, "(JF)V") \ |
709 do_signature(putFloat_raw_signature, "(JF)V") \ |
711 do_name( putAddress_name, "putAddress") \ |
716 do_name( putAddress_name, "putAddress") \ |
712 \ |
717 \ |
713 do_intrinsic(_getByte_raw, sun_misc_Unsafe, getByte_name, getByte_raw_signature, F_RN) \ |
718 do_intrinsic(_getByte_raw, sun_misc_Unsafe, getByte_name, getByte_raw_signature, F_RN) \ |
714 do_intrinsic(_getShort_raw, sun_misc_Unsafe, getShort_name, getShort_raw_signature, F_RN) \ |
719 do_intrinsic(_getShort_raw, sun_misc_Unsafe, getShort_name, getShort_raw_signature, F_RN) \ |
715 do_intrinsic(_getChar_raw, sun_misc_Unsafe, getChar_name, getChar_raw_signature, F_RN) \ |
720 do_intrinsic(_getChar_raw, sun_misc_Unsafe, getChar_name, getChar_raw_signature, F_RN) \ |
716 do_intrinsic(_getInt_raw, sun_misc_Unsafe, getInt_name, getInt_raw_signature, F_RN) \ |
721 do_intrinsic(_getInt_raw, sun_misc_Unsafe, getInt_name, long_int_signature, F_RN) \ |
717 do_intrinsic(_getLong_raw, sun_misc_Unsafe, getLong_name, getLong_raw_signature, F_RN) \ |
722 do_intrinsic(_getLong_raw, sun_misc_Unsafe, getLong_name, getLong_raw_signature, F_RN) \ |
718 do_intrinsic(_getFloat_raw, sun_misc_Unsafe, getFloat_name, getFloat_raw_signature, F_RN) \ |
723 do_intrinsic(_getFloat_raw, sun_misc_Unsafe, getFloat_name, getFloat_raw_signature, F_RN) \ |
719 do_intrinsic(_getDouble_raw, sun_misc_Unsafe, getDouble_name, getDouble_raw_signature, F_RN) \ |
724 do_intrinsic(_getDouble_raw, sun_misc_Unsafe, getDouble_name, getDouble_raw_signature, F_RN) \ |
720 do_intrinsic(_getAddress_raw, sun_misc_Unsafe, getAddress_name, getAddress_raw_signature, F_RN) \ |
725 do_intrinsic(_getAddress_raw, sun_misc_Unsafe, getAddress_name, getAddress_raw_signature, F_RN) \ |
721 do_intrinsic(_putByte_raw, sun_misc_Unsafe, putByte_name, putByte_raw_signature, F_RN) \ |
726 do_intrinsic(_putByte_raw, sun_misc_Unsafe, putByte_name, putByte_raw_signature, F_RN) \ |