Mercurial > hg > truffle
comparison src/cpu/x86/vm/stubGenerator_x86_64.cpp @ 1108:85f13cdfbc1d
6829192: JSR 292 needs to support 64-bit x86
Summary: changes for method handles and invokedynamic
Reviewed-by: kvn
author | twisti |
---|---|
date | Wed, 16 Dec 2009 12:48:04 +0100 |
parents | df6caf649ff7 |
children | ddb7834449d0 |
comparison
equal
deleted
inserted
replaced
1102:6dc5471e0f66 | 1108:85f13cdfbc1d |
---|---|
2933 // support for verify_oop (must happen after universe_init) | 2933 // support for verify_oop (must happen after universe_init) |
2934 StubRoutines::_verify_oop_subroutine_entry = generate_verify_oop(); | 2934 StubRoutines::_verify_oop_subroutine_entry = generate_verify_oop(); |
2935 | 2935 |
2936 // arraycopy stubs used by compilers | 2936 // arraycopy stubs used by compilers |
2937 generate_arraycopy_stubs(); | 2937 generate_arraycopy_stubs(); |
2938 | |
2939 // generic method handle stubs | |
2940 if (EnableMethodHandles && SystemDictionary::MethodHandle_klass() != NULL) { | |
2941 for (MethodHandles::EntryKind ek = MethodHandles::_EK_FIRST; | |
2942 ek < MethodHandles::_EK_LIMIT; | |
2943 ek = MethodHandles::EntryKind(1 + (int)ek)) { | |
2944 StubCodeMark mark(this, "MethodHandle", MethodHandles::entry_name(ek)); | |
2945 MethodHandles::generate_method_handle_stub(_masm, ek); | |
2946 } | |
2947 } | |
2938 } | 2948 } |
2939 | 2949 |
2940 public: | 2950 public: |
2941 StubGenerator(CodeBuffer* code, bool all) : StubCodeGenerator(code) { | 2951 StubGenerator(CodeBuffer* code, bool all) : StubCodeGenerator(code) { |
2942 if (all) { | 2952 if (all) { |