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
}
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",