Searched refs:array_proto (Results 1 – 14 of 14) sorted by relevance
/external/v8/test/mjsunit/ |
D | array-shift.js | 78 var array_proto = new Array(); 79 array_proto[3] = "@3"; 80 array_proto[7] = "@7"; 81 array.__proto__ = array_proto; 85 assertEquals(array[i], array_proto[i]); 92 assertEquals(array[2], array_proto[3]); 95 assertEquals(array[6], array_proto[7]); 99 array_proto[5] = "@5"; 100 assertEquals(array[5], array_proto[5]); 103 assertEquals(array[3], array_proto[3]); [all …]
|
D | array-unshift.js | 128 var array_proto = []; 129 array_proto[0] = at0; 130 array_proto[2] = at2; 131 array.__proto__ = array_proto; 161 var array_proto = [] 162 array_proto[3] = "@3"; 163 array_proto[7] = "@7"; 164 array.__proto__ = array_proto; 168 assertEquals(array[i], array_proto[i]); 175 assertEquals(array[4], array_proto[3]); [all …]
|
D | array-pop.js | 88 var array_proto = []; 89 array_proto[1] = 1; 90 array_proto[3] = 3; 91 array_proto[5] = 5; 92 array_proto[7] = 7; 93 array_proto[9] = 9; 95 a.__proto__ = array_proto; 101 var inherited = array_proto.hasOwnProperty(j); 105 assertEquals(inherited, array_proto.hasOwnProperty(j),
|
D | array-slice.js | 140 var array_proto = []; 141 array_proto[3] = at3; 142 array_proto[7] = at7; 143 array.__proto__ = array_proto; 147 assertEquals(array[i], array_proto[i]); 154 assertTrue(delete array_proto[3]); 155 assertTrue(delete array_proto[7]); 169 array_proto[5] = "@5"; 170 assertEquals(array[5], array_proto[5]);
|
D | array-concat.js | 37 var array_proto = []; variable 38 a.__proto__ = array_proto; 58 array_proto["123"] = 'baz'; 70 array_proto["123"] = undefined; 76 array_proto[123] = 'baz'; 84 array_proto.moe = 'joe'; 93 array_proto.moe = undefined;
|
D | array-splice.js | 253 var array_proto = []; 254 array_proto[3] = at3; 255 array_proto[7] = at7; 256 array.__proto__ = array_proto; 266 assertTrue(delete array_proto[3]); 268 assertTrue(delete array_proto[7]);
|
/external/chromium_org/v8/test/mjsunit/ |
D | array-shift.js | 78 var array_proto = new Array(); 79 array_proto[3] = "@3"; 80 array_proto[7] = "@7"; 81 array.__proto__ = array_proto; 85 assertEquals(array[i], array_proto[i]); 92 assertEquals(array[2], array_proto[3]); 95 assertEquals(array[6], array_proto[7]); 99 array_proto[5] = "@5"; 100 assertEquals(array[5], array_proto[5]); 103 assertEquals(array[3], array_proto[3]); [all …]
|
D | array-unshift.js | 128 var array_proto = []; 129 array_proto[0] = at0; 130 array_proto[2] = at2; 131 array.__proto__ = array_proto; 161 var array_proto = [] 162 array_proto[3] = "@3"; 163 array_proto[7] = "@7"; 164 array.__proto__ = array_proto; 168 assertEquals(array[i], array_proto[i]); 175 assertEquals(array[4], array_proto[3]); [all …]
|
D | array-pop.js | 88 var array_proto = []; 89 array_proto[1] = 1; 90 array_proto[3] = 3; 91 array_proto[5] = 5; 92 array_proto[7] = 7; 93 array_proto[9] = 9; 95 a.__proto__ = array_proto; 101 var inherited = array_proto.hasOwnProperty(j); 105 assertEquals(inherited, array_proto.hasOwnProperty(j),
|
D | array-slice.js | 140 var array_proto = []; 141 array_proto[3] = at3; 142 array_proto[7] = at7; 143 array.__proto__ = array_proto; 147 assertEquals(array[i], array_proto[i]); 154 assertTrue(delete array_proto[3]); 155 assertTrue(delete array_proto[7]); 169 array_proto[5] = "@5"; 170 assertEquals(array[5], array_proto[5]);
|
D | array-concat.js | 37 var array_proto = []; variable 38 a.__proto__ = array_proto; 58 array_proto["123"] = 'baz'; 70 array_proto["123"] = undefined; 76 array_proto[123] = 'baz'; 84 array_proto.moe = 'joe'; 93 array_proto.moe = undefined;
|
D | array-splice.js | 253 var array_proto = []; 254 array_proto[3] = at3; 255 array_proto[7] = at7; 256 array.__proto__ = array_proto; 266 assertTrue(delete array_proto[3]); 268 assertTrue(delete array_proto[7]);
|
/external/v8/src/ |
D | builtins.cc | 393 JSObject* array_proto) { in ArrayPrototypeHasNoElements() argument 396 if (array_proto->elements() != heap->empty_fixed_array()) return false; in ArrayPrototypeHasNoElements() 398 Object* proto = array_proto->GetPrototype(); in ArrayPrototypeHasNoElements() 400 array_proto = JSObject::cast(proto); in ArrayPrototypeHasNoElements() 401 if (array_proto != global_context->initial_object_prototype()) return false; in ArrayPrototypeHasNoElements() 402 if (array_proto->elements() != heap->empty_fixed_array()) return false; in ArrayPrototypeHasNoElements() 403 return array_proto->GetPrototype()->IsNull(); in ArrayPrototypeHasNoElements() 452 JSObject* array_proto = in IsJSArrayFastElementMovingAllowed() local 454 return receiver->GetPrototype() == array_proto && in IsJSArrayFastElementMovingAllowed() 455 ArrayPrototypeHasNoElements(heap, global_context, array_proto); in IsJSArrayFastElementMovingAllowed() [all …]
|
/external/chromium_org/v8/src/ |
D | builtins.cc | 290 JSObject* array_proto) { in ArrayPrototypeHasNoElements() argument 293 if (array_proto->elements() != heap->empty_fixed_array()) return false; in ArrayPrototypeHasNoElements() 295 Object* proto = array_proto->GetPrototype(); in ArrayPrototypeHasNoElements() 297 array_proto = JSObject::cast(proto); in ArrayPrototypeHasNoElements() 298 if (array_proto != native_context->initial_object_prototype()) return false; in ArrayPrototypeHasNoElements() 299 if (array_proto->elements() != heap->empty_fixed_array()) return false; in ArrayPrototypeHasNoElements() 300 return array_proto->GetPrototype()->IsNull(); in ArrayPrototypeHasNoElements() 361 JSObject* array_proto = in IsJSArrayFastElementMovingAllowed() local 363 return receiver->GetPrototype() == array_proto && in IsJSArrayFastElementMovingAllowed() 364 ArrayPrototypeHasNoElements(heap, native_context, array_proto); in IsJSArrayFastElementMovingAllowed() [all …]
|