mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
8056071: compiler/whitebox/IsMethodCompilableTest.java fails with 'method() is not compilable after 3 iterations'
Always use MDO if valid and always compile trivial methods with C1 if available. Reviewed-by: kvn, iveresov
This commit is contained in:
parent
bdac822811
commit
00aa20db4a
8 changed files with 33 additions and 14 deletions
|
@ -401,8 +401,10 @@ class Bytecodes: AllStatic {
|
|||
static bool is_astore (Code code) { return (code == _astore || code == _astore_0 || code == _astore_1
|
||||
|| code == _astore_2 || code == _astore_3); }
|
||||
|
||||
static bool is_const (Code code) { return (_aconst_null <= code && code <= _ldc2_w); }
|
||||
static bool is_zero_const (Code code) { return (code == _aconst_null || code == _iconst_0
|
||||
|| code == _fconst_0 || code == _dconst_0); }
|
||||
static bool is_return (Code code) { return (_ireturn <= code && code <= _return); }
|
||||
static bool is_invoke (Code code) { return (_invokevirtual <= code && code <= _invokedynamic); }
|
||||
static bool has_receiver (Code code) { assert(is_invoke(code), ""); return code == _invokevirtual ||
|
||||
code == _invokespecial ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue