Mercurial > hg > truffle
comparison src/cpu/sparc/vm/assembler_sparc.inline.hpp @ 4873:0382d2b469b2
7013347: allow crypto functions to be called inline to enhance performance
Reviewed-by: kvn
author | never |
---|---|
date | Wed, 01 Feb 2012 16:57:08 -0800 |
parents | 44ce519bc3d1 |
children | da91efe96a93 |
comparison
equal
deleted
inserted
replaced
4872:aa3d708d67c4 | 4873:0382d2b469b2 |
---|---|
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(); |