src/share/vm/ci/ciMethod.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff src/share/vm/ci/ciMethod.cpp
src/share/vm/ci/ciMethod.cpp
Print this page
rev 9003 : 8137167: JEP165: Compiler Control: Implementation task
Summary:
Reviewed-by:
*** 33,43 ****
#include "ci/ciSymbol.hpp"
#include "ci/ciReplay.hpp"
#include "ci/ciUtilities.hpp"
#include "classfile/systemDictionary.hpp"
#include "compiler/abstractCompiler.hpp"
- #include "compiler/compilerOracle.hpp"
#include "compiler/methodLiveness.hpp"
#include "interpreter/interpreter.hpp"
#include "interpreter/linkResolver.hpp"
#include "interpreter/oopMapCache.hpp"
#include "memory/allocation.inline.hpp"
--- 33,42 ----
*** 1042,1096 ****
MethodCounters* method_counters = mh->get_method_counters(CHECK_NULL);
return method_counters;
}
// ------------------------------------------------------------------
- // ciMethod::should_inline
- //
- // Should this method be inlined during compilation?
- bool ciMethod::should_inline() {
- check_is_loaded();
- VM_ENTRY_MARK;
- methodHandle mh(THREAD, get_Method());
- return CompilerOracle::should_inline(mh);
- }
-
- // ------------------------------------------------------------------
- // ciMethod::should_not_inline
- //
- // Should this method be disallowed from inlining during compilation?
- bool ciMethod::should_not_inline() {
- check_is_loaded();
- VM_ENTRY_MARK;
- methodHandle mh(THREAD, get_Method());
- return CompilerOracle::should_not_inline(mh);
- }
-
- // ------------------------------------------------------------------
- // ciMethod::should_print_assembly
- //
- // Should the compiler print the generated code for this method?
- bool ciMethod::should_print_assembly() {
- check_is_loaded();
- VM_ENTRY_MARK;
- methodHandle mh(THREAD, get_Method());
- return CompilerOracle::should_print(mh);
- }
-
- // ------------------------------------------------------------------
- // ciMethod::break_at_execute
- //
- // Should the compiler insert a breakpoint into the generated code
- // method?
- bool ciMethod::break_at_execute() {
- check_is_loaded();
- VM_ENTRY_MARK;
- methodHandle mh(THREAD, get_Method());
- return CompilerOracle::should_break_at(mh);
- }
-
- // ------------------------------------------------------------------
// ciMethod::has_option
//
bool ciMethod::has_option(const char* option) {
check_is_loaded();
VM_ENTRY_MARK;
--- 1041,1050 ----
*** 1099,1122 ****
}
// ------------------------------------------------------------------
// ciMethod::has_option_value
//
! template<typename T>
! bool ciMethod::has_option_value(const char* option, T& value) {
check_is_loaded();
VM_ENTRY_MARK;
methodHandle mh(THREAD, get_Method());
return CompilerOracle::has_option_value(mh, option, value);
}
- // Explicit instantiation for all OptionTypes supported.
- template bool ciMethod::has_option_value<intx>(const char* option, intx& value);
- template bool ciMethod::has_option_value<uintx>(const char* option, uintx& value);
- template bool ciMethod::has_option_value<bool>(const char* option, bool& value);
- template bool ciMethod::has_option_value<ccstr>(const char* option, ccstr& value);
- template bool ciMethod::has_option_value<double>(const char* option, double& value);
-
// ------------------------------------------------------------------
// ciMethod::can_be_compiled
//
// Have previous compilations of this method succeeded?
bool ciMethod::can_be_compiled() {
--- 1053,1068 ----
}
// ------------------------------------------------------------------
// ciMethod::has_option_value
//
! bool ciMethod::has_option_value(const char* option, double& value) {
check_is_loaded();
VM_ENTRY_MARK;
methodHandle mh(THREAD, get_Method());
return CompilerOracle::has_option_value(mh, option, value);
}
// ------------------------------------------------------------------
// ciMethod::can_be_compiled
//
// Have previous compilations of this method succeeded?
bool ciMethod::can_be_compiled() {
src/share/vm/ci/ciMethod.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File