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

Unified Diff: test/mjsunit/regress/regress-existing-shared-function-info.js

Issue 1211803002: Reland 2 "Keep a canonical list of shared function infos." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add test case Created 5 years, 6 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/regress/regress-4121.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-existing-shared-function-info.js
diff --git a/test/mjsunit/compiler/regress-469089.js b/test/mjsunit/regress/regress-existing-shared-function-info.js
similarity index 54%
copy from test/mjsunit/compiler/regress-469089.js
copy to test/mjsunit/regress/regress-existing-shared-function-info.js
index 6aff2b720305290570124cec0dd7a4a959f05694..a53014c0340386233b1eaa557ebb7bca8752962b 100644
--- a/test/mjsunit/compiler/regress-469089.js
+++ b/test/mjsunit/regress/regress-existing-shared-function-info.js
@@ -4,13 +4,15 @@
// Flags: --expose-gc
-(function() {
- var __v_6 = false;
- function f(val, idx) {
- if (idx === 1) {
- gc();
- __v_6 = (val === 0);
- }
+function f() {
+ return function g() {
+ return function h() {}
}
- f(.1, 1);
-})();
+}
+
+var h = f()();
+
+// Make sure code has been flushed.
+for (var i of Array(10)) gc();
+
+f()();
« no previous file with comments | « test/mjsunit/regress/regress-4121.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698