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

Unified Diff: test/mjsunit/compiler/accessor-exceptions1.js

Issue 2197913002: [turbofan] Fix various bailout points for AstGraphBuilder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments Created 4 years, 5 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/ast-graph-builder.cc ('k') | test/mjsunit/compiler/accessor-exceptions2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/accessor-exceptions1.js
diff --git a/test/mjsunit/regress/regress-crbug-629823.js b/test/mjsunit/compiler/accessor-exceptions1.js
similarity index 52%
copy from test/mjsunit/regress/regress-crbug-629823.js
copy to test/mjsunit/compiler/accessor-exceptions1.js
index bbf74b80afd2fa52b020a03b19553c6d257d43ff..716d229abab8ec8a7bca620d724e1382f1ba9eb5 100644
--- a/test/mjsunit/regress/regress-crbug-629823.js
+++ b/test/mjsunit/compiler/accessor-exceptions1.js
@@ -5,13 +5,17 @@
// Flags: --allow-natives-syntax
var o = {}
-function bar() {
- o[0] = +o[0];
- o = /\u23a1|__v_4/;
+Object.defineProperty(o, "x", {
+ get: function() { throw 7; }
+});
+
+function foo(o) {
+ var x = 1;
+ try { o.x; } catch (e) { x = e; }
+ return x;
}
-bar();
-bar();
-bar();
-function foo() { bar(); }
+
+assertEquals(7, foo(o));
+assertEquals(7, foo(o));
%OptimizeFunctionOnNextCall(foo);
-foo();
+assertEquals(7, foo(o));
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | test/mjsunit/compiler/accessor-exceptions2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698