mirror of https://github.com/tc39/test262.git
[javascriptcore-test262-automation] Updated curation log with latest revision sha's from export and changed files.
sourceRevisionAtLastExport: e7f9d46220 targetRevisionAtLastExport: 0210918f1e
This commit is contained in:
parent
31e654a339
commit
1572edd570
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"sourceRevisionAtLastExport": "e7f9d46220",
|
"sourceRevisionAtLastExport": "60ed1be8cd",
|
||||||
"targetRevisionAtLastExport": "0210918f1e",
|
"targetRevisionAtLastExport": "31e654a339",
|
||||||
"curatedFiles": {
|
"curatedFiles": {
|
||||||
"/stress/Number-isNaN-basics.js": "DELETED_IN_TARGET",
|
"/stress/Number-isNaN-basics.js": "DELETED_IN_TARGET",
|
||||||
"/stress/Object_static_methods_Object.getOwnPropertyDescriptors-proxy.js": "DELETED_IN_TARGET",
|
"/stress/Object_static_methods_Object.getOwnPropertyDescriptors-proxy.js": "DELETED_IN_TARGET",
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
//@ runBigIntEnabled
|
||||||
|
|
||||||
|
let assert = {
|
||||||
|
sameValue: function(i, e) {
|
||||||
|
if (i !== e)
|
||||||
|
throw new Error(m);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function bigIntBitXor(a, b) {
|
||||||
|
return (a ^ b) ^ (a ^ 0b11n);
|
||||||
|
|
||||||
|
}
|
||||||
|
noInline(bigIntBitXor);
|
||||||
|
|
||||||
|
for (let i = 0; i < 10000; i++) {
|
||||||
|
let r = bigIntBitXor(0b11n, 0b1010n);
|
||||||
|
assert.sameValue(r, 0b1001n);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let i = 0; i < 10000; i++) {
|
||||||
|
let r = bigIntBitXor(0xfffafafaf19281fefafeafebcn, 0b1010n);
|
||||||
|
assert.sameValue(r, 0b1001n);
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
//@ runBigIntEnabled
|
||||||
|
|
||||||
|
function assert(a) {
|
||||||
|
if (!a)
|
||||||
|
throw new Error("Bad assertion");
|
||||||
|
}
|
||||||
|
|
||||||
|
let a = 0b11n;
|
||||||
|
for (let i = 0; i < 1000000; i++) {
|
||||||
|
a ^= 0b01n;
|
||||||
|
}
|
||||||
|
|
||||||
|
assert(a === 0b11n);
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
//@ runBigIntEnabled
|
||||||
|
|
||||||
|
function assert(v, e) {
|
||||||
|
if (v !== e)
|
||||||
|
throw new Error("Expected value: " + e + " but got: " + v)
|
||||||
|
}
|
||||||
|
|
||||||
|
function bigIntOperations(a, b) {
|
||||||
|
let c = a ^ b;
|
||||||
|
return a ^ c;
|
||||||
|
}
|
||||||
|
noInline(bigIntOperations);
|
||||||
|
|
||||||
|
c = 0;
|
||||||
|
let o = { valueOf: function () {
|
||||||
|
c++;
|
||||||
|
return 0b1111n;
|
||||||
|
}};
|
||||||
|
|
||||||
|
for (let i = 0; i < 100000; i++) {
|
||||||
|
let out = bigIntOperations(o, 0b1010n);
|
||||||
|
assert(out, 0b1010n);
|
||||||
|
}
|
||||||
|
|
||||||
|
assert(c, 200000);
|
||||||
|
|
Loading…
Reference in New Issue