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

Unified Diff: test/mjsunit/array-push-non-smi-value.js

Issue 152823003: A64: Synchronize with r16489. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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/allocation-folding.js ('k') | test/mjsunit/compiler/escape-analysis.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/array-push-non-smi-value.js
diff --git a/test/mjsunit/compiler/increment-typefeedback.js b/test/mjsunit/array-push-non-smi-value.js
similarity index 90%
copy from test/mjsunit/compiler/increment-typefeedback.js
copy to test/mjsunit/array-push-non-smi-value.js
index 798959296c43014f252d65ae5dd11e00563bfd04..460dd2a911e88a592c221f9d3426ff69b14e0e9d 100644
--- a/test/mjsunit/compiler/increment-typefeedback.js
+++ b/test/mjsunit/array-push-non-smi-value.js
@@ -25,15 +25,12 @@
// (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 f(x) {
- x++;
- return x;
+// Check pushes of non-SMI values.
+var a = [];
+function func() {
+ return a.push(0x40000000) > 60;
}
-f(0.5);
-f(0.5);
-%OptimizeFunctionOnNextCall(f);
-f(0.5);
-assertOptimized(f);
+assertFalse(func());
+assertFalse(func());
+assertFalse(func());
« no previous file with comments | « test/mjsunit/allocation-folding.js ('k') | test/mjsunit/compiler/escape-analysis.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698