Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1847)

Unified Diff: test/mjsunit/handle-count-ast.js

Issue 1185633002: Additional HandleScopes to limit Handle consumption. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Refine comment. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-types.cc ('k') | test/mjsunit/handle-count-runtime-literals.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/handle-count-ast.js
diff --git a/test/mjsunit/compiler/regress-ntl-effect.js b/test/mjsunit/handle-count-ast.js
similarity index 51%
copy from test/mjsunit/compiler/regress-ntl-effect.js
copy to test/mjsunit/handle-count-ast.js
index 708fe32828c9197dfa3d8c371ab01cbc1ad3317a..aef702b87a1b3d2e744a178ce8e823e3c7fbc0a9 100644
--- a/test/mjsunit/compiler/regress-ntl-effect.js
+++ b/test/mjsunit/handle-count-ast.js
@@ -2,15 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax
+// Flags: --check_handle_count
-function g() {
- throw 0;
-}
+var ones = eval("[" + Array(12 * 1024).join("1,") + 1 + "]")
-function f() {
- g();
- while (1) {}
+var sum = 0;
+for (var i = 0; i < ones.length; i++) {
+ sum += ones[i];
}
-
-assertThrows(function () { f(); });
« no previous file with comments | « test/cctest/test-types.cc ('k') | test/mjsunit/handle-count-runtime-literals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698