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

Unified Diff: test/mjsunit/compiler/deopt-accessors5.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-accessors4.js ('k') | test/mjsunit/compiler/deopt-accessors6.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/deopt-accessors5.js
diff --git a/test/mjsunit/regress/regress-crbug-595615.js b/test/mjsunit/compiler/deopt-accessors5.js
similarity index 52%
copy from test/mjsunit/regress/regress-crbug-595615.js
copy to test/mjsunit/compiler/deopt-accessors5.js
index 33095013fa1726d140a411af963c789274ef6594..1b23c532dc169ade6c414c706632f94a877beb10 100644
--- a/test/mjsunit/regress/regress-crbug-595615.js
+++ b/test/mjsunit/compiler/deopt-accessors5.js
@@ -6,10 +6,18 @@
"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 = {};
+ o.__defineSetter__('q', f);
+ assertEquals(1, o.q = 1);
+}
+
+test();
+test();
+%OptimizeFunctionOnNextCall(test);
+test();
« no previous file with comments | « test/mjsunit/compiler/deopt-accessors4.js ('k') | test/mjsunit/compiler/deopt-accessors6.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698