< prev index next >
src/hotspot/share/opto/runtime.cpp
Print this page
*** 1189,1198 ****
--- 1189,1218 ----
fields = TypeTuple::fields(1);
fields[TypeFunc::Parms + 0] = NULL; // void
const TypeTuple* range = TypeTuple::make(TypeFunc::Parms, fields);
return TypeFunc::make(domain, range);
}
+ // Base64 decode function
+ const TypeFunc* OptoRuntime::base64_decodeBlock_Type() {
+ int argcnt = 5;
+
+ const Type** fields = TypeTuple::fields(argcnt);
+ int argp = TypeFunc::Parms;
+ fields[argp++] = TypePtr::NOTNULL; // src array
+ fields[argp++] = TypeInt::INT; // offset
+ fields[argp++] = TypeInt::INT; // length
+ fields[argp++] = TypePtr::NOTNULL; // dest array
+ fields[argp++] = TypeInt::BOOL; // isURL
+ assert(argp == TypeFunc::Parms + argcnt, "correct decoding");
+ const TypeTuple* domain = TypeTuple::make(TypeFunc::Parms+argcnt, fields);
+
+ // result type needed
+ fields = TypeTuple::fields(1);
+ fields[TypeFunc::Parms + 0] = TypeInt::INT; // dst ofs, or -1
+ const TypeTuple* range = TypeTuple::make(TypeFunc::Parms + 1, fields);
+ return TypeFunc::make(domain, range);
+ }
//------------- Interpreter state access for on stack replacement
const TypeFunc* OptoRuntime::osr_end_Type() {
// create input type (domain)
const Type **fields = TypeTuple::fields(1);
< prev index next >