Revision: 19408
Author:   [email protected]
Date:     Mon Feb 17 12:43:30 2014 UTC
Log:      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
[email protected]
LOG=n

Review URL: https://codereview.chromium.org/169473003
http://code.google.com/p/v8/source/detail?r=19408

Modified:
 /branches/bleeding_edge/src/a64/simulator-a64.cc

=======================================
--- /branches/bleeding_edge/src/a64/simulator-a64.cc Wed Feb 12 13:27:13 2014 UTC +++ /branches/bleeding_edge/src/a64/simulator-a64.cc Mon Feb 17 12:43:30 2014 UTC
@@ -2738,10 +2738,8 @@
   }

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

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to