Mercurial > hg > truffle
comparison graal/com.oracle.max.cri/src/com/sun/cri/ci/CiCallingConvention.java @ 4183:9e0c1b4cfef5
Move all isXxx and asXxx out of CiValue and into their own util class.
author | Christian Wimmer <Christian.Wimmer@Oracle.com> |
---|---|
date | Mon, 02 Jan 2012 17:39:20 -0800 |
parents | e233f5660da4 |
children |
comparison
equal
deleted
inserted
replaced
4182:de7b3e7ae528 | 4183:9e0c1b4cfef5 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2009, 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. |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | 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 | 20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.sun.cri.ci; | 23 package com.sun.cri.ci; |
24 | |
25 import static com.sun.cri.ci.CiValueUtil.*; | |
24 | 26 |
25 import com.sun.cri.ri.*; | 27 import com.sun.cri.ri.*; |
26 | 28 |
27 | 29 |
28 /** | 30 /** |
96 } | 98 } |
97 | 99 |
98 private boolean verify() { | 100 private boolean verify() { |
99 for (int i = 0; i < locations.length; i++) { | 101 for (int i = 0; i < locations.length; i++) { |
100 CiValue location = locations[i]; | 102 CiValue location = locations[i]; |
101 assert location.isStackSlot() || location.isRegister(); | 103 assert isStackSlot(location) || isRegister(location); |
102 } | 104 } |
103 return true; | 105 return true; |
104 } | 106 } |
105 } | 107 } |