src/cpu/x86/vm/interp_masm_x86_64.hpp

changeset 3826
2fe087c3e814
parent 3050
fdb992d83a87
child 4037
da91efe96a93
equal deleted inserted replaced
3818:6e2633440960 3826:2fe087c3e814
1 /* 1 /*
2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 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.
82 // Helpers for runtime call arguments/results 82 // Helpers for runtime call arguments/results
83 void get_method(Register reg) { 83 void get_method(Register reg) {
84 movptr(reg, Address(rbp, frame::interpreter_frame_method_offset * wordSize)); 84 movptr(reg, Address(rbp, frame::interpreter_frame_method_offset * wordSize));
85 } 85 }
86 86
87 void get_const(Register reg) {
88 get_method(reg);
89 movptr(reg, Address(reg, methodOopDesc::const_offset()));
90 }
91
87 void get_constant_pool(Register reg) { 92 void get_constant_pool(Register reg) {
88 get_method(reg); 93 get_const(reg);
89 movptr(reg, Address(reg, methodOopDesc::constants_offset())); 94 movptr(reg, Address(reg, constMethodOopDesc::constants_offset()));
90 } 95 }
91 96
92 void get_constant_pool_cache(Register reg) { 97 void get_constant_pool_cache(Register reg) {
93 get_constant_pool(reg); 98 get_constant_pool(reg);
94 movptr(reg, Address(reg, constantPoolOopDesc::cache_offset_in_bytes())); 99 movptr(reg, Address(reg, constantPoolOopDesc::cache_offset_in_bytes()));

mercurial