584 void set_do_count_invocations(bool z){ _do_count_invocations = z; } 585 bool do_method_data_update() const { return _do_method_data_update; } 586 void set_do_method_data_update(bool z) { _do_method_data_update = z; } 587 bool age_code() const { return _age_code; } 588 void set_age_code(bool z) { _age_code = z; } 589 int AliasLevel() const { return _AliasLevel; } 590 bool print_assembly() const { return _print_assembly; } 591 void set_print_assembly(bool z) { _print_assembly = z; } 592 bool print_inlining() const { return _print_inlining; } 593 void set_print_inlining(bool z) { _print_inlining = z; } 594 bool print_intrinsics() const { return _print_intrinsics; } 595 void set_print_intrinsics(bool z) { _print_intrinsics = z; } 596 RTMState rtm_state() const { return _rtm_state; } 597 void set_rtm_state(RTMState s) { _rtm_state = s; } 598 bool use_rtm() const { return (_rtm_state & NoRTM) == 0; } 599 bool profile_rtm() const { return _rtm_state == ProfileRTM; } 600 // check the CompilerOracle for special behaviours for this compile 601 bool method_has_option(const char * option) { 602 return method() != NULL && method()->has_option(option); 603 } 604 #ifndef PRODUCT 605 bool trace_opto_output() const { return _trace_opto_output; } 606 bool parsed_irreducible_loop() const { return _parsed_irreducible_loop; } 607 void set_parsed_irreducible_loop(bool z) { _parsed_irreducible_loop = z; } 608 int _in_dump_cnt; // Required for dumping ir nodes. 609 #endif 610 bool has_irreducible_loop() const { return _has_irreducible_loop; } 611 void set_has_irreducible_loop(bool z) { _has_irreducible_loop = z; } 612 613 // JSR 292 614 bool has_method_handle_invokes() const { return _has_method_handle_invokes; } 615 void set_has_method_handle_invokes(bool z) { _has_method_handle_invokes = z; } 616 617 Ticks _latest_stage_start_counter; 618 619 void begin_method() { 620 #ifndef PRODUCT 621 if (_printer) _printer->begin_method(this); 622 #endif 623 C->_latest_stage_start_counter.stamp(); | 584 void set_do_count_invocations(bool z){ _do_count_invocations = z; } 585 bool do_method_data_update() const { return _do_method_data_update; } 586 void set_do_method_data_update(bool z) { _do_method_data_update = z; } 587 bool age_code() const { return _age_code; } 588 void set_age_code(bool z) { _age_code = z; } 589 int AliasLevel() const { return _AliasLevel; } 590 bool print_assembly() const { return _print_assembly; } 591 void set_print_assembly(bool z) { _print_assembly = z; } 592 bool print_inlining() const { return _print_inlining; } 593 void set_print_inlining(bool z) { _print_inlining = z; } 594 bool print_intrinsics() const { return _print_intrinsics; } 595 void set_print_intrinsics(bool z) { _print_intrinsics = z; } 596 RTMState rtm_state() const { return _rtm_state; } 597 void set_rtm_state(RTMState s) { _rtm_state = s; } 598 bool use_rtm() const { return (_rtm_state & NoRTM) == 0; } 599 bool profile_rtm() const { return _rtm_state == ProfileRTM; } 600 // check the CompilerOracle for special behaviours for this compile 601 bool method_has_option(const char * option) { 602 return method() != NULL && method()->has_option(option); 603 } 604 template<typename T> 605 bool method_has_option_value(const char * option, T& value) { 606 return method() != NULL && method()->has_option_value(option, value); 607 } 608 #ifndef PRODUCT 609 bool trace_opto_output() const { return _trace_opto_output; } 610 bool parsed_irreducible_loop() const { return _parsed_irreducible_loop; } 611 void set_parsed_irreducible_loop(bool z) { _parsed_irreducible_loop = z; } 612 int _in_dump_cnt; // Required for dumping ir nodes. 613 #endif 614 bool has_irreducible_loop() const { return _has_irreducible_loop; } 615 void set_has_irreducible_loop(bool z) { _has_irreducible_loop = z; } 616 617 // JSR 292 618 bool has_method_handle_invokes() const { return _has_method_handle_invokes; } 619 void set_has_method_handle_invokes(bool z) { _has_method_handle_invokes = z; } 620 621 Ticks _latest_stage_start_counter; 622 623 void begin_method() { 624 #ifndef PRODUCT 625 if (_printer) _printer->begin_method(this); 626 #endif 627 C->_latest_stage_start_counter.stamp(); |