Print this page


Split Close
Expand all
Collapse all
          --- old/src/cpu/sparc/vm/stubGenerator_sparc.cpp
          +++ new/src/cpu/sparc/vm/stubGenerator_sparc.cpp
↓ open down ↓ 2909 lines elided ↑ open up ↑
2910 2910  
2911 2911      StubRoutines::_handler_for_unsafe_access_entry =
2912 2912        generate_handler_for_unsafe_access();
2913 2913  
2914 2914      // support for verify_oop (must happen after universe_init)
2915 2915      StubRoutines::_verify_oop_subroutine_entry     = generate_verify_oop_subroutine();
2916 2916  
2917 2917      // arraycopy stubs used by compilers
2918 2918      generate_arraycopy_stubs();
2919 2919  
     2920 +    // generic method handle stubs
     2921 +    if (EnableMethodHandles && SystemDictionary::MethodHandle_klass() != NULL) {
     2922 +      for (MethodHandles::EntryKind ek = MethodHandles::_EK_FIRST;
     2923 +           ek < MethodHandles::_EK_LIMIT;
     2924 +           ek = MethodHandles::EntryKind(1 + (int)ek)) {
     2925 +        StubCodeMark mark(this, "MethodHandle", MethodHandles::entry_name(ek));
     2926 +        MethodHandles::generate_method_handle_stub(_masm, ek);
     2927 +      }
     2928 +    }
     2929 +
2920 2930      // Don't initialize the platform math functions since sparc
2921 2931      // doesn't have intrinsics for these operations.
2922 2932    }
2923 2933  
2924 2934  
2925 2935   public:
2926 2936    StubGenerator(CodeBuffer* code, bool all) : StubCodeGenerator(code) {
2927 2937      // replace the standard masm with a special one:
2928 2938      _masm = new MacroAssembler(code);
2929 2939  
↓ open down ↓ 68 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX