Index: test/mjsunit/regress/regress-captured-object-no-dummy-use.js |
diff --git a/test/mjsunit/neuter-twice.js b/test/mjsunit/regress/regress-captured-object-no-dummy-use.js |
similarity index 51% |
copy from test/mjsunit/neuter-twice.js |
copy to test/mjsunit/regress/regress-captured-object-no-dummy-use.js |
index 3501cee4330f966c1eeaf6f5b7ebdc6418f2bcec..cdf548d5fa6790a41237c9108a18731fc7e7b04d 100644 |
--- a/test/mjsunit/neuter-twice.js |
+++ b/test/mjsunit/regress/regress-captured-object-no-dummy-use.js |
@@ -4,6 +4,15 @@ |
// |
// Flags: --allow-natives-syntax |
-var ab = new ArrayBuffer(100); |
-%ArrayBufferNeuter(ab); |
-%ArrayBufferNeuter(ab); |
+var global = "10.1"; |
+function f() { } |
+function g(a) { this.d = a; } |
+function h() { |
+ var x = new f(); |
+ global.dummy = this; |
+ var y = new g(x); |
+} |
+h(); |
+h(); |
+%OptimizeFunctionOnNextCall(h); |
+h(); |