Mercurial > hg > graal-jvmci-8
comparison src/share/vm/ci/ciMethod.hpp @ 1138:dd57230ba8fe
6893268: additional dynamic language related optimizations in C2
Summary: C2 needs some additional optimizations to be able to handle MethodHandle invokes and invokedynamic instructions at the best performance.
Reviewed-by: kvn, never
author | twisti |
---|---|
date | Tue, 05 Jan 2010 15:21:25 +0100 |
parents | 97125851f396 |
children | cd37471eaecc |
comparison
equal
deleted
inserted
replaced
1137:97125851f396 | 1138:dd57230ba8fe |
---|---|
36 class ciMethod : public ciObject { | 36 class ciMethod : public ciObject { |
37 friend class CompileBroker; | 37 friend class CompileBroker; |
38 CI_PACKAGE_ACCESS | 38 CI_PACKAGE_ACCESS |
39 friend class ciEnv; | 39 friend class ciEnv; |
40 friend class ciExceptionHandlerStream; | 40 friend class ciExceptionHandlerStream; |
41 friend class ciBytecodeStream; | |
42 friend class ciMethodHandle; | |
41 | 43 |
42 private: | 44 private: |
43 // General method information. | 45 // General method information. |
44 ciFlags _flags; | 46 ciFlags _flags; |
45 ciSymbol* _name; | 47 ciSymbol* _name; |
249 void print_codes_on(int from, int to, outputStream* st); | 251 void print_codes_on(int from, int to, outputStream* st); |
250 | 252 |
251 // Print the name of this method in various incarnations. | 253 // Print the name of this method in various incarnations. |
252 void print_name(outputStream* st = tty); | 254 void print_name(outputStream* st = tty); |
253 void print_short_name(outputStream* st = tty); | 255 void print_short_name(outputStream* st = tty); |
256 | |
257 methodOop get_method_handle_target() { | |
258 klassOop receiver_limit_oop = NULL; | |
259 int flags = 0; | |
260 return MethodHandles::decode_method(get_oop(), receiver_limit_oop, flags); | |
261 } | |
254 }; | 262 }; |