Mercurial > hg > truffle
comparison src/share/vm/classfile/javaClasses.hpp @ 12039:3cce976666d9
Merge hs25-b46
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 10 Oct 2013 14:20:04 +0200 |
parents | 6b0fd0964b87 ca0165daa6ec |
children | cefad50507d8 |
comparison
equal
deleted
inserted
replaced
11958:a0f5be106e67 | 12039:3cce976666d9 |
---|---|
984 // Accessors for code generation: | 984 // Accessors for code generation: |
985 static int type_offset_in_bytes() { return _type_offset; } | 985 static int type_offset_in_bytes() { return _type_offset; } |
986 static int form_offset_in_bytes() { return _form_offset; } | 986 static int form_offset_in_bytes() { return _form_offset; } |
987 }; | 987 }; |
988 | 988 |
989 // Interface to java.lang.invoke.DirectMethodHandle objects | |
990 | |
991 class java_lang_invoke_DirectMethodHandle: AllStatic { | |
992 friend class JavaClasses; | |
993 | |
994 private: | |
995 static int _member_offset; // the MemberName of this DMH | |
996 | |
997 static void compute_offsets(); | |
998 | |
999 public: | |
1000 // Accessors | |
1001 static oop member(oop mh); | |
1002 | |
1003 // Testers | |
1004 static bool is_subclass(Klass* klass) { | |
1005 return klass->is_subclass_of(SystemDictionary::DirectMethodHandle_klass()); | |
1006 } | |
1007 static bool is_instance(oop obj) { | |
1008 return obj != NULL && is_subclass(obj->klass()); | |
1009 } | |
1010 | |
1011 // Accessors for code generation: | |
1012 static int member_offset_in_bytes() { return _member_offset; } | |
1013 }; | |
1014 | |
989 // Interface to java.lang.invoke.LambdaForm objects | 1015 // Interface to java.lang.invoke.LambdaForm objects |
990 // (These are a private interface for managing adapter code generation.) | 1016 // (These are a private interface for managing adapter code generation.) |
991 | 1017 |
992 class java_lang_invoke_LambdaForm: AllStatic { | 1018 class java_lang_invoke_LambdaForm: AllStatic { |
993 friend class JavaClasses; | 1019 friend class JavaClasses; |