Mercurial > hg > graal-jvmci-8
comparison src/share/vm/prims/methodHandleWalk.hpp @ 1152:cd37471eaecc
6914206: change way of permission checking for generated MethodHandle adapters
Summary: Put generated MH adapter in InvokeDynamic/MethodHandle classes to be able to indentify them easily in the compiler.
Reviewed-by: kvn, never, jrose
author | twisti |
---|---|
date | Fri, 08 Jan 2010 11:09:46 +0100 |
parents | dd57230ba8fe |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1151:1271af4ec18c | 1152:cd37471eaecc |
---|---|
402 public: | 402 public: |
403 MethodHandleCompiler(Handle root, methodHandle call_method, bool for_invokedynamic, TRAPS); | 403 MethodHandleCompiler(Handle root, methodHandle call_method, bool for_invokedynamic, TRAPS); |
404 | 404 |
405 // Compile the given MH chain into bytecode. | 405 // Compile the given MH chain into bytecode. |
406 methodHandle compile(TRAPS); | 406 methodHandle compile(TRAPS); |
407 | |
408 // Tests if the given class is a MH adapter holder. | |
409 static bool klass_is_method_handle_adapter_holder(klassOop klass) { | |
410 return (klass == SystemDictionary::MethodHandle_klass() || | |
411 klass == SystemDictionary::InvokeDynamic_klass()); | |
412 } | |
407 }; | 413 }; |