Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/graal/com.oracle.max.cri/src/com/sun/cri/ci/CiCallingConvention.java Mon Jan 02 14:38:17 2012 -0800 +++ b/graal/com.oracle.max.cri/src/com/sun/cri/ci/CiCallingConvention.java Mon Jan 02 17:39:20 2012 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2012, 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 @@ -22,6 +22,8 @@ */ package com.sun.cri.ci; +import static com.sun.cri.ci.CiValueUtil.*; + import com.sun.cri.ri.*; @@ -98,7 +100,7 @@ private boolean verify() { for (int i = 0; i < locations.length; i++) { CiValue location = locations[i]; - assert location.isStackSlot() || location.isRegister(); + assert isStackSlot(location) || isRegister(location); } return true; }