Mercurial > hg > truffle
comparison src/share/vm/interpreter/invocationCounter.hpp @ 9992:b2aea23ee2b1
Only avoid graph caching when the graph was built without profiling information.
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Mon, 10 Jun 2013 15:17:10 +0200 |
parents | a9311ec68721 |
children | d8041d695d19 |
comparison
equal
deleted
inserted
replaced
9964:e2ffbaa682b8 | 9992:b2aea23ee2b1 |
---|---|
93 bool carry() const { return (_counter & carry_mask) != 0; } | 93 bool carry() const { return (_counter & carry_mask) != 0; } |
94 int limit() const { return CompileThreshold; } | 94 int limit() const { return CompileThreshold; } |
95 Action action() const { return _action[state()]; } | 95 Action action() const { return _action[state()]; } |
96 int count() const { return _counter >> number_of_noncount_bits; } | 96 int count() const { return _counter >> number_of_noncount_bits; } |
97 | 97 |
98 static int get_InvocationLimit() { return InterpreterInvocationLimit >> number_of_noncount_bits; } | 98 int get_InvocationLimit() const { return InterpreterInvocationLimit >> number_of_noncount_bits; } |
99 static int get_BackwardBranchLimit() { return InterpreterBackwardBranchLimit >> number_of_noncount_bits; } | 99 int get_BackwardBranchLimit() const { return InterpreterBackwardBranchLimit >> number_of_noncount_bits; } |
100 static int get_ProfileLimit() { return InterpreterProfileLimit >> number_of_noncount_bits; } | 100 int get_ProfileLimit() const { return InterpreterProfileLimit >> number_of_noncount_bits; } |
101 | 101 |
102 // Test counter using scaled limits like the asm interpreter would do rather than doing | 102 // Test counter using scaled limits like the asm interpreter would do rather than doing |
103 // the shifts to normalize the counter. | 103 // the shifts to normalize the counter. |
104 | 104 |
105 bool reached_InvocationLimit() const { return _counter >= (unsigned int) InterpreterInvocationLimit; } | 105 bool reached_InvocationLimit() const { return _counter >= (unsigned int) InterpreterInvocationLimit; } |