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

Unified Diff: test/mjsunit/regress/regress-354357.js

Issue 222003005: Merged r20087, r20137, r20155, r20158, r20197 into 3.24 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.24
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/x64/lithium-codegen-x64.cc ('k') | test/mjsunit/regress/regress-354433.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-354357.js
diff --git a/test/mjsunit/regress/regress-convert-function-to-double.js b/test/mjsunit/regress/regress-354357.js
similarity index 92%
copy from test/mjsunit/regress/regress-convert-function-to-double.js
copy to test/mjsunit/regress/regress-354357.js
index fca44f96324383a43daf393174f845d14f94bd9e..84b7ebd620b7448f8a68e044d5a4b93f62d4d825 100644
--- a/test/mjsunit/regress/regress-convert-function-to-double.js
+++ b/test/mjsunit/regress/regress-354357.js
@@ -25,12 +25,14 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-function f(v) {
- this.func = v;
+// Flags: --always-opt
+
+var v = {};
+function inlined() {
+ return !(v.bar++);
}
+function outer() {
+ inlined();
+};
-var o1 = new f(f);
-var d = 1.4;
-var o2 = new f(d);
-o2.func = 1.8;
-assertEquals(1.4, d)
+outer();
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | test/mjsunit/regress/regress-354433.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698