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 #60 from oven-sh/dylan/upgrade-webkit
Dylan/upgrade webkit
- Loading branch information
Showing
18,915 changed files
with
1,580,054 additions
and
442,817 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
Validating CODEOWNERS rules …
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,5 +1,5 @@ | ||
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py | ||
//@ $skipModes << :lockdown if $memoryLimited | ||
//@ $skipModes << :lockdown if $memoryLimited or $buildType == "debug" | ||
const array = []; | ||
for (let i = 0; i < 100; ++i) | ||
array.push(new Array(1e6).join('—' + i)); |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 result = 0; | ||
var n = 10000000; | ||
let src = "foo bar BAZ1 23% 456q Uu X {Xyzz y78} 9 $$$0Abc"; | ||
for (let i = 0; i < n; ++i) { | ||
let re = /[A-Za-z0-9]{3,4}/g; | ||
while (re.test(src)) | ||
++result; | ||
} | ||
if (result != n * 7) /* Expect [foo, bar, BAZ1, 456q, Xyzz, y78, 0Abc] */ | ||
throw "Error: bad result: " + result; | ||
})(); |
12 changes: 12 additions & 0 deletions
12
JSTests/microbenchmarks/regexp-match-multiple-single-chars.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 result = 0; | ||
var n = 10000000; | ||
let src = "foo bar BAZ1 23% 456q Uu X {Xyzz y78} 9 $$$0Abc"; | ||
for (let i = 0; i < n; ++i) { | ||
let re = /[AaCeGgJjMmNnQqTtWwZz]/g; | ||
while (re.test(src)) | ||
++result; | ||
} | ||
if (result != n * 7) /* Expect [a, A, Z, q, z, z, A] */ | ||
throw "Error: bad result: " + result; | ||
})(); |
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,31 @@ | ||
(function() { | ||
var result = 0; | ||
var n = 1000000; | ||
let src = ` | ||
function cross(vec<float, 3> a, vec<float, 3> b) { | ||
vec<float, 3> result = { | ||
a.y * b.z - a.z * b.y, | ||
a.z * b.x - a.x * b.z, | ||
a.x * b.y - a.y * b.x | ||
}; | ||
return result; | ||
} | ||
function dot(vec<float, 3> a, vec<float, 3> b) { | ||
return a.x * b.x + a.y * b.y + a.z * b.z; | ||
} | ||
function test() { | ||
vec<float, 3> a = { 1, 2, 3 }; | ||
vec<float, 3> b = { 400, 500, 600 }; | ||
vec<float, 3> c = cross(a, b); | ||
assert(dot(a, c) == 0); | ||
assert(dot(b, c) == 0); | ||
} | ||
`; | ||
for (let i = 0; i < n; ++i) { | ||
let re = /[\(\)\{\}\[\]\<\>\,\.\;]/g; | ||
while (re.test(src)) | ||
++result; | ||
} | ||
if (result != n * 89) | ||
throw "Error: bad result: " + result; | ||
})(); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
73 changes: 73 additions & 0 deletions
73
JSTests/stress/bound-constructor-change-prototype-clears-cache.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,73 @@ | ||
function empty() { | ||
|
||
} | ||
|
||
function test1() { | ||
const newTarget = (function () {}).bind(); | ||
newTarget.prototype = Object.prototype; | ||
|
||
const a = Reflect.construct(Promise, [empty], newTarget); | ||
|
||
newTarget.prototype = Array.prototype; | ||
|
||
const b = Reflect.construct(Promise, [empty], newTarget); | ||
|
||
if (a.__proto__ === b.__proto__) | ||
throw new Error('They should be different.'); | ||
} | ||
|
||
function test2() { | ||
const newTarget = (function () {}).bind(); | ||
newTarget.prototype = Object.prototype; | ||
|
||
const newTargetWrapper = Function.prototype.apply; | ||
newTargetWrapper.prototype = newTarget; | ||
|
||
class Opt extends Promise { | ||
constructor() { | ||
newTargetWrapper.prototype = new.target; | ||
empty instanceof newTargetWrapper; | ||
|
||
super(empty); | ||
} | ||
} | ||
|
||
for (let i = 0; i < 200000; i++) { | ||
Reflect.construct(Opt, [], newTarget); | ||
} | ||
|
||
const a = Reflect.construct(Opt, [], newTarget); | ||
|
||
newTarget.prototype = Array.prototype; | ||
Reflect.construct(Object, [], newTarget); | ||
|
||
const b = Reflect.construct(Opt, [], newTarget); | ||
|
||
if (a.__proto__ === b.__proto__) | ||
throw new Error('They should be different.'); | ||
} | ||
|
||
function test3() { | ||
const newTarget = (function () {}).bind(); | ||
let prototype = Object.prototype; | ||
Object.defineProperty(newTarget, "prototype", { get() { return prototype; }}); | ||
|
||
const a = Reflect.construct(Promise, [empty], newTarget); | ||
|
||
prototype = Array.prototype; | ||
|
||
const b = Reflect.construct(Promise, [empty], newTarget); | ||
|
||
if (a.__proto__ == b.__proto__) | ||
throw new Error('They should be different.'); | ||
} | ||
|
||
function main() { | ||
test1(); | ||
|
||
test2(); | ||
|
||
test3(); | ||
} | ||
|
||
main(); |
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,8 @@ | ||
function shouldBe(actual, expected) { | ||
if (actual !== expected) | ||
throw new Error('bad value: ' + actual); | ||
} | ||
|
||
class Test {field1 = 'foo';} | ||
const t1 = { ...new Test() }; | ||
shouldBe(t1 instanceof Test, false); |
Oops, something went wrong.