Reviewers: Yang,

Message:
PTAL.

Description:
Un-braindead-ify test-debug/DebugBreakLoop


Please review this at https://chromiumcodereview.appspot.com/9623007/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M test/cctest/test-debug.cc


Index: test/cctest/test-debug.cc
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc
index 783c36d1de42cc138c584b58cec1770bb40ba517..7db6c28d344d6588d3981776beeefcdd9a735d9a 100644
--- a/test/cctest/test-debug.cc
+++ b/test/cctest/test-debug.cc
@@ -7208,10 +7208,10 @@ static void TestDebugBreakInLoop(const char* loop_head, // Receive 100 breaks for each test and then terminate JavaScript execution.
   static const int kBreaksPerTest = 100;

-  for (int i = 0; i < 1 && loop_bodies[i] != NULL; i++) {
+  for (int i = 0; loop_bodies[i] != NULL; i++) {
     // Perform a lazy deoptimization after various numbers of breaks
     // have been hit.
-    for (int j = 0; j < 10; j++) {
+    for (int j = 0; j < 11; j++) {
       break_point_hit_count_deoptimize = j;
       if (j == 10) {
         break_point_hit_count_deoptimize = kBreaksPerTest;


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

Reply via email to