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

Unified Diff: test/mjsunit/compiler/lazy-deopt-in-literal.js

Issue 1095203005: Fix stack layout of full code arm64 for object literal. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/arm64/full-codegen-arm64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/lazy-deopt-in-literal.js
diff --git a/test/mjsunit/compiler/regress-ntl-effect.js b/test/mjsunit/compiler/lazy-deopt-in-literal.js
similarity index 50%
copy from test/mjsunit/compiler/regress-ntl-effect.js
copy to test/mjsunit/compiler/lazy-deopt-in-literal.js
index 708fe32828c9197dfa3d8c371ab01cbc1ad3317a..0a1481c571a0a8ec20e9ed3ff65bbd7a4f44aece 100644
--- a/test/mjsunit/compiler/regress-ntl-effect.js
+++ b/test/mjsunit/compiler/lazy-deopt-in-literal.js
@@ -4,13 +4,17 @@
// Flags: --allow-natives-syntax
-function g() {
- throw 0;
+function deopt() {
+ %DeoptimizeFunction(fun3);
}
-function f() {
- g();
- while (1) {}
+function fun3() {
+ var r = { 113: deopt(), 113: 7 };
+ return r[113];
}
-assertThrows(function () { f(); });
+fun3();
+fun3();
+%OptimizeFunctionOnNextCall(fun3);
+var y = fun3();
+assertEquals(7, y);
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698