Home | History | Annotate | Download | only in harmony

Lines Matching refs:instance

15 // Creates an instance that has been zeroed, so it can be used for equality
69 var instance = createInstance(type);
75 assertSame(simdFn, instance.__proto__.constructor)
76 assertSame(simdFn, Object(instance).__proto__.constructor)
77 assertSame(simdFn.prototype, instance.__proto__)
78 assertSame(simdFn.prototype, Object(instance).__proto__)
84 var instance = createInstance(type);
87 assertEquals(typeofString, typeof instance)
88 assertTrue(typeof instance === typeofString)
89 assertTrue(typeof Object(instance) === 'object')
90 assertEquals(null, %_ClassOf(instance))
91 assertEquals(type, %_ClassOf(Object(instance)))
97 var instance = createInstance(type);
100 assertSame(simdFn.prototype, instance.__proto__)
101 assertSame(simdFn.prototype, Object(instance).__proto__)
107 var instance = createInstance(type);
109 assertTrue(instance === Object(instance).valueOf())
110 assertTrue(instance === instance.valueOf())
111 assertTrue(simdFn.prototype.valueOf.call(Object(instance)) === instance)
112 assertTrue(simdFn.prototype.valueOf.call(instance) === instance)
118 var instance = createInstance(type);
120 assertEquals(undefined, instance.a)
121 assertEquals(undefined, instance["a" + "b"])
122 assertEquals(undefined, instance["" + "1"])
123 assertEquals(undefined, instance[42])
129 var instance = createInstance(type);
131 assertTrue(Boolean(Object(instance)))
132 assertFalse(!Object(instance))
133 assertTrue(Boolean(instance).valueOf())
134 assertFalse(!instance)
135 assertTrue(!!instance)
136 assertTrue(instance && true)
137 assertFalse(!instance && false)
138 assertTrue(!instance || true)
139 assertEquals(1, instance ? 1 : 2)
140 assertEquals(2, !instance ? 1 : 2)
141 if (!instance) assertUnreachable();
142 if (instance) {} else assertUnreachable();
148 var instance = createInstance(type);
150 assertEquals(instance.toString(), String(instance))
151 assertTrue(isValidSimdString(instance.toString(), instance, type, lanes))
153 isValidSimdString(Object(instance).toString(), instance, type, lanes))
155 simdFn.prototype.toString.call(instance), instance, type, lanes))
161 var instance = createInstance(type);
163 assertThrows(function() { Number(Object(instance)) }, TypeError)
164 assertThrows(function() { +Object(instance) }, TypeError)
165 assertThrows(function() { Number(instance) }, TypeError)
166 assertThrows(function() { instance + 0 }, TypeError)
172 var instance = createInstance(type);
176 var ainstance = simdFn.replaceLane(instance, i, a);
330 var instance = createInstance(type);
333 assertSame(instance, instance)
334 assertEquals(instance, instance)
335 assertTrue(Object.is(instance, instance))
336 assertTrue(instance === instance)
337 assertTrue(instance == instance)
338 assertFalse(instance === Object(instance))
339 assertFalse(Object(instance) === instance)
340 assertTrue(instance == Object(instance))
341 assertTrue(Object(instance) == instance)
342 assertTrue(instance === instance.valueOf())
343 assertTrue(instance.valueOf() === instance)
344 assertTrue(instance == instance.valueOf())
345 assertTrue(instance.valueOf() == instance)
346 assertFalse(Object(instance) === Object(instance))
347 assertEquals(Object(instance).valueOf(), Object(instance).valueOf())
350 assertFalse(instance === other)
351 assertFalse(other === instance)
352 assertFalse(instance == other)
353 assertFalse(other == instance)
358 assertFalse(instance === other)
359 assertFalse(other === instance)
360 assertFalse(instance == other)
361 assertFalse(other == instance)
368 var aval = simdFn.replaceLane(instance, i, a);
369 var bval = simdFn.replaceLane(instance, i, b);
408 var instance = createInstance(type);
414 assertFalse(sameValue(instance, other));
415 assertFalse(sameValueZero(instance, other));
422 var aval = simdFn.replaceLane(instance, i, a);
423 var bval = simdFn.replaceLane(instance, i, b);
494 var instance = createInstance(type);
498 assertTrue(instance.getThisProto() === simdFn.prototype)
504 var instance = createInstance(type);
522 test(set, instance);
528 var instance = createInstance(type);
550 test(map, instance, {});
557 var instance = createInstance(type);
567 Reflect.apply(returnThis, instance, [])));
568 assertSame(instance, Reflect.apply(returnThisStrict, instance, []));
571 function() { 'use strict'; Reflect.apply(instance); }, TypeError);
573 function() { Reflect.apply(instance); }, TypeError);
575 function() { Reflect.apply(noopStrict, R, instance); }, TypeError);
577 function() { Reflect.apply(noop, R, instance); }, TypeError);