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

Side by Side Diff: test/mjsunit/array-push13.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/mjsunit/array-push11.js ('k') | test/mjsunit/array-push14.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 function __f_17(__v_9) {
6 for (var count = 0; count < 20000; ++count) {
7 if (count < 100) {
8 __v_9.push(3);
9 } else if (count < 2500) {
10 __v_9.push(2.5);
11 } else {
12 __v_9.push(true);
13 }
14 }
15 return __v_9;
16 }
17
18 let a = __f_17([]);
19 assertEquals(a[0], 3);
20 assertEquals(a[10], 3);
21 assertEquals(a[2499], 2.5);
22 assertEquals(a[10000], true);
OLDNEW
« no previous file with comments | « test/mjsunit/array-push11.js ('k') | test/mjsunit/array-push14.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698