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

Side by Side Diff: test/mjsunit/compiler/generic-add.js

Issue 1071473003: Fix maybe_string_add for adds that have no type feedback where --always-opt is on. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merge status file. Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « src/hydrogen.cc ('k') | test/test262-es6/test262-es6.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 function dateL() {
6 var date = new Date();
7 return (date + true) == date.toString() + true;
8 }
9
10 function dateR() {
11 var date = new Date();
12 return (true + date) == true + date.toString();
13 }
14
15 function strL() {
16 return (new String(1) + true) == "1true";
17 }
18
19 function strR() {
20 return (true + new String(1)) == "true1";
21 }
22
23 assertTrue(dateL());
24 assertTrue(dateR());
25 assertTrue(strL());
26 assertTrue(strR());
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | test/test262-es6/test262-es6.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698