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

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

Issue 2379043002: [ignition] BytecodeGraphBuilder: Merge correct environment in try block (Closed)
Patch Set: Add a global lookup test too 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/bytecode-graph-builder.cc ('k') | test/mjsunit/regress/regress-crbug-651403-global.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-651403.js
diff --git a/test/mjsunit/ignition/regress-629792-source-position-on-jump.js b/test/mjsunit/regress/regress-crbug-651403.js
similarity index 51%
copy from test/mjsunit/ignition/regress-629792-source-position-on-jump.js
copy to test/mjsunit/regress/regress-crbug-651403.js
index f87caf681a00af7d47b878013e1344f1cfd94c72..b549c56bafb4717ad164d2c23d23bd47e855e7cb 100644
--- a/test/mjsunit/ignition/regress-629792-source-position-on-jump.js
+++ b/test/mjsunit/regress/regress-crbug-651403.js
@@ -2,13 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-function f(t) {
- var f = t || this;
- for (var i in t) {
- for (var j in t) {
- (j);
- continue;
+// Flags: --ignition-staging --turbo --always-opt
+
+function f () {
+ var x = "";
+ function g() {
+ try {
+ eval('');
+ return x;
+ } catch(e) {
}
}
+ return g();
}
+
f();
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | test/mjsunit/regress/regress-crbug-651403-global.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698