Home
last modified time | relevance | path

Searched defs:valueOf (Results 1 – 25 of 126) sorted by relevance

123456

/external/v8/test/mjsunit/
Dto_number_order.js59 var year = { valueOf: function() { x += 1; return 2007; } }; method
60 var month = { valueOf: function() { x += 2; return 2; } }; method
61 var date = { valueOf: function() { x += 3; return 4; } }; method
62 var hours = { valueOf: function() { x += 4; return 13; } }; method
63 var minutes = { valueOf: function() { x += 5; return 50; } }; method
64 var seconds = { valueOf: function() { x += 6; return 0; } }; method
65 var ms = { valueOf: function() { x += 7; return 999; } }; method
134 var a = { valueOf: function() { x += "hest"; return 97; } }; method
135 var b = { valueOf: function() { x += "fisk"; return 98; } }; method
Dnegate.js43 var x = { valueOf: function() { return 2; } }; method
44 var y = { valueOf: function() { return 3; } }; method
51 var v = { valueOf: function() { z+=2; return z; } }; method
52 var w = { valueOf: function() { z+=3; return z; } }; method
Darray-splice.js267 spliced = array.splice({valueOf: function() { return 1; }}, method
282 bad_start = { valueOf: function() { array.push(2*i); return -1; } }; method
283 bad_count = { valueOf: function() { array.push(2*i + 1); return 1; } }; method
Dstring-charat.js33 var slowIndex1 = { valueOf: function() { return 1; } }; method
35 var slowIndexOutOfRange = { valueOf: function() { return -1; } }; method
102 valueOf: function() { return "should not be called"; } method
184 valueOf: badToString property
Dregress-ntl.js11 v_2 = {valueOf: function() { throw "gagh"; }}; method
31 v_4 = {valueOf: function() { throw "gagh"; }}; method
Ddouble-equals.js53 this.valueOf = function () { return this.value; }; method in Wrapper
200 dnow.valueOf = function () { return "42"; }; function
219 valueOf: null, property
Dmath-abs.js90 assertEquals(42, Math.abs({valueOf: function() { return 42; } })); method
91 assertEquals(42, Math.abs({valueOf: function() { return -42; } })); method
/external/v8/test/webkit/
Ddate-constructor.js31 object.valueOf = function() { return 1111; } function
77 var year = { valueOf: function() { testStr += 1; return 2007; } }; method
78 var month = { valueOf: function() { testStr += 2; return 2; } }; method
79 var date = { valueOf: function() { testStr += 3; return 4; } }; method
80 var hours = { valueOf: function() { testStr += 4; return 13; } }; method
81 var minutes = { valueOf: function() { testStr += 5; return 50; } }; method
82 var seconds = { valueOf: function() { testStr += 6; return 0; } }; method
83 var ms = { valueOf: function() { testStr += 7; return 999; } }; method
Dmath.js78 var v = { valueOf: function() { testStr += "one"; return 1; } }; method
79 var w = { valueOf: function() { testStr += "two"; return 2; } }; method
/external/v8/test/mjsunit/regress/
Dregress-353004.js9 var array1 = new Uint8Array(buffer1, {valueOf : function() { method
19 var array2 = new Uint8Array(buffer2, 0, {valueOf : function() { method
27 var dataView1 = new DataView(buffer3, {valueOf : function() { method
36 var dataView2 = new DataView(buffer4, 0, {valueOf : function() { method
44 var buffer6 = buffer5.slice({valueOf : function() { method
52 var buffer8 = buffer7.slice(0, {valueOf : function() { method
60 var array10 = array9.subarray({valueOf : function() { method
69 var array12 = array11.subarray(0, {valueOf : function() { method
Dregress-1327557.js28 var x = { valueOf: function() { throw "x"; } }; method
29 var y = { valueOf: function() { throw "y"; } }; method
/external/jetty/src/java/org/eclipse/jetty/util/
DTypeUtil.java135 java.lang.Boolean.class.getMethod("valueOf",s)); in class2Value.put()
137 java.lang.Byte.class.getMethod("valueOf",s)); in class2Value.put()
139 java.lang.Double.class.getMethod("valueOf",s)); in class2Value.put()
141 java.lang.Float.class.getMethod("valueOf",s)); in class2Value.put()
143 java.lang.Integer.class.getMethod("valueOf",s)); in class2Value.put()
145 java.lang.Long.class.getMethod("valueOf",s)); in class2Value.put()
147 java.lang.Short.class.getMethod("valueOf",s)); in class2Value.put()
150 java.lang.Boolean.class.getMethod("valueOf",s)); in class2Value.put()
152 java.lang.Byte.class.getMethod("valueOf",s)); in class2Value.put()
154 java.lang.Double.class.getMethod("valueOf",s)); in class2Value.put()
[all …]
/external/v8/test/mjsunit/es6/
Dtypedarray-set-length.js44 a.set({length: {valueOf: lengthValue}}); property
48 a.set({length: {valueOf: lengthFun}}); property
52 a.set({length: {valueOf: badNonIntegerLength}}); property
Dstring-fromcodepoint.js37 valueOf: function() { throw Error(); } }); method
40 valueOf: function() { throw Error(); } }); method
44 valueOf: function() { ++tmp; return tmp; } method
Dmath-trunc.js43 assertEquals(-1, Math.trunc({ valueOf: function() { return -1.1; } })); method
45 String(1/Math.trunc({ valueOf: function() { return "-0.1"; } }))); method
Dmath-sign.js41 assertEquals(-1, Math.sign({ valueOf: function() { return -1.1; } })); method
42 assertEquals(-1, Math.sign({ valueOf: function() { return "-1.1"; } })); method
Dmath-log2-log10.js34 assertTrue(isNaN(fun({ valueOf: function() { return -1; } }))); method
35 assertTrue(isNaN(fun({ valueOf: function() { return "abc"; } }))); method
/external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/
DUnsignedInteger.java76 public static UnsignedInteger valueOf(long value) { in valueOf() method in UnsignedInteger
88 public static UnsignedInteger valueOf(BigInteger value) { in valueOf() method in UnsignedInteger
102 public static UnsignedInteger valueOf(String string) { in valueOf() method in UnsignedInteger
113 public static UnsignedInteger valueOf(String string, int radix) { in valueOf() method in UnsignedInteger
/external/guava/guava/src/com/google/common/primitives/
DUnsignedInteger.java77 public static UnsignedInteger valueOf(long value) { in valueOf() method in UnsignedInteger
89 public static UnsignedInteger valueOf(BigInteger value) { in valueOf() method in UnsignedInteger
103 public static UnsignedInteger valueOf(String string) { in valueOf() method in UnsignedInteger
114 public static UnsignedInteger valueOf(String string, int radix) { in valueOf() method in UnsignedInteger
DUnsignedLong.java81 public static UnsignedLong valueOf(long value) { in valueOf() method in UnsignedLong
93 public static UnsignedLong valueOf(BigInteger value) { in valueOf() method in UnsignedLong
107 public static UnsignedLong valueOf(String string) { in valueOf() method in UnsignedLong
119 public static UnsignedLong valueOf(String string, int radix) { in valueOf() method in UnsignedLong
/external/v8/test/mjsunit/harmony/
Dto-name.js35 var b = { valueOf: function() { return 42 }}; method
41 valueOf: function() { return 123 } method
Dto-primitive.js71 var b = { valueOf: function() { return 42 }}; method
81 valueOf: function() { return 123 } method
Dto-number.js39 var b = { valueOf: function() { return 42 }}; method
45 valueOf: function() { return 123 } method
Dto-length.js54 var b = { valueOf: function() { return 42 }}; method
60 valueOf: function() { return 123 } method
Dto-string.js35 var b = { valueOf: function() { return 42 }}; method
41 valueOf: function() { return 123 } method

123456