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

Unified Diff: test/mjsunit/bool-concat.js

Issue 157503002: A64: Synchronize with r18444. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/cctest/test-weaksets.cc ('k') | test/mjsunit/compiler/compare_objeq_elim.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/bool-concat.js
diff --git a/test/mjsunit/regress/regress-171641.js b/test/mjsunit/bool-concat.js
similarity index 88%
copy from test/mjsunit/regress/regress-171641.js
copy to test/mjsunit/bool-concat.js
index 8db6781821325f8f6253eb2df4abb2b362b001c0..1306dcbbbca526481951d0d5e29acbd9414840f3 100644
--- a/test/mjsunit/regress/regress-171641.js
+++ b/test/mjsunit/bool-concat.js
@@ -25,16 +25,15 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Flags: --allow-natives-syntax
-
-function foo(k, p) {
- for (var i = 0; i < 1; i++) {
- p = Math.min(p, i);
+function format(a) {
+ if (a) {
+ return "X"+true+"Y";
+ } else {
+ return "X"+false+"Y";
}
- m = Math.floor((k | 0) / p);
}
-foo(0, 1);
-foo(0, 1);
-%OptimizeFunctionOnNextCall(foo);
-foo(0, 1);
+for (var i = 0; i < 1000; i++) {
+ assertEquals("XtrueY", format(true));
+ assertEquals("XfalseY", format(false));
+}
« no previous file with comments | « test/cctest/test-weaksets.cc ('k') | test/mjsunit/compiler/compare_objeq_elim.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698