Mercurial > hg > graal-compiler
comparison src/cpu/sparc/vm/c1_FrameMap_sparc.cpp @ 727:6b2273dd6fa9
6822110: Add AddressLiteral class on SPARC
Summary: The Address class on SPARC currently handles both, addresses and address literals, what makes the Address class more complicated than it has to be.
Reviewed-by: never, kvn
author | twisti |
---|---|
date | Tue, 21 Apr 2009 11:16:30 -0700 |
parents | a61af66fc99e |
children | d0acbc302e14 |
comparison
equal
deleted
inserted
replaced
725:928912ce8438 | 727:6b2273dd6fa9 |
---|---|
1 /* | 1 /* |
2 * Copyright 1999-2006 Sun Microsystems, Inc. All Rights Reserved. | 2 * Copyright 1999-2009 Sun Microsystems, Inc. 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. |
325 } | 325 } |
326 } | 326 } |
327 | 327 |
328 | 328 |
329 Address FrameMap::make_new_address(ByteSize sp_offset) const { | 329 Address FrameMap::make_new_address(ByteSize sp_offset) const { |
330 return Address(SP, 0, STACK_BIAS + in_bytes(sp_offset)); | 330 return Address(SP, STACK_BIAS + in_bytes(sp_offset)); |
331 } | 331 } |
332 | 332 |
333 | 333 |
334 VMReg FrameMap::fpu_regname (int n) { | 334 VMReg FrameMap::fpu_regname (int n) { |
335 return as_FloatRegister(n)->as_VMReg(); | 335 return as_FloatRegister(n)->as_VMReg(); |