1 /* |
1 /* |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2012, 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. |
932 // check array |
932 // check array |
933 index_check_without_pop(array, index, index_shift, tmp, res); |
933 index_check_without_pop(array, index, index_shift, tmp, res); |
934 } |
934 } |
935 |
935 |
936 |
936 |
|
937 void InterpreterMacroAssembler::get_const(Register Rdst) { |
|
938 ld_ptr(Lmethod, in_bytes(methodOopDesc::const_offset()), Rdst); |
|
939 } |
|
940 |
|
941 |
937 void InterpreterMacroAssembler::get_constant_pool(Register Rdst) { |
942 void InterpreterMacroAssembler::get_constant_pool(Register Rdst) { |
938 ld_ptr(Lmethod, in_bytes(methodOopDesc::constants_offset()), Rdst); |
943 get_const(Rdst); |
|
944 ld_ptr(Rdst, in_bytes(constMethodOopDesc::constants_offset()), Rdst); |
939 } |
945 } |
940 |
946 |
941 |
947 |
942 void InterpreterMacroAssembler::get_constant_pool_cache(Register Rdst) { |
948 void InterpreterMacroAssembler::get_constant_pool_cache(Register Rdst) { |
943 get_constant_pool(Rdst); |
949 get_constant_pool(Rdst); |