Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/runtime/VM.java @ 6266:1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
6984705: JSR 292 method handle creation should not go through JNI
Summary: remove assembly code for JDK 7 chained method handles
Reviewed-by: jrose, twisti, kvn, mhaupt
Contributed-by: John Rose <john.r.rose@oracle.com>, Christian Thalinger <christian.thalinger@oracle.com>, Michael Haupt <michael.haupt@oracle.com>
author | twisti |
---|---|
date | Tue, 24 Jul 2012 10:51:00 -0700 |
parents | 35c656d0b685 |
children | a9fed06c01d2 |
comparison
equal
deleted
inserted
replaced
6241:aba91a731143 | 6266:1d7922586cf6 |
---|---|
85 private JNIHandles handles; | 85 private JNIHandles handles; |
86 private Interpreter interpreter; | 86 private Interpreter interpreter; |
87 private StubRoutines stubRoutines; | 87 private StubRoutines stubRoutines; |
88 private Bytes bytes; | 88 private Bytes bytes; |
89 | 89 |
90 private RicochetBlob ricochetBlob; | |
91 | |
92 /** Flags indicating whether we are attached to a core, C1, or C2 build */ | 90 /** Flags indicating whether we are attached to a core, C1, or C2 build */ |
93 private boolean usingClientCompiler; | 91 private boolean usingClientCompiler; |
94 private boolean usingServerCompiler; | 92 private boolean usingServerCompiler; |
95 /** Flag indicating whether UseTLAB is turned on */ | 93 /** Flag indicating whether UseTLAB is turned on */ |
96 private boolean useTLAB; | 94 private boolean useTLAB; |
626 stubRoutines = new StubRoutines(); | 624 stubRoutines = new StubRoutines(); |
627 } | 625 } |
628 return stubRoutines; | 626 return stubRoutines; |
629 } | 627 } |
630 | 628 |
631 public RicochetBlob ricochetBlob() { | |
632 if (ricochetBlob == null) { | |
633 Type ricochetType = db.lookupType("SharedRuntime"); | |
634 AddressField ricochetBlobAddress = ricochetType.getAddressField("_ricochet_blob"); | |
635 Address addr = ricochetBlobAddress.getValue(); | |
636 if (addr != null) { | |
637 ricochetBlob = new RicochetBlob(addr); | |
638 } | |
639 } | |
640 return ricochetBlob; | |
641 } | |
642 | |
643 public VMRegImpl getVMRegImplInfo() { | 629 public VMRegImpl getVMRegImplInfo() { |
644 if (vmregImpl == null) { | 630 if (vmregImpl == null) { |
645 vmregImpl = new VMRegImpl(); | 631 vmregImpl = new VMRegImpl(); |
646 } | 632 } |
647 return vmregImpl; | 633 return vmregImpl; |