Mercurial > hg > truffle
comparison src/cpu/x86/vm/stubGenerator_x86_32.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 |
---|---|
2274 StubRoutines::_verify_oop_subroutine_entry = generate_verify_oop(); | 2274 StubRoutines::_verify_oop_subroutine_entry = generate_verify_oop(); |
2275 | 2275 |
2276 // arraycopy stubs used by compilers | 2276 // arraycopy stubs used by compilers |
2277 generate_arraycopy_stubs(); | 2277 generate_arraycopy_stubs(); |
2278 | 2278 |
2279 // generic method handle stubs | |
2280 if (EnableMethodHandles && SystemDictionary::MethodHandle_klass() != NULL) { | |
2281 for (MethodHandles::EntryKind ek = MethodHandles::_EK_FIRST; | |
2282 ek < MethodHandles::_EK_LIMIT; | |
2283 ek = MethodHandles::EntryKind(1 + (int)ek)) { | |
2284 StubCodeMark mark(this, "MethodHandle", MethodHandles::entry_name(ek)); | |
2285 MethodHandles::generate_method_handle_stub(_masm, ek); | |
2286 } | |
2287 } | |
2288 | |
2289 generate_math_stubs(); | 2279 generate_math_stubs(); |
2290 } | 2280 } |
2291 | 2281 |
2292 | 2282 |
2293 public: | 2283 public: |