1.1 --- a/src/cpu/x86/vm/register_x86.hpp Thu Jun 14 14:59:52 2012 -0700 1.2 +++ b/src/cpu/x86/vm/register_x86.hpp Fri Jun 15 01:25:19 2012 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -158,7 +158,7 @@ 1.11 XMMRegister successor() const { return as_XMMRegister(encoding() + 1); } 1.12 1.13 // accessors 1.14 - int encoding() const { assert(is_valid(), "invalid register"); return (intptr_t)this; } 1.15 + int encoding() const { assert(is_valid(), err_msg("invalid register (%d)", (int)(intptr_t)this )); return (intptr_t)this; } 1.16 bool is_valid() const { return 0 <= (intptr_t)this && (intptr_t)this < number_of_registers; } 1.17 const char* name() const; 1.18 }; 1.19 @@ -216,7 +216,7 @@ 1.20 RegisterImpl::number_of_registers + // "H" half of a 64bit register 1.21 #endif // AMD64 1.22 2 * FloatRegisterImpl::number_of_registers + 1.23 - 2 * XMMRegisterImpl::number_of_registers + 1.24 + 8 * XMMRegisterImpl::number_of_registers + 1.25 1 // eflags 1.26 }; 1.27