Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Jul 27, 2024
2 parents 98f763c + b58969a commit c6614a5
Show file tree
Hide file tree
Showing 14,808 changed files with 278,373 additions and 136,167 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
/LayoutTests/http/tests/paymentrequest @aprotyas @marcoscaceres
/LayoutTests/http/tests/ssl/applepay @aprotyas
/LayoutTests/http/tests/ssl/applepay-ams-ui @aprotyas
/LayoutTests/imported/w3c/web-platform-tests/geolocation-API @marcoscaceres
/LayoutTests/imported/w3c/web-platform-tests/geolocation @marcoscaceres
/LayoutTests/imported/w3c/web-platform-tests/payment-request @aprotyas @marcoscaceres
/LayoutTests/imported/w3c/web-platform-tests/permissions @marcoscaceres
/LayoutTests/imported/w3c/web-platform-tests/screen-orientation @marcoscaceres
Expand Down
2 changes: 2 additions & 0 deletions .submitproject
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
excludedSubdirectoryPatterns = Source/ThirdParty/libwebrtc/Source/third_party/boringssl/src/util
excludedSubdirectoryPatterns = Source/ThirdParty/libwebrtc/Source/webrtc/examples
excludedSubdirectoryPatterns = Source/ThirdParty/skia
[submitproject "gitmodules"]
enabled = false
4 changes: 2 additions & 2 deletions Configurations/Version.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

MAJOR_VERSION = 619;
MAJOR_VERSION = 620;
MINOR_VERSION = 1;
TINY_VERSION = 22;
TINY_VERSION = 2;
MICRO_VERSION = 0;
NANO_VERSION = 0;
FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION);
Expand Down
24 changes: 24 additions & 0 deletions JSTests/microbenchmarks/clone-objects-via-spread-first.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
function test(object, value)
{
return { ...object, value };
}
noInline(test);

var object = {
"hello": 1,
"world": 2,
"this": 3,
"is": 4,
"a": 5,
"test": 6,
"for": 7,
"super": 8,
"fast": 9,
"cloning": 10,
"via": 11,
"spread": 12,
"expression": 13,
};

for (var i = 0; i < 1e6; ++i)
test(object, 14);
15 changes: 15 additions & 0 deletions JSTests/microbenchmarks/from-hex.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//@ requireOptions("--useUint8ArrayBase64Methods=1")

function test(string)
{
return Uint8Array.fromHex(string);
}
noInline(test);

let buffer = new Uint8Array(16 * 1024);
for (let i = 0; i < buffer.length; ++i)
buffer[i] = i & 0xff;
let string = buffer.toHex();

for (let i = 0; i < 1e3; ++i)
test(string);
10 changes: 10 additions & 0 deletions JSTests/microbenchmarks/global-this-access-get.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
globalThis.value = 42;

function test()
{
return globalThis.value;
}
noInline(test);

for (var i = 0; i < 1e8; ++i)
test();
10 changes: 10 additions & 0 deletions JSTests/microbenchmarks/global-this-access-put.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
globalThis.value = 42;

function test(v)
{
globalThis.value = v;
}
noInline(test);

for (var i = 0; i < 1e8; ++i)
test(i);
12 changes: 12 additions & 0 deletions JSTests/microbenchmarks/indexed-proxy-get-dfg-call.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var array = new Proxy([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], Reflect);

function test() {
var total = 0;
for (var i = 0; i < array.length; ++i)
total += array[i];
return total;
}
noInline(test);

for (var i = 0; i < 1e5; ++i)
test();
12 changes: 12 additions & 0 deletions JSTests/microbenchmarks/indexed-proxy-has-dfg-call.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var array = new Proxy([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], Reflect);

function test() {
var total = 0;
for (var i = 0; i < array.length; ++i)
total += (i in array);
return total;
}
noInline(test);

for (var i = 0; i < 1e5; ++i)
test();
10 changes: 10 additions & 0 deletions JSTests/microbenchmarks/indexed-proxy-put-dfg-call.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var array = new Proxy([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], Reflect);

function test() {
for (var i = 0; i < array.length; ++i)
array[i] = i;
}
noInline(test);

for (var i = 0; i < 1e4; ++i)
test();
13 changes: 8 additions & 5 deletions JSTests/microbenchmarks/js-map-get-int-no-dfg-no-inline.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,25 @@ let m = new Map();
function testSet(m, k, v) {
m.set(k, v);
}
noDFG(testSet);
noInline(testSet);
noDFG(testSet);
noFTL(testSet);

function testGet(m, k) {
m.get(k);
}
noDFG(testGet);
noInline(testGet);
noDFG(testGet);
noFTL(testGet);

let count = 1e4;
let count = 1e2;
for (let i = 0; i < count; ++i) {
testSet(m, i, i);
}

let sum = 0;
for (let i = 0; i < count; ++i) {
for (let j = 0; j < 20; j++) {
testGet(m, i, i);
for (let j = 0; j < 1e4; j++) {
sum += testGet(m, i);
}
}
13 changes: 9 additions & 4 deletions JSTests/microbenchmarks/js-map-get-int.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,24 @@ let m = new Map();
function testSet(m, k, v) {
m.set(k, v);
}
noInline(testSet);
noDFG(testSet);
noFTL(testSet);

function testGet(m, k) {
m.get(k);
return m.get(k);
}
noInline(testGet);

let count = 1e4;
let count = 1e2;
for (let i = 0; i < count; ++i) {
testSet(m, i, i);
}

let sum = 0;
for (let i = 0; i < count; ++i) {
for (let j = 0; j < 20; j++) {
testGet(m, i, i);
for (let j = 0; j < 1e4; j++) {
sum += testGet(m, i);
}
}

15 changes: 9 additions & 6 deletions JSTests/microbenchmarks/js-map-get-string-no-dfg-no-inline.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,28 @@ let m = new Map();
function testSet(m, k, v) {
m.set(k, v);
}
noDFG(testSet);
noInline(testSet);
noDFG(testSet);
noFTL(testSet);

function testGet(m, k) {
m.get(k);
return m.get(k);
}
noDFG(testGet);
noInline(testGet);
noDFG(testGet);
noFTL(testGet);

let count = 1e4;
let count = 1e2;
for (let i = 0; i < count; ++i) {
let s = i.toString();
testSet(m, s, s);
}

let res;
for (let i = 0; i < count; ++i) {
let s = i.toString();
for (let j = 0; j < 20; j++) {
testGet(m, s);
for (let j = 0; j < 1e4; j++) {
res = testGet(m, s);
}
}

13 changes: 9 additions & 4 deletions JSTests/microbenchmarks/js-map-get-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,25 @@ let m = new Map();
function testSet(m, k, v) {
m.set(k, v);
}
noInline(testSet);
noDFG(testSet);
noFTL(testSet);

function testGet(m, k) {
m.get(k);
return m.get(k);
}
noInline(testGet);

let count = 1e4;
let count = 1e2;
for (let i = 0; i < count; ++i) {
let s = i.toString();
testSet(m, s, s);
}

let res;
for (let i = 0; i < count; ++i) {
let s = i.toString();
for (let j = 0; j < 20; j++) {
testGet(m, s);
for (let j = 0; j < 1e4; j++) {
res = testGet(m, s);
}
}
12 changes: 12 additions & 0 deletions JSTests/microbenchmarks/math-max.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
function max(a, b)
{
return Math.max(a, b);
}
noInline(max);

for (var i = 0; i < 1e6; ++i) {
max(5, 5);
max(5, 400.2);
max(400.2, 5);
max(24.3, 400.2);
}
21 changes: 21 additions & 0 deletions JSTests/microbenchmarks/string-replaceall-benchmark.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
function fill(template, title, completed, checked) {
return template.replaceAll("{{title}}", title)
.replaceAll("{{completed}}", completed)
.replaceAll("{{checked}}", checked);
}
noInline(fill);

function test() {
for (var i = 55; i < 100; ++i) {
for (var j = 0; j < i; ++j) {
var template = `<li data-id="${j + 1}" class="{{completed}}"><div class="view"><input class="toggle" type="checkbox" {{checked}}><label>{{title}}</label><button class="destroy"></button></div></li>
<li data-id="${j + 1}" class="{{completed}}"><div class="view"><input class="toggle" type="checkbox" {{checked}}><label>{{title}}</label><button class="destroy"></button></div></li>
<li data-id="${j + 1}" class="{{completed}}"><div class="view"><input class="toggle" type="checkbox" {{checked}}><label>{{title}}</label><button class="destroy"></button></div></li>`;
fill(template, `Something to do ${j}`, "", "");
}
}
}
noInline(test);

for (var i = 0; i < 100; ++i)
test();
14 changes: 14 additions & 0 deletions JSTests/microbenchmarks/to-base64.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//@ requireOptions("--useUint8ArrayBase64Methods=1")

function test(buffer)
{
return buffer.toBase64();
}
noInline(test);

let buffer = new Uint8Array(16 * 1024);
for (let i = 0; i < buffer.length; ++i)
buffer[i] = i & 0xff;

for (let i = 0; i < 1e4; ++i)
test(buffer);
4 changes: 2 additions & 2 deletions JSTests/microbenchmarks/wasm-cc-int-to-int.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ skip unless $isWasmPlatform
//@ skip
//@ $skipModes << :lockdown
//@ runDefaultWasm("--useWebAssembly=1")

Expand Down Expand Up @@ -38,4 +38,4 @@ for (let i = 0; i < 100000; ++i) {
test_with_call_indirect({ }, 10)
test_with_call_indirect(20.1, 10)
test_with_call_indirect(10, 20.1)
}
}
Loading

0 comments on commit c6614a5

Please sign in to comment.