Home
last modified time | relevance | path

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

1234

/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
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
Darray-splice.js207 spliced = array.splice({valueOf: function() { return 1; }}, method
222 bad_start = { valueOf: function() { array.push(2*i); return -1; } }; method
223 bad_count = { valueOf: function() { array.push(2*i + 1); return 1; } }; method
Ddouble-equals.js51 this.valueOf = function () { return this.value; }; method in Wrapper
198 dnow.valueOf = function () { return "42"; }; function
217 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
Dobject-toprimitive.js33 valueOf: function() { return "37"; } }; method
55 get valueOf() { trace.push("gvo"); getter
Dsubstr.js36 assertEquals(s, s.substr({ valueOf: function() { return 0; } })); method
44 assertEquals(s1, s.substr({ valueOf: function() { return 1; } })); method
Dmath-min-max.js65 o.valueOf = function() { return 1; }; function
173 v9.valueOf = function() { return 6; } function
Djson.js55 valueOf: function() { return Infinity; }, method
60 valueOf: "not callable", property
67 valueOf: "not callable", property
73 valueOf: "not callable", property
399 num37.valueOf = function() { return 37; }; function
406 numTrue.valueOf = function() { return true; } function
413 str37.valueOf = function() { return 37; }; function
454 valueOf: function() { return true; } }; 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
Ddfg-dead-min-two-args.js46 x = {f:{valueOf:function(){ ok = i; return 37; }}}; method
62 y = {f:{valueOf:function(){ ok = i; return 37; }}}; 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/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/v8/test/mjsunit/harmony/
Dstring-fromcodepoint.js39 valueOf: function() { throw Error(); } }); method
42 valueOf: function() { throw Error(); } }); method
46 valueOf: function() { ++tmp; return tmp; } method
/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/es6/
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.js32 assertTrue(isNaN(fun({ valueOf: function() { return -1; } }))); method
33 assertTrue(isNaN(fun({ valueOf: function() { return "abc"; } }))); method
Dmath-hypot.js38 { valueOf: function() { return "0xe"; } })); method
39 assertEquals(17, Math.hypot({ valueOf: function() { return 1; } }, method
Dmath-hyperbolic.js40 assertEquals(fun(-1.1), fun({ valueOf: function() { return "-1.1"; } })); method
41 assertEquals(fun(3.11), fun({ valueOf: function() { return 3.11; } })); method

1234