comparison src/share/vm/opto/escape.cpp @ 6894:a3ecd773a7b9

7184394: add intrinsics to use AES instructions Summary: Use new x86 AES instructions for AESCrypt. Reviewed-by: twisti, kvn, roland Contributed-by: tom.deneau@amd.com
author kvn
date Wed, 24 Oct 2012 14:33:22 -0700
parents 8e47bac5643a
children 006174cfe979
comparison
equal deleted inserted replaced
6893:b2c669fd8114 6894:a3ecd773a7b9
891 // 891 //
892 bool arg_is_arraycopy_dest = src_has_oops && is_arraycopy && 892 bool arg_is_arraycopy_dest = src_has_oops && is_arraycopy &&
893 arg_has_oops && (i > TypeFunc::Parms); 893 arg_has_oops && (i > TypeFunc::Parms);
894 #ifdef ASSERT 894 #ifdef ASSERT
895 if (!(is_arraycopy || 895 if (!(is_arraycopy ||
896 call->as_CallLeaf()->_name != NULL && 896 (call->as_CallLeaf()->_name != NULL &&
897 (strcmp(call->as_CallLeaf()->_name, "g1_wb_pre") == 0 || 897 (strcmp(call->as_CallLeaf()->_name, "g1_wb_pre") == 0 ||
898 strcmp(call->as_CallLeaf()->_name, "g1_wb_post") == 0 )) 898 strcmp(call->as_CallLeaf()->_name, "g1_wb_post") == 0 ||
899 ) { 899 strcmp(call->as_CallLeaf()->_name, "aescrypt_encryptBlock") == 0 ||
900 strcmp(call->as_CallLeaf()->_name, "aescrypt_decryptBlock") == 0 ||
901 strcmp(call->as_CallLeaf()->_name, "cipherBlockChaining_encryptAESCrypt") == 0 ||
902 strcmp(call->as_CallLeaf()->_name, "cipherBlockChaining_decryptAESCrypt") == 0)
903 ))) {
900 call->dump(); 904 call->dump();
901 assert(false, "EA: unexpected CallLeaf"); 905 fatal(err_msg_res("EA unexpected CallLeaf %s", call->as_CallLeaf()->_name));
902 } 906 }
903 #endif 907 #endif
904 // Always process arraycopy's destination object since 908 // Always process arraycopy's destination object since
905 // we need to add all possible edges to references in 909 // we need to add all possible edges to references in
906 // source object. 910 // source object.