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()(); |