Reviewers: Yang,

Message:
PTAL

Description:
Speedup some slow running stack-overflow tests.

BUG=chromium:505007
LOG=N

Please review this at https://codereview.chromium.org/1238273003/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+11, -2 lines):
  M test/mjsunit/regress/regress-crbug-505007-1.js
  M test/mjsunit/regress/regress-crbug-505007-2.js


Index: test/mjsunit/regress/regress-crbug-505007-1.js
diff --git a/test/mjsunit/regress/regress-crbug-505007-1.js b/test/mjsunit/regress/regress-crbug-505007-1.js index 6012577aaa4dadf0ce7eb3210c39aa341155837d..910f4a672055b3edf96a5edf1da8047ee8937520 100644
--- a/test/mjsunit/regress/regress-crbug-505007-1.js
+++ b/test/mjsunit/regress/regress-crbug-505007-1.js
@@ -4,11 +4,15 @@

 // Flags: --stack-size=100 --allow-natives-syntax

+var count = 0;
 function f() {
   try {
     f();
   } catch(e) {
-    %GetDebugContext();
+    if (count < 100) {
+      count++;
+      %GetDebugContext();
+    }
   }
 }
 f();
Index: test/mjsunit/regress/regress-crbug-505007-2.js
diff --git a/test/mjsunit/regress/regress-crbug-505007-2.js b/test/mjsunit/regress/regress-crbug-505007-2.js index dfa34ae6adec495615ef73a2f5c97aa21f5f415c..96014c848d4263d75d79b127ab63be18a2feed40 100644
--- a/test/mjsunit/regress/regress-crbug-505007-2.js
+++ b/test/mjsunit/regress/regress-crbug-505007-2.js
@@ -5,11 +5,16 @@
 // Flags: --stack-size=100 --allow-natives-syntax

 function g() {}
+
+var count = 0;
 function f() {
   try {
     f();
   } catch(e) {
-    %ExecuteInDebugContext(g);
+    if (count < 100) {
+      count++;
+      %ExecuteInDebugContext(g);
+    }
   }
 }
 f();


--
--
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/d/optout.

Reply via email to