hotspot/src/cpu/sparc/vm/assembler_sparc.inline.hpp
changeset 11637 030466036615
parent 10983 9ab65f4cec18
child 13728 882756847a04
equal deleted inserted replaced
11636:3c07b54482a5 11637:030466036615
     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.
   687     patchable_sethi(addrlit, d);
   687     patchable_sethi(addrlit, d);
   688   } else {
   688   } else {
   689     sethi(addrlit, d);
   689     sethi(addrlit, d);
   690   }
   690   }
   691   ld(d, addrlit.low10() + offset, d);
   691   ld(d, addrlit.low10() + offset, d);
       
   692 }
       
   693 
       
   694 
       
   695 inline void MacroAssembler::load_bool_contents(const AddressLiteral& addrlit, Register d, int offset) {
       
   696   assert_not_delayed();
       
   697   if (ForceUnreachable) {
       
   698     patchable_sethi(addrlit, d);
       
   699   } else {
       
   700     sethi(addrlit, d);
       
   701   }
       
   702   ldub(d, addrlit.low10() + offset, d);
   692 }
   703 }
   693 
   704 
   694 
   705 
   695 inline void MacroAssembler::load_ptr_contents(const AddressLiteral& addrlit, Register d, int offset) {
   706 inline void MacroAssembler::load_ptr_contents(const AddressLiteral& addrlit, Register d, int offset) {
   696   assert_not_delayed();
   707   assert_not_delayed();