1 /* 2 * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 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 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #ifndef SHARE_VM_CODE_RELOCINFO_EXT_HPP 26 #define SHARE_VM_CODE_RELOCINFO_EXT_HPP 27 28 // symbolic_Relocation allows to anotate some addresses in the generated code. 29 // 30 // This class was initially defined using the last unused relocType. The 31 // new version tries to limit the impact on open source code changes. 32 // 33 // Without compiled code support, symbolic_Relocation need not be a real 34 // relocation. To avoid using the last unused relocType, the 35 // symbolic_Relocation::spec(<any symbolic type>) has been replaced 36 // by additional methods using directly the symbolic type. 37 // 38 // Note: the order of the arguments in some methods had to reversed 39 // to avoid confusion between the relocType enum and the 40 // symbolic_reference enum. 41 class symbolic_Relocation : AllStatic { 42 43 public: 44 enum symbolic_reference { 45 card_table_reference, 46 eden_top_reference, 47 heap_end_reference, 48 polling_page_reference, 49 mark_bits_reference, 50 mark_mask_reference, 51 oop_bits_reference, 52 oop_mask_reference, 53 debug_string_reference, 54 last_symbolic_reference 55 }; 56 57 // get the new value for a given symbolic type 58 static address symbolic_value(symbolic_reference t); 59 }; 60 61 #endif // SHARE_VM_CODE_RELOCINFO_EXT_HPP