1146 |
1146 |
1147 address code_start = static_cast<address>(bytecodes->adr_at(0)); |
1147 address code_start = static_cast<address>(bytecodes->adr_at(0)); |
1148 int code_length = bytecodes->length(); |
1148 int code_length = bytecodes->length(); |
1149 |
1149 |
1150 Method* m = Method::allocate(cp->pool_holder()->class_loader_data(), |
1150 Method* m = Method::allocate(cp->pool_holder()->class_loader_data(), |
1151 code_length, flags, 0, 0, 0, 0, mt, CHECK_NULL); |
1151 code_length, flags, 0, 0, 0, 0, 0, mt, CHECK_NULL); |
1152 |
1152 |
1153 m->set_constants(NULL); // This will get filled in later |
1153 m->set_constants(NULL); // This will get filled in later |
1154 m->set_name_index(cp->utf8(name)); |
1154 m->set_name_index(cp->utf8(name)); |
1155 m->set_signature_index(cp->utf8(sig)); |
1155 m->set_signature_index(cp->utf8(sig)); |
1156 m->set_generic_signature_index(0); |
|
1157 #ifdef CC_INTERP |
1156 #ifdef CC_INTERP |
1158 ResultTypeFinder rtf(sig); |
1157 ResultTypeFinder rtf(sig); |
1159 m->set_result_index(rtf.type()); |
1158 m->set_result_index(rtf.type()); |
1160 #endif |
1159 #endif |
1161 m->set_size_of_parameters(params); |
1160 m->set_size_of_parameters(params); |