[javascriptcore-test262-automation] Changes from https://github.com/webkit/webkit.git at sha 9dc12cff08 on Thu Oct 04 2018 18:33:55 GMT+0000 (Coordinated Universal Time)

This commit is contained in:
test262-automation 2018-10-04 18:37:07 +00:00 committed by Rick Waldron
parent f8e0bf6751
commit f09435a459
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,31 @@
//@ runDefault("--useConcurrentJIT=0", "--jitPolicyScale=0", "--maximumInliningDepth=2")
function foo(x, y) {
var w = 0;
for (var i = 0; i < x.length; ++i) {
for (var j = 0; j < x.length; ++j)
w += foo(j, i);
y[i] = w;
}
}
function test(x, a3) {
a1 = [];
a2 = [];
for (i = 0; i < x; ++i)
a1[i] = 0;
for (i = 0; i < 10; ++i) {
foo(a3, a2);
foo(a3, a1);
}
}
noDFG(test);
a3 = [];
for (var i = 0; i < 3; ++i)
a3[i] = 0;
for (var i = 3; i <= 12; i *= 2)
test(i, a3);

View File

@ -0,0 +1,18 @@
//@ runDefault
//@ skip if $memoryLimited or $buildType == "debug"
//@ slow!
try {
var v1 = "AAAAAAAAAAA";
for(var i = 0; i < 27; i++)
v1 = v1 + v1;
var v2;
var v3 = RegExp.prototype.toString.call({source:v1,flags:v1});
v3 += v1;
v2 += v3.localeCompare(v1);
} catch (e) {
exception = e;
}
if (exception != "Error: Out of memory")
throw "FAILED";