A64: Make simulator compiler with optdebug

For some reason, the compiler cannot deduce the array bounds in opt
debug mode. An explicit check makes it happy.

BUG=none
R=ulan@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/169473003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19408 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
jochen@chromium.org 2014-02-17 12:43:30 +00:00
parent 8b53eb4cb6
commit 35d2e17646

View File

@ -2738,10 +2738,8 @@ bool Simulator::PrintValue(const char* desc) {
}
int i = CodeFromName(desc);
if (i == -1) {
return false;
}
ASSERT(i >= 0);
STATIC_ASSERT(kNumberOfRegisters == kNumberOfFPRegisters);
if (i < 0 || static_cast<unsigned>(i) >= kNumberOfFPRegisters) return false;
if (desc[0] == 'v') {
PrintF("%s %s:%s 0x%016" PRIx64 "%s (%s%s:%s %g%s %s:%s %g%s)\n",