comparison src/share/vm/opto/runtime.cpp @ 14404:6cc7093e1341

Merge
author kvn
date Thu, 11 Jul 2013 12:56:29 -0700
parents d2907f74462e b800986664f4
children cfd05ec74089
comparison
equal deleted inserted replaced
14403:75ef1a499665 14404:6cc7093e1341
1 /* 1 /*
2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. 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.
830 fields[TypeFunc::Parms+0] = NULL; // void 830 fields[TypeFunc::Parms+0] = NULL; // void
831 const TypeTuple* range = TypeTuple::make(TypeFunc::Parms, fields); 831 const TypeTuple* range = TypeTuple::make(TypeFunc::Parms, fields);
832 return TypeFunc::make(domain, range); 832 return TypeFunc::make(domain, range);
833 } 833 }
834 834
835 /**
836 * int updateBytesCRC32(int crc, byte* b, int len)
837 */
838 const TypeFunc* OptoRuntime::updateBytesCRC32_Type() {
839 // create input type (domain)
840 int num_args = 3;
841 int argcnt = num_args;
842 const Type** fields = TypeTuple::fields(argcnt);
843 int argp = TypeFunc::Parms;
844 fields[argp++] = TypeInt::INT; // crc
845 fields[argp++] = TypePtr::NOTNULL; // src
846 fields[argp++] = TypeInt::INT; // len
847 assert(argp == TypeFunc::Parms+argcnt, "correct decoding");
848 const TypeTuple* domain = TypeTuple::make(TypeFunc::Parms+argcnt, fields);
849
850 // result type needed
851 fields = TypeTuple::fields(1);
852 fields[TypeFunc::Parms+0] = TypeInt::INT; // crc result
853 const TypeTuple* range = TypeTuple::make(TypeFunc::Parms+1, fields);
854 return TypeFunc::make(domain, range);
855 }
856
835 // for cipherBlockChaining calls of aescrypt encrypt/decrypt, four pointers and a length, returning void 857 // for cipherBlockChaining calls of aescrypt encrypt/decrypt, four pointers and a length, returning void
836 const TypeFunc* OptoRuntime::cipherBlockChaining_aescrypt_Type() { 858 const TypeFunc* OptoRuntime::cipherBlockChaining_aescrypt_Type() {
837 // create input type (domain) 859 // create input type (domain)
838 int num_args = 5; 860 int num_args = 5;
839 int argcnt = num_args; 861 int argcnt = num_args;