Mercurial > hg > truffle
comparison src/share/vm/opto/bytecodeInfo.cpp @ 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 | c3b315a0d58a |
comparison
equal
deleted
inserted
replaced
1137:97125851f396 | 1138:dd57230ba8fe |
---|---|
177 // %%% adjust wci_result->size()? | 177 // %%% adjust wci_result->size()? |
178 } | 178 } |
179 | 179 |
180 return NULL; | 180 return NULL; |
181 } | 181 } |
182 | |
183 // Always inline MethodHandle methods. | |
184 if (callee_method->is_method_handle_invoke()) | |
185 return NULL; | |
182 | 186 |
183 // First check all inlining restrictions which are required for correctness | 187 // First check all inlining restrictions which are required for correctness |
184 if (callee_method->is_abstract()) return "abstract method"; | 188 if (callee_method->is_abstract()) return "abstract method"; |
185 // note: we allow ik->is_abstract() | 189 // note: we allow ik->is_abstract() |
186 if (!callee_method->holder()->is_initialized()) return "method holder not initialized"; | 190 if (!callee_method->holder()->is_initialized()) return "method holder not initialized"; |