Mercurial > hg > graal-jvmci-8
diff src/cpu/sparc/vm/assembler_sparc.inline.hpp @ 1911:fff777a71346
6994093: MethodHandle.invokeGeneric needs porting to SPARC
Summary: SPARC code missing from fix to 6939224
Reviewed-by: twisti
author | jrose |
---|---|
date | Sat, 30 Oct 2010 11:45:49 -0700 |
parents | a64438a2b7e8 |
children | f95d63e2154a |
line wrap: on
line diff
--- a/src/cpu/sparc/vm/assembler_sparc.inline.hpp Sat Oct 30 11:45:35 2010 -0700 +++ b/src/cpu/sparc/vm/assembler_sparc.inline.hpp Sat Oct 30 11:45:49 2010 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -206,6 +206,11 @@ inline void Assembler::ldd( Register s1, RegisterOrConstant s2, Register d) { ldd( Address(s1, s2), d); } // form effective addresses this way: +inline void Assembler::add(const Address& a, Register d, int offset) { + if (a.has_index()) add(a.base(), a.index(), d); + else { add(a.base(), a.disp() + offset, d, a.rspec(offset)); offset = 0; } + if (offset != 0) add(d, offset, d); +} inline void Assembler::add(Register s1, RegisterOrConstant s2, Register d, int offset) { if (s2.is_register()) add(s1, s2.as_register(), d); else { add(s1, s2.as_constant() + offset, d); offset = 0; }