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

Unified Diff: test/mjsunit/regress/regress-crbug-648539.js

Issue 2357583003: [turbofan] Remove bogus constant materialization from frame. (Closed)
Patch Set: Created 4 years, 3 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/x87/code-generator-x87.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/regress-crbug-648539.js
diff --git a/test/mjsunit/regress/regress-crbug-621816.js b/test/mjsunit/regress/regress-crbug-648539.js
similarity index 54%
copy from test/mjsunit/regress/regress-crbug-621816.js
copy to test/mjsunit/regress/regress-crbug-648539.js
index ca7f5ac6df314f81e4c73f9417d1a6f3240540fc..399180f03ee90f4e41ff44c05f86883e88d77f39 100644
--- a/test/mjsunit/regress/regress-crbug-621816.js
+++ b/test/mjsunit/regress/regress-crbug-648539.js
@@ -2,17 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax --turbo
+// Flags: --allow-natives-syntax --harmony-tailcalls
function f() {
- var o = {};
- o.a = 1;
+ "use strict";
+ return undefined(0, 0);
}
function g() {
- var o = { ['a']: function(){} };
- f();
+ return f();
}
-f();
-f();
+assertThrows(g, TypeError);
+assertThrows(g, TypeError);
%OptimizeFunctionOnNextCall(g);
-g();
+assertThrows(g, TypeError);
« no previous file with comments | « src/compiler/x87/code-generator-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698