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

Side by Side Diff: test/mjsunit/array-feedback.js

Issue 23441080: Correct large packed array length limitation (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: make consistent change Created 7 years, 2 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 | « test/mjsunit/array-constructor-feedback.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 create1(0); 112 create1(0);
113 create1(0); 113 create1(0);
114 a = create1(0); 114 a = create1(0);
115 assertFalse(isHoley(a)); 115 assertFalse(isHoley(a));
116 assertKind(elements_kind.fast_smi_only, a); 116 assertKind(elements_kind.fast_smi_only, a);
117 a[0] = "hello"; 117 a[0] = "hello";
118 b = create1(10); 118 b = create1(10);
119 assertTrue(isHoley(b)); 119 assertTrue(isHoley(b));
120 assertKind(elements_kind.fast, b); 120 assertKind(elements_kind.fast, b);
121 121
122 a = create1(100000); 122 a = create1(100001);
123 assertKind(elements_kind.dictionary, a); 123 assertKind(elements_kind.dictionary, a);
124 124
125 function create3(arg1, arg2, arg3) { 125 function create3(arg1, arg2, arg3) {
126 return Array(arg1, arg2, arg3); 126 return Array(arg1, arg2, arg3);
127 } 127 }
128 128
129 create3(); 129 create3();
130 create3(); 130 create3();
131 a = create3(1,2,3); 131 a = create3(1,2,3);
132 a[0] = 3.5; 132 a[0] = 3.5;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 var realmBArray = Realm.eval(realmB, "Array"); 213 var realmBArray = Realm.eval(realmB, "Array");
214 instanceof_check(Array); 214 instanceof_check(Array);
215 instanceof_check(Array); 215 instanceof_check(Array);
216 instanceof_check(Array); 216 instanceof_check(Array);
217 instanceof_check(realmBArray); 217 instanceof_check(realmBArray);
218 instanceof_check(realmBArray); 218 instanceof_check(realmBArray);
219 instanceof_check(realmBArray); 219 instanceof_check(realmBArray);
220 })(); 220 })();
221 } 221 }
OLDNEW
« no previous file with comments | « test/mjsunit/array-constructor-feedback.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698