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

Side by Side Diff: test/mjsunit/array-push-hole-double.js

Issue 2497243002: [stubs] Port builtin for Array.push fast-case from Crankshaft to TF (Closed)
Patch Set: Fix GC mole Created 4 years 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 | « test/cctest/test-code-stub-assembler.cc ('k') | test/mjsunit/array-push11.js » ('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 2016 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 // Flags: --allow-natives-syntax
6
7 [1].push(1);
8
9 (function PushHoleBitPattern() {
10 function g(src, dst, i) {
11 dst[i] = src[i];
12 }
13
14 var b = new ArrayBuffer(8);
15 var i32 = new Int32Array(b);
16 i32[0] = 0xFFF7FFFF;
17 i32[1] = 0xFFF7FFFF;
18 var f64 = new Float64Array(b);
19
20 var a = [,2.5];
21 a.push(f64[0]);
22 assertTrue(Number.isNaN(a[2]));
23 })();
OLDNEW
« no previous file with comments | « test/cctest/test-code-stub-assembler.cc ('k') | test/mjsunit/array-push11.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698