/external/v8/test/webkit/fast/js/kde/ |
D | inbuilt_function_proto-expected.txt | 29 PASS Object.prototype.toString.__proto__ is Function.prototype 30 PASS Object.prototype.valueOf.__proto__ is Function.prototype 31 PASS Array.prototype.toString.__proto__ is Function.prototype 32 PASS Array.prototype.toLocaleString.__proto__ is Function.prototype 33 PASS Array.prototype.concat.__proto__ is Function.prototype 34 PASS Array.prototype.join.__proto__ is Function.prototype 35 PASS Array.prototype.pop.__proto__ is Function.prototype 36 PASS Array.prototype.push.__proto__ is Function.prototype 37 PASS Array.prototype.reverse.__proto__ is Function.prototype 38 PASS Array.prototype.shift.__proto__ is Function.prototype [all …]
|
/external/v8/test/mjsunit/ |
D | function-call.js | 30 [Object.prototype.toLocaleString, 31 Object.prototype.valueOf, 32 Object.prototype.hasOwnProperty, 33 Object.prototype.isPrototypeOf, 34 Object.prototype.propertyIsEnumerable, 35 Array.prototype.concat, 36 Array.prototype.join, 37 Array.prototype.pop, 38 Array.prototype.push, 39 Array.prototype.reverse, [all …]
|
D | value-wrapper.js | 105 String.prototype.TypeOfThis = TypeOfThis; 106 Boolean.prototype.TypeOfThis = TypeOfThis; 107 Number.prototype.TypeOfThis = TypeOfThis; 108 Boolean.prototype[7] = TypeOfThis; 109 Number.prototype[7] = TypeOfThis; 111 String.prototype.ObjectValueOf = Object.prototype.valueOf; 112 Boolean.prototype.ObjectValueOf = Object.prototype.valueOf; 113 Number.prototype.ObjectValueOf = Object.prototype.valueOf; 115 String.prototype.ObjectToString = Object.prototype.toString; 116 Boolean.prototype.ObjectToString = Object.prototype.toString; [all …]
|
D | length.js | 32 assertEquals(0, Array.prototype.length, "Array.prototype.length"); 34 assertEquals(1, Array.prototype.concat.length, "Array.prototype.concat.length"); 35 assertEquals(1, Array.prototype.join.length, "Array.prototype.join.length"); 36 assertEquals(1, Array.prototype.push.length, "Array.prototype.push.length"); 37 assertEquals(1, Array.prototype.unshift.length, "Array.prototype.unshift.length"); 42 assertEquals(1, Function.prototype.call.length, "Function.prototype.call.length"); 44 assertEquals(1, Number.prototype.toExponential.length, "Number.prototype.toExponential.length"); 45 assertEquals(1, Number.prototype.toFixed.length, "Number.prototype.toFixed.length"); 46 assertEquals(1, Number.prototype.toPrecision.length, "Number.prototype.toPrecision.length"); 52 assertEquals(1, String.prototype.concat.length, "String.prototype.concat.length"); [all …]
|
D | array-tostring.js | 60 a4.__proto__ = { toString: Array.prototype.toString }; 69 toString: Array.prototype.toString, 70 join: Array.prototype.join}; 76 var o2 = {toString : Array.prototype.toString, 85 toString: Array.prototype.toString, 92 toString: Array.prototype.toString, 99 toString: Array.prototype.toString 108 Object.defineProperty(Number.prototype, "join", {get: function() { 114 Number.prototype.arrayToString = Array.prototype.toString; 121 Array.prototype.toString = function() { assertUnreachable(); }; [all …]
|
D | function-prototype.js | 33 F.prototype = value; 35 assertEquals(value, F.prototype); 36 assertEquals(Object.prototype, f.__proto__); 47 assertEquals(f.__proto__, F.prototype); 48 F.prototype = 42; 50 assertEquals(Object.prototype, f.__proto__); 51 assertEquals(42, F.prototype); 52 F.prototype = { a: 42 }; 54 assertEquals(42, F.prototype.a); 55 assertEquals(f.__proto__, F.prototype); [all …]
|
D | error-constructors.js | 31 var desc = Object.getOwnPropertyDescriptor(Error.prototype, 'name'); 33 desc = Object.getOwnPropertyDescriptor(Error.prototype, 'message'); 54 ReferenceError.prototype.__defineSetter__('name', fail); 55 ReferenceError.prototype.__defineSetter__('message', fail); 56 ReferenceError.prototype.__defineSetter__('stack', fail); 74 var name = errors[i].prototype.toString(); 78 errors[i].prototype.__defineGetter__(props[j], fail); 90 MyError.prototype = new Error; 93 errors[i].prototype.__defineGetter__("name", function() { return "my"; }); 94 errors[i].prototype.__defineGetter__("message", function() { return "moo"; }); [all …]
|
/external/v8/test/mjsunit/es6/ |
D | string-html.js | 12 assertEquals(String.prototype.anchor.call(0x2A, 0x2A), '<a name="42">42</a>'); 14 String.prototype.anchor.call(undefined); 17 String.prototype.anchor.call(null); 19 assertEquals(String.prototype.anchor.length, 1); 23 assertEquals(String.prototype.big.call(0x2A), '<big>42</big>'); 25 String.prototype.big.call(undefined); 28 String.prototype.big.call(null); 30 assertEquals(String.prototype.big.length, 0); 34 assertEquals(String.prototype.blink.call(0x2A), '<blink>42</blink>'); 36 String.prototype.blink.call(undefined); [all …]
|
D | typed-array-iterator.js | 13 assertTrue(constructor.prototype.hasOwnProperty('entries')); 14 assertTrue(constructor.prototype.hasOwnProperty('values')); 15 assertTrue(constructor.prototype.hasOwnProperty('keys')); 16 assertTrue(constructor.prototype.hasOwnProperty(Symbol.iterator)); 18 assertFalse(constructor.prototype.propertyIsEnumerable('entries')); 19 assertFalse(constructor.prototype.propertyIsEnumerable('values')); 20 assertFalse(constructor.prototype.propertyIsEnumerable('keys')); 21 assertFalse(constructor.prototype.propertyIsEnumerable(Symbol.iterator)); 23 assertEquals(Array.prototype.entries, constructor.prototype.entries); 24 assertEquals(Array.prototype[Symbol.iterator], constructor.prototype.values); [all …]
|
/external/v8/test/webkit/fast/js/ |
D | toString-number-expected.txt | 24 Test the conversion performed by the function Number.prototype.toString. 30 PASS Number.prototype.toString.call(0) is "0" 31 PASS Number.prototype.toString.call(new Number(0)) is "0" 35 PASS Number.prototype.toString.call(0, 2) is "0" 36 PASS Number.prototype.toString.call(new Number(0), 2) is "0" 38 PASS Number.prototype.toString.call(0, 36) is "0" 39 PASS Number.prototype.toString.call(new Number(0), 36) is "0" 41 PASS Number.prototype.toString.call(-1) is "-1" 42 PASS Number.prototype.toString.call(new Number(-1)) is "-1" 46 PASS Number.prototype.toString.call(-1, 2) is "-1" [all …]
|
D | array-functions-non-arrays-expected.txt | 33 PASS Array.prototype.toString.call({}) is "[object Object]" 34 PASS Array.prototype.toString.call(new Date) is "[object Date]" 35 PASS Array.prototype.toString.call({sort: function() { return 'sort' }}) is "[object Object]" 36 PASS Array.prototype.toString.call({join: function() { return 'join' }}) is "join" 37 PASS Array.prototype.toString.call({__proto__: Array.prototype, 0: 'a', 1: 'b', 2: 'c', length: 3})… 38 PASS ({__proto__: Array.prototype, 0: 'a', 1: 'b', 2: 'c', length: 3}).toString() is "a,b,c" 39 PASS Array.prototype.toString.call({__proto__: Array.prototype, 0: 'a', 1: 'b', 2: 'c', length: 3, … 40 PASS ({__proto__: Array.prototype, 0: 'a', 1: 'b', 2: 'c', length: 3, join: function() { return 'jo… 41 PASS Array.prototype.toString.call(42) is "Number.prototype.join:42" 43 FAIL Array.prototype.toLocaleString.call({}) should throw an exception. Was . [all …]
|
D | primitive-property-access-edge-cases.js | 31 delete String.prototype.constructor; 37 String.prototype.__proto__ = { x: 1, y: 1 }; 38 delete String.prototype.__proto__.x; 48 String.prototype.x = 1; 49 String.prototype.y = 1; 50 delete String.prototype.x; 52 Number.prototype.x = 1; 53 Number.prototype.y = 1; 54 delete Number.prototype.x; 69 …Object.defineProperty(constructor.prototype, "foo", { get: function() { checkOkay = typeof this ==… [all …]
|
D | array-prototype-properties-expected.txt | 29 PASS Array.prototype.toString.call(undefined) threw exception TypeError: Cannot convert undefined o… 30 PASS Array.prototype.toLocaleString.call(undefined) threw exception TypeError: Cannot convert undef… 31 PASS Array.prototype.concat.call(undefined, []) threw exception TypeError: Array.prototype.concat c… 32 PASS Array.prototype.join.call(undefined, []) threw exception TypeError: Array.prototype.join calle… 33 PASS Array.prototype.pop.call(undefined) threw exception TypeError: Array.prototype.pop called on n… 34 PASS Array.prototype.push.call(undefined, {}) threw exception TypeError: Array.prototype.push calle… 35 PASS Array.prototype.reverse.call(undefined) threw exception TypeError: Array.prototype.reverse cal… 36 PASS Array.prototype.shift.call(undefined) threw exception TypeError: Array.prototype.shift called … 37 PASS Array.prototype.slice.call(undefined, 0, 1) threw exception TypeError: Array.prototype.slice c… 38 PASS Array.prototype.sort.call(undefined) threw exception TypeError: Array.prototype.sort called on… [all …]
|
D | toString-overrides.js | 32 var backupNumberToString = Number.prototype.toString; 33 var backupNumberToLocaleString = Number.prototype.toLocaleString; 34 var backupRegExpToString = RegExp.prototype.toString; 35 var backupRegExpToLocaleString = RegExp.prototype.toLocaleString; 38 Number.prototype.toString = function() { return "toString"; } 39 Number.prototype.toLocaleString = function() { return "toLocaleString"; } 40 RegExp.prototype.toString = function() { return "toString2"; } 41 RegExp.prototype.toLocaleString = function() { return "toLocaleString2"; } 46 Number.prototype.toLocaleString = "invalid"; 50 RegExp.prototype.toLocaleString = "invalid"; [all …]
|
/external/v8/src/ |
D | mirror-debugger.js | 139 tempCtor.prototype = superCtor.prototype; 140 ctor.super_ = superCtor.prototype; 141 ctor.prototype = new tempCtor(); 142 ctor.prototype.constructor = ctor; 237 Mirror.prototype.type = function() { 246 Mirror.prototype.isValue = function() { 255 Mirror.prototype.isUndefined = function() { 264 Mirror.prototype.isNull = function() { 273 Mirror.prototype.isBoolean = function() { 282 Mirror.prototype.isNumber = function() { [all …]
|
/external/v8/test/mjsunit/regress/ |
D | regress-2443.js | 30 assertThrows(function() { Number.prototype.toExponential.call({}) }, 33 assertThrows(function() { Number.prototype.toPrecision.call({}) }, 36 assertThrows(function() { Number.prototype.toFixed.call({}) }, 39 assertThrows(function() { Number.prototype.toString.call({}) }, 42 assertThrows(function() { Number.prototype.toLocaleString.call({}) }, 45 assertThrows(function() { Number.prototype.ValueOf.call({}) }, 55 Number.prototype.toExponential.call(x_obj, 2)); 58 Number.prototype.toPrecision.call(x_obj, 2)); 61 Number.prototype.toFixed.call(x_obj, 2)); 65 Number.prototype.toExponential.call(1, 2)); [all …]
|
/external/v8/test/webkit/ |
D | prototypes-expected.txt | 29 PASS ('').__proto__ is String.prototype 30 PASS (0).__proto__ is Number.prototype 31 PASS ([]).__proto__ is Array.prototype 32 PASS ({}).__proto__ is Object.prototype 33 PASS (new Date).__proto__ is Date.prototype 34 PASS (new Number).__proto__ is Number.prototype 35 PASS (new Object).__proto__ is Object.prototype 36 PASS (new String).__proto__ is String.prototype 37 PASS Array.prototype.__proto__ is Object.prototype 38 PASS Date.prototype.__proto__ is Object.prototype [all …]
|
D | array-enumerators-functions-expected.txt | 29 …ray).every(forwarders[f], returnFalse, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj… 30 …ray).every(forwarders[f], returnFalse, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj… 31 …ray).every(forwarders[f], returnFalse, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj… 32 …ray).every(forwarders[f], returnFalse, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj… 33 …rray).every(forwarders[f], returnTrue, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj… 34 …rray).every(forwarders[f], returnTrue, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj… 35 …rray).every(forwarders[f], returnTrue, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj… 36 …rray).every(forwarders[f], returnTrue, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj… 37 …rray).every(forwarders[f], returnElem, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj… 38 …rray).every(forwarders[f], returnElem, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj… [all …]
|
/external/v8/test/mjsunit/harmony/ |
D | string-repeat.js | 30 assertEquals("000", String.prototype.repeat.call(0, 3)); 31 assertEquals("-1-1-1", String.prototype.repeat.call(-1, 3)); 32 assertEquals("2.12.12.1", String.prototype.repeat.call(2.1, 3)); 33 assertEquals("", String.prototype.repeat.call([], 3)); 34 assertEquals("1,2,3", String.prototype.repeat.call([1, 2, 3], 1)); 35 assertEquals("true", String.prototype.repeat.call(true, 1)); 36 assertEquals("false", String.prototype.repeat.call(false, 1)); 37 assertEquals("[object Object]", String.prototype.repeat.call({}, 1)); 39 assertEquals("000", String.prototype.repeat.apply(0, [3])); 40 assertEquals("-1-1-1", String.prototype.repeat.apply(-1, [3])); [all …]
|
D | proxies-function.js | 60 return k == "length" ? 2 : Function.prototype[k] 95 assertEquals(42, Function.prototype.call.call(f, o, 20, 22)) 98 assertEquals(43, Function.prototype.call.call(f, null, 20, 23)) 100 assertEquals(44, Function.prototype.call.call(f, 2, 21, 23)) 106 assertEquals(32, Function.prototype.apply.call(f, o, [17, 15])) 127 var ff = Function.prototype.bind.call(f, o, 12) 133 assertEquals(33, Function.prototype.call.call(ff, {}, 21)) 136 assertEquals(32, Function.prototype.apply.call(ff, {}, [20])) 157 var fff = Function.prototype.bind.call(ff, o, 30) 163 assertEquals(42, Function.prototype.call.call(fff, {})) [all …]
|
D | super.js | 13 Derived.prototype = Object.create(Base.prototype); 17 Base.prototype.f = fBase.toMethod(Base.prototype); argument 27 Base.prototype.x = 15; 28 Base.prototype.toString = function() { return "this is Base"; }; 29 Derived.prototype.toString = function() { return "this is Derived"; }; 30 Derived.prototype.x = 27; 31 Derived.prototype.f = fDerived.toMethod(Derived.prototype); argument 49 Base.prototype = { 60 Derived.prototype = { 61 __proto__: Base.prototype, [all …]
|
D | string-endswith.js | 30 assertEquals(1, String.prototype.endsWith.length); 85 assertTrue(String.prototype.endsWith.call(v, v), e.msg); 86 assertTrue(String.prototype.endsWith.apply(v, [v]), e.msg); 92 this.endsWith = String.prototype.endsWith; 138 Object.prototype[1] = 2; // try to break `arguments[1]` 140 assertEquals(String.prototype.endsWith.length, 1); 141 assertEquals(String.prototype.propertyIsEnumerable("endsWith"), false); 329 String.prototype.endsWith.call(undefined); 332 String.prototype.endsWith.call(undefined, "b"); 335 String.prototype.endsWith.call(undefined, "b", 4); [all …]
|
D | string-startswith.js | 30 assertEquals(1, String.prototype.startsWith.length); 85 assertTrue(String.prototype.startsWith.call(v, v), e.msg); 86 assertTrue(String.prototype.startsWith.apply(v, [v]), e.msg); 92 this.startsWith = String.prototype.startsWith; 137 Object.prototype[1] = 2; // try to break `arguments[1]` 139 assertEquals(String.prototype.startsWith.length, 1); 140 assertEquals(String.prototype.propertyIsEnumerable("startsWith"), false); 314 String.prototype.startsWith.call(undefined); 317 String.prototype.startsWith.call(undefined, "b"); 320 String.prototype.startsWith.call(undefined, "b", 4); [all …]
|
/external/v8/tools/ |
D | profile.js | 48 Profile.prototype.skipThisFunction = function(name) { 90 Profile.prototype.handleUnknownCode = function( 102 Profile.prototype.addLibrary = function( 118 Profile.prototype.addStaticCode = function( 135 Profile.prototype.addCode = function( 153 Profile.prototype.addFuncCode = function( 185 Profile.prototype.moveCode = function(from, to) { 199 Profile.prototype.deleteCode = function(start) { 214 Profile.prototype.moveFunc = function(from, to) { 226 Profile.prototype.findEntry = function(addr) { [all …]
|
/external/v8/benchmarks/ |
D | deltablue.js | 49 Object.prototype.inheritsFrom = function (shuper) { 51 Inheriter.prototype = shuper.prototype; 52 this.prototype = new Inheriter(); 60 OrderedCollection.prototype.add = function (elm) { 64 OrderedCollection.prototype.at = function (index) { 68 OrderedCollection.prototype.size = function () { 72 OrderedCollection.prototype.removeFirst = function () { 76 OrderedCollection.prototype.remove = function (elm) { 122 Strength.prototype.nextWeaker = function () { 160 Constraint.prototype.addConstraint = function () { [all …]
|