summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/array-indexing-receiver.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/array-indexing-receiver.js')
-rw-r--r--deps/v8/test/mjsunit/array-indexing-receiver.js82
1 files changed, 41 insertions, 41 deletions
diff --git a/deps/v8/test/mjsunit/array-indexing-receiver.js b/deps/v8/test/mjsunit/array-indexing-receiver.js
index 5d1dbf3e56..ea8d02b218 100644
--- a/deps/v8/test/mjsunit/array-indexing-receiver.js
+++ b/deps/v8/test/mjsunit/array-indexing-receiver.js
@@ -10,15 +10,15 @@
var kIterCount = 1;
var kTests = {
Array: {
- FAST_ELEMENTS() {
+ PACKED_ELEMENTS() {
var r = /foo/;
var s = new String("bar");
var p = new Proxy({}, {});
var o = {};
var array = [r, s, p];
- assertTrue(%HasFastObjectElements(array));
- assertFalse(%HasFastHoleyElements(array));
+ assertTrue(%HasObjectElements(array));
+ assertFalse(%HasHoleyElements(array));
for (var i = 0; i < kIterCount; ++i) {
assertEquals(array.indexOf(p), 2);
@@ -26,14 +26,14 @@ var kTests = {
}
},
- FAST_HOLEY_ELEMENTS() {
+ HOLEY_ELEMENTS() {
var r = /foo/;
var p = new Proxy({}, {});
var o = {};
var array = [r, , p];
- assertTrue(%HasFastObjectElements(array));
- assertTrue(%HasFastHoleyElements(array));
+ assertTrue(%HasObjectElements(array));
+ assertTrue(%HasHoleyElements(array));
for (var i = 0; i < kIterCount; ++i) {
assertEquals(array.indexOf(p), 2);
@@ -41,10 +41,10 @@ var kTests = {
}
},
- FAST_SMI_ELEMENTS() {
+ PACKED_SMI_ELEMENTS() {
var array = [0, 88, 9999, 1, -5, 7];
- assertTrue(%HasFastSmiElements(array));
- assertFalse(%HasFastHoleyElements(array));
+ assertTrue(%HasSmiElements(array));
+ assertFalse(%HasHoleyElements(array));
for (var i = 0; i < kIterCount; ++i) {
assertEquals(array.indexOf(9999), 2);
@@ -55,10 +55,10 @@ var kTests = {
}
},
- FAST_HOLEY_SMI_ELEMENTS() {
+ HOLEY_SMI_ELEMENTS() {
var array = [49, , , 72, , , 67, -48];
- assertTrue(%HasFastSmiElements(array));
- assertTrue(%HasFastHoleyElements(array));
+ assertTrue(%HasSmiElements(array));
+ assertTrue(%HasHoleyElements(array));
for (var i = 0; i < kIterCount; ++i) {
assertEquals(array.indexOf(72), 3);
@@ -70,11 +70,11 @@ var kTests = {
}
},
- FAST_DOUBLE_ELEMENTS() {
+ PACKED_DOUBLE_ELEMENTS() {
var array = [7.00000001, -13000.89412, 73451.4124,
5824.48, 6.0000495, 48.3488, 44.0, 76.35, NaN, 78.4];
- assertTrue(%HasFastDoubleElements(array));
- assertFalse(%HasFastHoleyElements(array));
+ assertTrue(%HasDoubleElements(array));
+ assertFalse(%HasHoleyElements(array));
for (var i = 0; i < kIterCount; ++i) {
assertEquals(array.indexOf(7.00000001), 0);
@@ -87,11 +87,11 @@ var kTests = {
}
},
- FAST_HOLEY_DOUBLE_ELEMENTS() {
+ HOLEY_DOUBLE_ELEMENTS() {
var array = [7.00000001, -13000.89412, ,
5824.48, , 48.3488, , NaN, , 78.4];
- assertTrue(%HasFastDoubleElements(array));
- assertTrue(%HasFastHoleyElements(array));
+ assertTrue(%HasDoubleElements(array));
+ assertTrue(%HasHoleyElements(array));
for (var i = 0; i < kIterCount; ++i) {
assertEquals(array.indexOf(7.00000001), 0);
@@ -123,16 +123,16 @@ var kTests = {
},
Object: {
- FAST_ELEMENTS() {
+ PACKED_ELEMENTS() {
var r = /foo/;
var s = new String("bar");
var p = new Proxy({}, {});
var o = {};
var object = { 0: r, 1: s, 2: p, length: 3 };
- assertTrue(%HasFastObjectElements(object));
- // TODO(caitp): JSObjects always seem to start with FAST_HOLEY_ELEMENTS
- // assertFalse(%HasFastHoleyElements(object));
+ assertTrue(%HasObjectElements(object));
+ // TODO(caitp): JSObjects always seem to start with HOLEY_ELEMENTS
+ // assertFalse(%HasHoleyElements(object));
for (var i = 0; i < kIterCount; ++i) {
assertEquals(Array.prototype.indexOf.call(object, p), 2);
@@ -140,14 +140,14 @@ var kTests = {
}
},
- FAST_HOLEY_ELEMENTS() {
+ HOLEY_ELEMENTS() {
var r = /foo/;
var p = new Proxy({}, {});
var o = {};
var object = { 0: r, 2: p, length: 3 };
- assertTrue(%HasFastObjectElements(object));
- assertTrue(%HasFastHoleyElements(object));
+ assertTrue(%HasObjectElements(object));
+ assertTrue(%HasHoleyElements(object));
for (var i = 0; i < kIterCount; ++i) {
assertEquals(Array.prototype.indexOf.call(object, p), 2);
@@ -155,11 +155,11 @@ var kTests = {
}
},
- FAST_SMI_ELEMENTS() {
+ PACKED_SMI_ELEMENTS() {
var object = { 0: 0, 1: 88, 2: 9999, 3: 1, 4: -5, 5: 7, length: 6 };
- // TODO(caitp): JSObjects always seem to start with FAST_HOLEY_ELEMENTS
- // assertTrue(%HasFastSmiElements(object));
- // assertFalse(%HasFastHoleyElements(object));
+ // TODO(caitp): JSObjects always seem to start with HOLEY_ELEMENTS
+ // assertTrue(%HasSmiElements(object));
+ // assertFalse(%HasHoleyElements(object));
for (var i = 0; i < kIterCount; ++i) {
assertEquals(Array.prototype.indexOf.call(object, 9999), 2);
@@ -170,11 +170,11 @@ var kTests = {
}
},
- FAST_HOLEY_SMI_ELEMENTS() {
+ HOLEY_SMI_ELEMENTS() {
var object = { 0: 49, 3: 72, 6: 67, 7: -48, length: 8 };
- // TODO(caitp): JSObjects always seem to start with FAST_HOLEY_ELEMENTS
- // assertTrue(%HasFastSmiElements(object));
- // assertTrue(%HasFastHoleyElements(object));
+ // TODO(caitp): JSObjects always seem to start with HOLEY_ELEMENTS
+ // assertTrue(%HasSmiElements(object));
+ // assertTrue(%HasHoleyElements(object));
for (var i = 0; i < kIterCount; ++i) {
assertEquals(Array.prototype.indexOf.call(object, 72), 3);
@@ -186,13 +186,13 @@ var kTests = {
}
},
- FAST_DOUBLE_ELEMENTS() {
+ PACKED_DOUBLE_ELEMENTS() {
var object = { 0: 7.00000001, 1: -13000.89412, 2: 73451.4124,
3: 5824.48, 4: 6.0000495, 5: 48.3488, 6: 44.0, 7: 76.35,
8: NaN, 9: 78.4, length: 10 };
- // TODO(caitp): JSObjects always seem to start with FAST_HOLEY_ELEMENTS
- // assertTrue(%HasFastDoubleElements(object));
- // assertFalse(%HasFastHoleyElements(object));
+ // TODO(caitp): JSObjects always seem to start with HOLEY_ELEMENTS
+ // assertTrue(%HasDoubleElements(object));
+ // assertFalse(%HasHoleyElements(object));
for (var i = 0; i < kIterCount; ++i) {
assertEquals(Array.prototype.indexOf.call(object, 7.00000001), 0);
@@ -205,12 +205,12 @@ var kTests = {
}
},
- FAST_HOLEY_DOUBLE_ELEMENTS() {
+ HOLEY_DOUBLE_ELEMENTS() {
var object = { 0: 7.00000001, 1: -13000.89412, 3: 5824.48, 5: 48.3488,
7: NaN, 9: 78.4, length: 10 };
- // TODO(caitp): JSObjects always seem to start with FAST_HOLEY_ELEMENTS
- // assertTrue(%HasFastDoubleElements(object));
- // assertTrue(%HasFastHoleyElements(object));
+ // TODO(caitp): JSObjects always seem to start with HOLEY_ELEMENTS
+ // assertTrue(%HasDoubleElements(object));
+ // assertTrue(%HasHoleyElements(object));
for (var i = 0; i < kIterCount; ++i) {
assertEquals(Array.prototype.indexOf.call(object, 7.00000001), 0);