mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6953144: Tiered compilation
Infrastructure for tiered compilation support (interpreter + c1 + c2) for 32 and 64 bit. Simple tiered policy implementation. Reviewed-by: kvn, never, phh, twisti
This commit is contained in:
parent
6e78f6cb4b
commit
2c66a6c3fd
104 changed files with 7720 additions and 1701 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -819,7 +819,6 @@ void InstructionPrinter::do_UnsafePrefetchWrite(UnsafePrefetchWrite* x) {
|
|||
output()->put(')');
|
||||
}
|
||||
|
||||
|
||||
void InstructionPrinter::do_ProfileCall(ProfileCall* x) {
|
||||
output()->print("profile ");
|
||||
print_value(x->recv());
|
||||
|
@ -831,20 +830,11 @@ void InstructionPrinter::do_ProfileCall(ProfileCall* x) {
|
|||
output()->put(')');
|
||||
}
|
||||
|
||||
void InstructionPrinter::do_ProfileInvoke(ProfileInvoke* x) {
|
||||
output()->print("profile_invoke ");
|
||||
output()->print(" %s.%s", x->inlinee()->holder()->name()->as_utf8(), x->inlinee()->name()->as_utf8());
|
||||
output()->put(')');
|
||||
|
||||
void InstructionPrinter::do_ProfileCounter(ProfileCounter* x) {
|
||||
|
||||
ObjectConstant* oc = x->mdo()->type()->as_ObjectConstant();
|
||||
if (oc != NULL && oc->value()->is_method() &&
|
||||
x->offset() == methodOopDesc::interpreter_invocation_counter_offset_in_bytes()) {
|
||||
print_value(x->mdo());
|
||||
output()->print(".interpreter_invocation_count += %d", x->increment());
|
||||
} else {
|
||||
output()->print("counter [");
|
||||
print_value(x->mdo());
|
||||
output()->print(" + %d] += %d", x->offset(), x->increment());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif // PRODUCT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue