mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 22:04:51 +02:00
7023639: JSR 292 method handle invocation needs a fast path for compiled code
6984705: JSR 292 method handle creation should not go through JNI Remove assembly code for JDK 7 chained method handles Co-authored-by: John Rose <john.r.rose@oracle.com> Co-authored-by: Michael Haupt <michael.haupt@oracle.com> Reviewed-by: jrose, twisti, kvn, mhaupt
This commit is contained in:
parent
893817c28d
commit
12901d0e5b
181 changed files with 5760 additions and 14402 deletions
|
@ -35,7 +35,6 @@
|
|||
// Suptypes are:
|
||||
// nmethod : Compiled Java methods (include method that calls to native code)
|
||||
// RuntimeStub : Call to VM runtime methods
|
||||
// RicochetBlob : Used for blocking MethodHandle adapters
|
||||
// DeoptimizationBlob : Used for deoptimizatation
|
||||
// ExceptionBlob : Used for stack unrolling
|
||||
// SafepointBlob : Used to handle illegal instruction exceptions
|
||||
|
@ -99,7 +98,6 @@ class CodeBlob VALUE_OBJ_CLASS_SPEC {
|
|||
virtual bool is_buffer_blob() const { return false; }
|
||||
virtual bool is_nmethod() const { return false; }
|
||||
virtual bool is_runtime_stub() const { return false; }
|
||||
virtual bool is_ricochet_stub() const { return false; }
|
||||
virtual bool is_deoptimization_stub() const { return false; }
|
||||
virtual bool is_uncommon_trap_stub() const { return false; }
|
||||
virtual bool is_exception_stub() const { return false; }
|
||||
|
@ -349,50 +347,6 @@ class SingletonBlob: public CodeBlob {
|
|||
};
|
||||
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
// RicochetBlob
|
||||
// Holds an arbitrary argument list indefinitely while Java code executes recursively.
|
||||
|
||||
class RicochetBlob: public SingletonBlob {
|
||||
friend class VMStructs;
|
||||
private:
|
||||
|
||||
int _bounce_offset;
|
||||
int _exception_offset;
|
||||
|
||||
// Creation support
|
||||
RicochetBlob(
|
||||
CodeBuffer* cb,
|
||||
int size,
|
||||
int bounce_offset,
|
||||
int exception_offset,
|
||||
int frame_size
|
||||
);
|
||||
|
||||
public:
|
||||
// Creation
|
||||
static RicochetBlob* create(
|
||||
CodeBuffer* cb,
|
||||
int bounce_offset,
|
||||
int exception_offset,
|
||||
int frame_size
|
||||
);
|
||||
|
||||
// Typing
|
||||
bool is_ricochet_stub() const { return true; }
|
||||
|
||||
// GC for args
|
||||
void preserve_callee_argument_oops(frame fr, const RegisterMap *reg_map, OopClosure* f) { /* Nothing to do */ }
|
||||
|
||||
address bounce_addr() const { return code_begin() + _bounce_offset; }
|
||||
address exception_addr() const { return code_begin() + _exception_offset; }
|
||||
bool returns_to_bounce_addr(address pc) const {
|
||||
address bounce_pc = bounce_addr();
|
||||
return (pc == bounce_pc || (pc + frame::pc_return_offset) == bounce_pc);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
// DeoptimizationBlob
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue