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

Unified Diff: test/mjsunit/regress/regress-captured-object-no-dummy-use.js

Issue 222283002: Do not generate LDummyUse instruction for HCapturedObject (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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/hydrogen-instructions.cc ('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-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();
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698