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

Unified Diff: test/mjsunit/compiler/deopt-accessors5.js

Issue 2198473002: [turbofan] Add support for accessor inlining. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@TurboFan_CheckMaps
Patch Set: Fix bailouts 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
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();

Powered by Google App Engine
This is Rietveld 408576698