9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/stringTable.hpp"
27 #include "compiler/compileBroker.hpp"
28 #include "interpreter/interpreter.hpp"
29 #include "interpreter/oopMapCache.hpp"
30 #include "memory/allocation.inline.hpp"
31 #include "memory/oopFactory.hpp"
32 #include "prims/jvmtiRedefineClassesTrace.hpp"
33 #include "prims/methodHandles.hpp"
34 #include "runtime/compilationPolicy.hpp"
35 #include "runtime/javaCalls.hpp"
36 #include "runtime/reflection.hpp"
37 #include "runtime/signature.hpp"
38 #include "runtime/stubRoutines.hpp"
39
40
41 /*
42 * JSR 292 reference implementation: method handles
43 * The JDK 7 reference implementation represented method handle
44 * combinations as chains. Each link in the chain had a "vmentry"
45 * field which pointed at a bit of assembly code which performed
46 * one transformation before dispatching to the next link in the chain.
47 *
48 * The current reference implementation pushes almost all code generation
49 * responsibility to (trusted) Java code. A method handle contains a
50 * pointer to its "LambdaForm", which embodies all details of the method
51 * handle's behavior. The LambdaForm is a normal Java object, managed
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/stringTable.hpp"
27 #include "compiler/compileBroker.hpp"
28 #include "interpreter/interpreter.hpp"
29 #include "interpreter/linkResolver.hpp"
30 #include "interpreter/oopMapCache.hpp"
31 #include "memory/allocation.inline.hpp"
32 #include "memory/oopFactory.hpp"
33 #include "oops/oop.inline.hpp"
34 #include "prims/jvmtiRedefineClassesTrace.hpp"
35 #include "prims/methodHandles.hpp"
36 #include "runtime/compilationPolicy.hpp"
37 #include "runtime/javaCalls.hpp"
38 #include "runtime/reflection.hpp"
39 #include "runtime/signature.hpp"
40 #include "runtime/stubRoutines.hpp"
41
42
43 /*
44 * JSR 292 reference implementation: method handles
45 * The JDK 7 reference implementation represented method handle
46 * combinations as chains. Each link in the chain had a "vmentry"
47 * field which pointed at a bit of assembly code which performed
48 * one transformation before dispatching to the next link in the chain.
49 *
50 * The current reference implementation pushes almost all code generation
51 * responsibility to (trusted) Java code. A method handle contains a
52 * pointer to its "LambdaForm", which embodies all details of the method
53 * handle's behavior. The LambdaForm is a normal Java object, managed
|