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

Unified Diff: test/mjsunit/compiler/dont-constant-fold-deopting-checks.js

Issue 2087153002: [turbofan] Add dedicated test for check constant folding. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test Created 4 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 | « src/compiler/js-typed-lowering.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/dont-constant-fold-deopting-checks.js
diff --git a/test/mjsunit/regress/regress-5006.js b/test/mjsunit/compiler/dont-constant-fold-deopting-checks.js
similarity index 66%
copy from test/mjsunit/regress/regress-5006.js
copy to test/mjsunit/compiler/dont-constant-fold-deopting-checks.js
index 29f145de0ac38c971c0c9174a83ea0cee285bb18..02bd8d9a257a6effbf7c736143f214077ed8ad4b 100644
--- a/test/mjsunit/regress/regress-5006.js
+++ b/test/mjsunit/compiler/dont-constant-fold-deopting-checks.js
@@ -4,8 +4,7 @@
// Flags: --allow-natives-syntax
-function foo(x) { return Math.imul(x|0, 2); }
-print(foo(1));
-print(foo(1));
+function bar(a) { a[0](true); }
+function foo(a) { return bar(1); }
%OptimizeFunctionOnNextCall(foo);
-print(foo(1));
+assertThrows(function() {bar([foo])}, TypeError);
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698