comparison src/cpu/x86/vm/stubGenerator_x86_64.cpp @ 1299:9eba43136cb5

6934494: JSR 292 MethodHandles adapters should be generated into their own CodeBlob Summary: Passing a null pointer to an InvokeDynamic function call should lead to a NullPointerException. Reviewed-by: kvn, never
author twisti
date Tue, 16 Mar 2010 11:52:17 +0100
parents 3cf667df43ef
children 6476042f815c
comparison
equal deleted inserted replaced
1298:da06d1795d84 1299:9eba43136cb5
3007 StubRoutines::_verify_oop_subroutine_entry = generate_verify_oop(); 3007 StubRoutines::_verify_oop_subroutine_entry = generate_verify_oop();
3008 3008
3009 // arraycopy stubs used by compilers 3009 // arraycopy stubs used by compilers
3010 generate_arraycopy_stubs(); 3010 generate_arraycopy_stubs();
3011 3011
3012 // generic method handle stubs
3013 if (EnableMethodHandles && SystemDictionary::MethodHandle_klass() != NULL) {
3014 for (MethodHandles::EntryKind ek = MethodHandles::_EK_FIRST;
3015 ek < MethodHandles::_EK_LIMIT;
3016 ek = MethodHandles::EntryKind(1 + (int)ek)) {
3017 StubCodeMark mark(this, "MethodHandle", MethodHandles::entry_name(ek));
3018 MethodHandles::generate_method_handle_stub(_masm, ek);
3019 }
3020 }
3021
3022 generate_math_stubs(); 3012 generate_math_stubs();
3023 } 3013 }
3024 3014
3025 public: 3015 public:
3026 StubGenerator(CodeBuffer* code, bool all) : StubCodeGenerator(code) { 3016 StubGenerator(CodeBuffer* code, bool all) : StubCodeGenerator(code) {