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

Unified Diff: test/mjsunit/regress/regress-seqstrsetchar-ex2.js

Issue 14895019: Fix code gen bug on arm and mips; SeqStringSetChar overwrites a register; Add better default PrintD… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Integrate feedback from code review. Created 7 years, 7 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-seqstrsetchar-ex1.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-seqstrsetchar-ex2.js
diff --git a/test/mjsunit/regress/regress-2671-1.js b/test/mjsunit/regress/regress-seqstrsetchar-ex2.js
similarity index 89%
copy from test/mjsunit/regress/regress-2671-1.js
copy to test/mjsunit/regress/regress-seqstrsetchar-ex2.js
index 042a501e5adb86cd7d868ec721edef8edde27274..6acc2f285e654f52d497fb127ae88432b9452954 100644
--- a/test/mjsunit/regress/regress-2671-1.js
+++ b/test/mjsunit/regress/regress-seqstrsetchar-ex2.js
@@ -27,19 +27,9 @@
// Flags: --allow-natives-syntax
-var y;
-function f() {
- var a = [];
- a[20] = 0;
- y = 3;
- var i = 7 * (y + -0);
- a[i]++;
- assertTrue(isNaN(a[i]));
-}
-
-f();
-f();
-f();
-%OptimizeFunctionOnNextCall(f);
-f();
+String.fromCharCode(0xFFF, 0xFFF);
+String.fromCharCode(0x7C, 0x7C);
+%OptimizeFunctionOnNextCall(String.fromCharCode);
+String.fromCharCode(0x7C, 0x7C);
+String.fromCharCode(0xFFF, 0xFFF);
« no previous file with comments | « test/mjsunit/regress/regress-seqstrsetchar-ex1.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698