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

Unified Diff: test/mjsunit/compiler/deopt-accessors6.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 | « test/mjsunit/compiler/deopt-accessors5.js ('k') | test/mjsunit/compiler/deopt-accessors7.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/deopt-accessors6.js
diff --git a/test/mjsunit/regress/regress-crbug-595615.js b/test/mjsunit/compiler/deopt-accessors6.js
similarity index 51%
copy from test/mjsunit/regress/regress-crbug-595615.js
copy to test/mjsunit/compiler/deopt-accessors6.js
index 33095013fa1726d140a411af963c789274ef6594..16fb4ddf6409a0f423074b6817baa3c02d024d26 100644
--- a/test/mjsunit/regress/regress-crbug-595615.js
+++ b/test/mjsunit/compiler/deopt-accessors6.js
@@ -6,10 +6,19 @@
"use strict";
-function f(o) {
- return o.x();
+function f(v) {
+ %DeoptimizeFunction(test);
+ return 153;
}
-try { f({ x: 1 }); } catch(e) {}
-try { f({ x: 1 }); } catch(e) {}
-%OptimizeFunctionOnNextCall(f);
-try { f({ x: 1 }); } catch(e) {}
+
+function test() {
+ var o = {};
+ var q = "q";
+ o.__defineSetter__(q, f);
+ assertEquals(1, o[q] = 1);
+}
+
+test();
+test();
+%OptimizeFunctionOnNextCall(test);
+test();
« no previous file with comments | « test/mjsunit/compiler/deopt-accessors5.js ('k') | test/mjsunit/compiler/deopt-accessors7.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698