484 }
485 if (_ci_inline_records != NULL && _ci_inline_records->length() > 0) {
486 // Found inlining record for the requested method.
487 return _ci_inline_records;
488 }
489 line_no++;
490 }
491 return NULL;
492 }
493
494 // compile <klass> <name> <signature> <entry_bci> <comp_level> inline <count> <depth> <bci> <klass> <name> <signature> ...
495 void process_compile(TRAPS) {
496 Method* method = parse_method(CHECK);
497 if (had_error()) return;
498 int entry_bci = parse_int("entry_bci");
499 const char* comp_level_label = "comp_level";
500 int comp_level = parse_int(comp_level_label);
501 // old version w/o comp_level
502 if (had_error() && (error_message() == comp_level_label)) {
503 // use highest available tier
504 comp_level = TieredCompilation ? TieredStopAtLevel : CompLevel_highest_tier;
505 }
506 if (!is_valid_comp_level(comp_level)) {
507 return;
508 }
509 if (_imethod != NULL) {
510 // Replay Inlining
511 if (entry_bci != _entry_bci || comp_level != _comp_level) {
512 return;
513 }
514 const char* iklass_name = _imethod->method_holder()->name()->as_utf8();
515 const char* imethod_name = _imethod->name()->as_utf8();
516 const char* isignature = _imethod->signature()->as_utf8();
517 const char* klass_name = method->method_holder()->name()->as_utf8();
518 const char* method_name = method->name()->as_utf8();
519 const char* signature = method->signature()->as_utf8();
520 if (strcmp(iklass_name, klass_name) != 0 ||
521 strcmp(imethod_name, method_name) != 0 ||
522 strcmp(isignature, signature) != 0) {
523 return;
524 }
|
484 }
485 if (_ci_inline_records != NULL && _ci_inline_records->length() > 0) {
486 // Found inlining record for the requested method.
487 return _ci_inline_records;
488 }
489 line_no++;
490 }
491 return NULL;
492 }
493
494 // compile <klass> <name> <signature> <entry_bci> <comp_level> inline <count> <depth> <bci> <klass> <name> <signature> ...
495 void process_compile(TRAPS) {
496 Method* method = parse_method(CHECK);
497 if (had_error()) return;
498 int entry_bci = parse_int("entry_bci");
499 const char* comp_level_label = "comp_level";
500 int comp_level = parse_int(comp_level_label);
501 // old version w/o comp_level
502 if (had_error() && (error_message() == comp_level_label)) {
503 // use highest available tier
504 comp_level = TieredCompilation ? TieredStopAtLevel : (int) CompLevel_highest_tier;
505 }
506 if (!is_valid_comp_level(comp_level)) {
507 return;
508 }
509 if (_imethod != NULL) {
510 // Replay Inlining
511 if (entry_bci != _entry_bci || comp_level != _comp_level) {
512 return;
513 }
514 const char* iklass_name = _imethod->method_holder()->name()->as_utf8();
515 const char* imethod_name = _imethod->name()->as_utf8();
516 const char* isignature = _imethod->signature()->as_utf8();
517 const char* klass_name = method->method_holder()->name()->as_utf8();
518 const char* method_name = method->name()->as_utf8();
519 const char* signature = method->signature()->as_utf8();
520 if (strcmp(iklass_name, klass_name) != 0 ||
521 strcmp(imethod_name, method_name) != 0 ||
522 strcmp(isignature, signature) != 0) {
523 return;
524 }
|