diff c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotRegisterConfig.java @ 1420:44efca8a02d6

reformatting similar to other maxine projects (tabs, etc.)
author Lukas Stadler <lukas.stadler@oracle.com>
date Tue, 13 Jul 2010 11:47:55 -0700
parents 7bf6a77b9c5a
children 6223633ce7dd
line wrap: on
line diff
--- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotRegisterConfig.java	Mon Jul 12 15:05:17 2010 -0700
+++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotRegisterConfig.java	Tue Jul 13 11:47:55 2010 -0700
@@ -1,22 +1,19 @@
 /*
- * Copyright (c) 2009 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
  *
- * Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product
- * that is described in this document. In particular, and without limitation, these intellectual property
- * rights may include one or more of the U.S. patents listed at http://www.sun.com/patents and one or
- * more additional patents or pending patent applications in the U.S. and in other countries.
+ * Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product that is
+ * described in this document. In particular, and without limitation, these intellectual property rights may include one
+ * or more of the U.S. patents listed at http://www.sun.com/patents and one or more additional patents or pending patent
+ * applications in the U.S. and in other countries.
  *
- * U.S. Government Rights - Commercial software. Government users are subject to the Sun
- * Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its
- * supplements.
+ * U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard
+ * license agreement and applicable provisions of the FAR and its supplements.
  *
- * Use is subject to license terms. Sun, Sun Microsystems, the Sun logo, Java and Solaris are trademarks or
- * registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks
- * are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the
- * U.S. and other countries.
+ * Use is subject to license terms. Sun, Sun Microsystems, the Sun logo, Java and Solaris are trademarks or registered
+ * trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and
+ * are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries.
  *
- * UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open
- * Company, Ltd.
+ * UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd.
  */
 package com.sun.hotspot.c1x;
 
@@ -36,46 +33,46 @@
  */
 public class HotSpotRegisterConfig implements RiRegisterConfig {
 
-	@Override
-	public CiRegister[] getAllocatableRegisters() {
-		return new CiRegister[]{ AMD64.rax, AMD64.rbx, AMD64.rcx, AMD64.rdx, AMD64.rsi, AMD64.rdi, AMD64.r10, AMD64.r11} ;
-	}
-	
+    @Override
+    public CiRegister[] getAllocatableRegisters() {
+        return new CiRegister[] { AMD64.rax, AMD64.rbx, AMD64.rcx, AMD64.rdx, AMD64.rsi, AMD64.rdi, AMD64.r10, AMD64.r11};
+    }
+
     private final CiRegister[] generalParameterRegisters;
-    private final CiRegister[] xmmParameterRegisters = new CiRegister[]{AMD64.xmm0, AMD64.xmm1, AMD64.xmm2, AMD64.xmm3, AMD64.xmm4, AMD64.xmm5, AMD64.xmm6, AMD64.xmm7};
+    private final CiRegister[] xmmParameterRegisters = new CiRegister[] { AMD64.xmm0, AMD64.xmm1, AMD64.xmm2, AMD64.xmm3, AMD64.xmm4, AMD64.xmm5, AMD64.xmm6, AMD64.xmm7};
 
-	public HotSpotRegisterConfig(HotSpotVMConfig config) {
-		if(config.isWindowsOs()) {
-		    generalParameterRegisters = new CiRegister[]{AMD64.rdx, AMD64.r8, AMD64.r9, AMD64.rdi, AMD64.rsi, AMD64.rcx};
-		} else {
-		    generalParameterRegisters = new CiRegister[]{AMD64.rsi, AMD64.rdx, AMD64.rcx, AMD64.r8, AMD64.r9, AMD64.rdi};
-		}
-	}
+    public HotSpotRegisterConfig(HotSpotVMConfig config) {
+        if (config.isWindowsOs()) {
+            generalParameterRegisters = new CiRegister[] { AMD64.rdx, AMD64.r8, AMD64.r9, AMD64.rdi, AMD64.rsi, AMD64.rcx};
+        } else {
+            generalParameterRegisters = new CiRegister[] { AMD64.rsi, AMD64.rdx, AMD64.rcx, AMD64.r8, AMD64.r9, AMD64.rdi};
+        }
+    }
 
-	@Override
-	public int getCalleeSaveRegisterOffset(CiRegister register) {
-		return 0;
-	}
+    @Override
+    public int getCalleeSaveRegisterOffset(CiRegister register) {
+        return 0;
+    }
 
-	@Override
-	public CiRegister[] getCallerSaveRegisters() {
-		return getAllocatableRegisters();
-	}
+    @Override
+    public CiRegister[] getCallerSaveRegisters() {
+        return getAllocatableRegisters();
+    }
 
-	@Override
-	public CiRegister getFramePointerRegister() {
-		return AMD64.rbp;
-	}
+    @Override
+    public CiRegister getFramePointerRegister() {
+        return AMD64.rbp;
+    }
 
-	@Override
-	public CiRegister getIntegerRegister(int index) {
-		throw new UnsupportedOperationException();
-	}
-	
-	@Override
-	public CiCallingConvention getJavaCallingConvention(CiKind[] parameters, boolean outgoing, CiTarget target) {
-		return callingConvention(parameters, outgoing, target);
-	}
+    @Override
+    public CiRegister getIntegerRegister(int index) {
+        throw new UnsupportedOperationException();
+    }
+
+    @Override
+    public CiCallingConvention getJavaCallingConvention(CiKind[] parameters, boolean outgoing, CiTarget target) {
+        return callingConvention(parameters, outgoing, target);
+    }
 
     private CiCallingConvention callingConvention(CiKind[] types, boolean outgoing, CiTarget target) {
         CiValue[] locations = new CiValue[types.length];
@@ -123,39 +120,39 @@
         return new CiCallingConvention(locations, currentStackIndex * target.spillSlotSize);
     }
 
-	@Override
-	public int getMinimumCalleeSaveFrameSize() {
-		return 0;
-	}
+    @Override
+    public int getMinimumCalleeSaveFrameSize() {
+        return 0;
+    }
 
-	@Override
-	public CiCallingConvention getNativeCallingConvention(CiKind[] parameters, boolean outgoing, CiTarget target) {
-		throw new UnsupportedOperationException();
-	}
+    @Override
+    public CiCallingConvention getNativeCallingConvention(CiKind[] parameters, boolean outgoing, CiTarget target) {
+        throw new UnsupportedOperationException();
+    }
 
-	@Override
-	public CiRegister[] getRegisterReferenceMapOrder() {
-		return getAllocatableRegisters();
-	}
+    @Override
+    public CiRegister[] getRegisterReferenceMapOrder() {
+        return getAllocatableRegisters();
+    }
 
-	@Override
-	public CiRegister getReturnRegister(CiKind kind) {
-		return AMD64.rax;
-	}
+    @Override
+    public CiRegister getReturnRegister(CiKind kind) {
+        return AMD64.rax;
+    }
 
-	@Override
-	public CiCallingConvention getRuntimeCallingConvention(CiKind[] parameters, CiTarget target) {
-		throw new UnsupportedOperationException();
-	}
+    @Override
+    public CiCallingConvention getRuntimeCallingConvention(CiKind[] parameters, CiTarget target) {
+        throw new UnsupportedOperationException();
+    }
 
-	@Override
-	public CiRegister getScratchRegister() {
-		return AMD64.r15;
-	}
+    @Override
+    public CiRegister getScratchRegister() {
+        return AMD64.r15;
+    }
 
-	@Override
-	public CiRegister getStackPointerRegister() {
-		return AMD64.rsp;
-	}
+    @Override
+    public CiRegister getStackPointerRegister() {
+        return AMD64.rsp;
+    }
 
 }