< prev index next >
src/cpu/sparc/vm/c1_LinearScan_sparc.hpp
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2017, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -30,27 +30,19 @@
}
inline int LinearScan::num_physical_regs(BasicType type) {
// Sparc requires two cpu registers for long
// and two cpu registers for double
-#ifdef _LP64
if (type == T_DOUBLE) {
-#else
- if (type == T_DOUBLE || type == T_LONG) {
-#endif
return 2;
}
return 1;
}
inline bool LinearScan::requires_adjacent_regs(BasicType type) {
-#ifdef _LP64
return type == T_DOUBLE;
-#else
- return type == T_DOUBLE || type == T_LONG;
-#endif
}
inline bool LinearScan::is_caller_save(int assigned_reg) {
return assigned_reg > pd_last_callee_saved_reg && assigned_reg <= pd_last_fpu_reg;
}
< prev index next >