equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2018, 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. |
253 // |
253 // |
254 // If this bytecode is one of the ldc variants, get the referenced |
254 // If this bytecode is one of the ldc variants, get the referenced |
255 // constant. |
255 // constant. |
256 constantTag ciBytecodeStream::get_constant_pool_tag(int index) const { |
256 constantTag ciBytecodeStream::get_constant_pool_tag(int index) const { |
257 VM_ENTRY_MARK; |
257 VM_ENTRY_MARK; |
258 BasicType bt = _method->get_Method()->constants()->basic_type_for_constant_at(index); |
258 return _method->get_Method()->constants()->constant_tag_at(index); |
259 return constantTag::ofBasicType(bt); |
|
260 } |
259 } |
261 |
260 |
262 // ------------------------------------------------------------------ |
261 // ------------------------------------------------------------------ |
263 // ciBytecodeStream::get_field_index |
262 // ciBytecodeStream::get_field_index |
264 // |
263 // |