Revision: 12166
Author:   [email protected]
Date:     Mon Jul 23 01:38:53 2012
Log:      Add assertions to limit register count for VSTM and VLDM.

[email protected]
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10807066
http://code.google.com/p/v8/source/detail?r=12166

Modified:
 /branches/bleeding_edge/src/arm/assembler-arm.cc

=======================================
--- /branches/bleeding_edge/src/arm/assembler-arm.cc Wed Jul 11 03:08:56 2012 +++ /branches/bleeding_edge/src/arm/assembler-arm.cc Mon Jul 23 01:38:53 2012
@@ -1834,6 +1834,7 @@
   int sd, d;
   first.split_code(&sd, &d);
   int count = last.code() - first.code() + 1;
+  ASSERT(count <= 16);
   emit(cond | B27 | B26 | am | d*B22 | B20 | base.code()*B16 | sd*B12 |
        0xB*B8 | count*2);
 }
@@ -1855,6 +1856,7 @@
   int sd, d;
   first.split_code(&sd, &d);
   int count = last.code() - first.code() + 1;
+  ASSERT(count <= 16);
   emit(cond | B27 | B26 | am | d*B22 | base.code()*B16 | sd*B12 |
        0xB*B8 | count*2);
 }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to