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

Unified Diff: test/mjsunit/regress-ntl.js

Issue 785233003: Revert "[turbofan] Fix control reducer bug with NTLs." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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/control-reducer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress-ntl.js
diff --git a/test/mjsunit/regress-ntl.js b/test/mjsunit/regress-ntl.js
deleted file mode 100644
index 993599e552369a2964c26fade7dc594c1f9d0a20..0000000000000000000000000000000000000000
--- a/test/mjsunit/regress-ntl.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2014 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Flags: --allow-natives-syntax
-
-function mod1() {
- var v_1 = 1;
- var v_2 = 1;
- v_1++;
- v_2 = {valueOf: function() { throw "gagh"; }};
-
- function bug1() {
- for (var i = 0; i < 1; v_2++) {
- if (v_1 == 1) ;
- }
- }
-
- return bug1;
-}
-
-var f = mod1();
-assertThrows(f);
-%OptimizeFunctionOnNextCall(f);
-assertThrows(f);
-
-
-var v_3 = 1;
-var v_4 = 1;
-v_3++;
-v_4 = {valueOf: function() { throw "gagh"; }};
-
-function bug2() {
- for (var i = 0; i < 1; v_4++) {
- if (v_3 == 1) ;
- }
-}
-
-assertThrows(bug2);
-%OptimizeFunctionOnNextCall(bug2);
-assertThrows(bug2);
« no previous file with comments | « src/compiler/control-reducer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698