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

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

Issue 558593002: Hydrogen: bailout when there is a throw statement in a non-effect context. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/hydrogen.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-412208.js
diff --git a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js b/test/mjsunit/regress/regress-crbug-412208.js
similarity index 68%
copy from test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js
copy to test/mjsunit/regress/regress-crbug-412208.js
index 658d776ea3b80cd00d256a5514603bdb3df1f179..a194f855b4cb7b1f2a6dd73999cfb742cc790575 100644
--- a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js
+++ b/test/mjsunit/regress/regress-crbug-412208.js
@@ -4,18 +4,13 @@
// Flags: --allow-natives-syntax
-function g() {
- arguments.length;
-}
-
-var global = "";
+var non_const_true = true;
function f() {
- global.dummy = this;
- g({});
+ return non_const_true || (f() = this);
}
-f();
-f();
+assertTrue(f());
+assertTrue(f());
%OptimizeFunctionOnNextCall(f);
-f();
+assertTrue(f());
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698