equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
378 VM_ENTRY_MARK; |
378 VM_ENTRY_MARK; |
379 constantPoolHandle cpool(_method->get_methodOop()->constants()); |
379 constantPoolHandle cpool(_method->get_methodOop()->constants()); |
380 bool ignore; |
380 bool ignore; |
381 // report as InvokeDynamic for invokedynamic, which is syntactically classless |
381 // report as InvokeDynamic for invokedynamic, which is syntactically classless |
382 if (cur_bc() == Bytecodes::_invokedynamic) |
382 if (cur_bc() == Bytecodes::_invokedynamic) |
383 return CURRENT_ENV->get_klass_by_name(_holder, ciSymbol::java_dyn_InvokeDynamic(), false); |
383 return CURRENT_ENV->get_klass_by_name(_holder, ciSymbol::java_lang_invoke_InvokeDynamic(), false); |
384 return CURRENT_ENV->get_klass_by_index(cpool, get_method_holder_index(), ignore, _holder); |
384 return CURRENT_ENV->get_klass_by_index(cpool, get_method_holder_index(), ignore, _holder); |
385 } |
385 } |
386 |
386 |
387 // ------------------------------------------------------------------ |
387 // ------------------------------------------------------------------ |
388 // ciBytecodeStream::get_method_holder_index |
388 // ciBytecodeStream::get_method_holder_index |