forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from oven-sh/jarred/upgrade-jul23
Upgrade WebKit, July 23rd edition
- Loading branch information
Showing
28,706 changed files
with
1,868,302 additions
and
836,673 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright (C) 2023 Apple Inc. All rights reserved. | ||
// | ||
// Redistribution and use in source and binary forms, with or without | ||
// modification, are permitted provided that the following conditions | ||
// are met: | ||
// 1. Redistributions of source code must retain the above copyright | ||
// notice, this list of conditions and the following disclaimer. | ||
// 2. Redistributions in binary form must reproduce the above copyright | ||
// notice, this list of conditions and the following disclaimer in the | ||
// documentation and/or other materials provided with the distribution. | ||
// | ||
// THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY | ||
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR | ||
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | ||
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
#include "WebKitTargetConditionals.xcconfig" | ||
|
||
// FIXME: Add unversioned sparse SDKs for headers and framework stubs that we can share between OS versions. | ||
//WK_HAS_UNVERSIONED_SDK_ADDITIONS = ; | ||
|
||
WK_HAS_VERSIONED_SDK_ADDITIONS = $(WK_NOT_$(USE_INTERNAL_SDK)); | ||
// Prior to Sonoma, downlevel macOS and STP builds link against AppleJPEGXL.framework. | ||
WK_HAS_VERSIONED_SDK_ADDITIONS[sdk=macos*] = $(WK_HAS_VERSIONED_SDK_ADDITIONS$(WK_MACOS_1400)); | ||
WK_HAS_VERSIONED_SDK_ADDITIONS_MACOS_BEFORE_1400 = YES; | ||
WK_HAS_VERSIONED_SDK_ADDITIONS_MACOS_SINCE_1400 = $(WK_NOT_$(USE_INTERNAL_SDK)); | ||
|
||
WK_ADDITIONAL_SDKS = $(WK_ADDITIONAL_SDKS_UNVERSIONED_$(WK_HAS_UNVERSIONED_SDK_ADDITIONS)_VERSIONED_$(WK_HAS_VERSIONED_SDK_ADDITIONS)); | ||
WK_ADDITIONAL_SDKS_UNVERSIONED__VERSIONED_ = ; | ||
WK_ADDITIONAL_SDKS_UNVERSIONED__VERSIONED_YES = $(WK_VERSIONED_SDK_ADDITIONS_PATH); | ||
WK_ADDITIONAL_SDKS_UNVERSIONED_YES_VERSIONED_ = $(WK_UNVERSIONED_SDK_ADDITIONS_PATH); | ||
WK_ADDITIONAL_SDKS_UNVERSIONED_YES_VERSIONED_YES = $(WK_UNVERSIONED_SDK_ADDITIONS_PATH) $(WK_VERSIONED_SDK_ADDITIONS_PATH); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
eval('var x = 5') threw 'Can't create duplicate variable in eval: 'x'' | ||
x: 5 | ||
eval('var y = 5') threw 'Attempted to assign to readonly property.' | ||
eval('var y = 5') threw 'Can't create duplicate variable in eval: 'y'' | ||
eval('y = 5') threw 'Attempted to assign to readonly property.' | ||
y: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
function shouldBe(actual, expected) { | ||
if (actual !== expected) | ||
throw new Error('bad value: ' + actual); | ||
} | ||
|
||
function test(array1, array2) { | ||
return array1.concat(array2); | ||
} | ||
noInline(test); | ||
|
||
var array1 = [2.1, 2.2, 2.3, 2.4]; | ||
var array2 = [0, 1, 2, 3, 4] | ||
for (var i = 0; i < 1e4; ++i) { | ||
var result = test(array1, array2); | ||
shouldBe(result[0], 2.1); | ||
shouldBe(result[1], 2.2); | ||
shouldBe(result[2], 2.3); | ||
shouldBe(result[3], 2.4); | ||
shouldBe(result[4], 0); | ||
shouldBe(result[5], 1); | ||
shouldBe(result[6], 2); | ||
shouldBe(result[7], 3); | ||
shouldBe(result[8], 4); | ||
shouldBe(result.length, 9); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
function shouldBe(actual, expected) { | ||
if (actual !== expected) | ||
throw new Error('bad value: ' + actual); | ||
} | ||
|
||
function test(array1, array2) { | ||
return array1.concat(array2); | ||
} | ||
noInline(test); | ||
|
||
var array1 = [0, 1, 2, 3, 4] | ||
var array2 = [2.1, 2.2, 2.3, 2.4]; | ||
for (var i = 0; i < 1e4; ++i) { | ||
var result = test(array1, array2); | ||
shouldBe(result[0], 0); | ||
shouldBe(result[1], 1); | ||
shouldBe(result[2], 2); | ||
shouldBe(result[3], 3); | ||
shouldBe(result[4], 4); | ||
shouldBe(result[5], 2.1); | ||
shouldBe(result[6], 2.2); | ||
shouldBe(result[7], 2.3); | ||
shouldBe(result[8], 2.4); | ||
shouldBe(result.length, 9); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
function shouldBe(actual, expected) { | ||
if (actual !== expected) | ||
throw new Error('bad value: ' + actual); | ||
} | ||
|
||
function test(array) { | ||
return "hello" + array + "ok"; | ||
} | ||
noInline(test); | ||
|
||
var array = [42]; | ||
for (var i = 0; i < 1e6; ++i) | ||
shouldBe(test(array), `hello42ok`); |
12 changes: 12 additions & 0 deletions
12
JSTests/microbenchmarks/proxy-ownkeys-via-object-assign-miss-handler.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(function() { | ||
var target = {k0: 0, k1: 1, k2: 2, k3: 3, k4: 4, k5: 5, k6: 6, k7: 7, k8: 8, k9: 9}; | ||
var targetKeys = Object.keys(target); | ||
var proxy = new Proxy(target, {}); | ||
|
||
var lastObj = {}; | ||
for (var i = 0; i < 2e5; ++i) | ||
lastObj = Object.assign({}, proxy); | ||
|
||
if (Object.keys(lastObj).join() !== targetKeys.join()) | ||
throw new Error("Bad assertion!"); | ||
})(); |
16 changes: 16 additions & 0 deletions
16
JSTests/microbenchmarks/proxy-ownkeys-via-object-assign.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(function() { | ||
var target = {k0: 0, k1: 1, k2: 2, k3: 3, k4: 4, k5: 5, k6: 6, k7: 7, k8: 8, k9: 9}; | ||
var targetKeys = Object.keys(target); | ||
var proxy = new Proxy(target, { | ||
ownKeys() { | ||
return targetKeys; | ||
}, | ||
}); | ||
|
||
var lastObj = {}; | ||
for (var i = 0; i < 2e5; ++i) | ||
lastObj = Object.assign({}, proxy); | ||
|
||
if (Object.keys(lastObj).join() !== targetKeys.join()) | ||
throw new Error("Bad assertion!"); | ||
})(); |
12 changes: 12 additions & 0 deletions
12
JSTests/microbenchmarks/proxy-ownkeys-via-object-keys-miss-handler.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(function() { | ||
var target = {k0: 0, k1: 1, k2: 2, k3: 3, k4: 4, k5: 5, k6: 6, k7: 7, k8: 8, k9: 9}; | ||
var targetKeys = Object.keys(target); | ||
var proxy = new Proxy(target, {}); | ||
|
||
var proxyKeys; | ||
for (var i = 0; i < 2e5; ++i) | ||
proxyKeys = Object.keys(proxy); | ||
|
||
if (proxyKeys.join() !== targetKeys.join()) | ||
throw new Error("Bad assertion!"); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(function() { | ||
var target = {k0: 0, k1: 1, k2: 2, k3: 3, k4: 4, k5: 5, k6: 6, k7: 7, k8: 8, k9: 9}; | ||
var targetKeys = Object.keys(target); | ||
var proxy = new Proxy(target, { | ||
ownKeys() { | ||
return targetKeys; | ||
}, | ||
}); | ||
|
||
var proxyKeys; | ||
for (var i = 0; i < 2e5; ++i) | ||
proxyKeys = Object.keys(proxy); | ||
|
||
if (proxyKeys.join() !== targetKeys.join()) | ||
throw new Error("Bad assertion!"); | ||
})(); |
12 changes: 12 additions & 0 deletions
12
JSTests/microbenchmarks/proxy-ownkeys-via-reflect-ownkeys-miss-handler.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(function() { | ||
var target = {k0: 0, k1: 1, k2: 2, k3: 3, k4: 4, k5: 5, k6: 6, k7: 7, k8: 8, k9: 9}; | ||
var targetKeys = Reflect.ownKeys(target); | ||
var proxy = new Proxy(target, {}); | ||
|
||
var proxyKeys; | ||
for (var i = 0; i < 2e5; ++i) | ||
proxyKeys = Reflect.ownKeys(proxy); | ||
|
||
if (proxyKeys.join() !== targetKeys.join()) | ||
throw new Error("Bad assertion!"); | ||
})(); |
16 changes: 16 additions & 0 deletions
16
JSTests/microbenchmarks/proxy-ownkeys-via-reflect-ownkeys.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(function() { | ||
var target = {k0: 0, k1: 1, k2: 2, k3: 3, k4: 4, k5: 5, k6: 6, k7: 7, k8: 8, k9: 9}; | ||
var targetKeys = Reflect.ownKeys(target); | ||
var proxy = new Proxy(target, { | ||
ownKeys() { | ||
return targetKeys; | ||
}, | ||
}); | ||
|
||
var proxyKeys; | ||
for (var i = 0; i < 2e5; ++i) | ||
proxyKeys = Reflect.ownKeys(proxy); | ||
|
||
if (proxyKeys.join() !== targetKeys.join()) | ||
throw new Error("Bad assertion!"); | ||
})(); |
Oops, something went wrong.