Upload Kmake

This commit is contained in:
Gorochu
2026-05-26 23:36:42 -07:00
parent ba051b2f74
commit 555ec72358
41615 changed files with 13344630 additions and 1 deletions

View File

@ -0,0 +1,92 @@
// Copyright 2025 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
let obj = {};
let v1 = 0;
let v2 = 0;
let v3 = 0;
// Contains statements that are extracted:
class A {
foo (){
Object.assign(obj, []);
}
}
class B extends A {
constructor(param) {
// Call.
super(param + 1);
}
foo() {
// Call.
super.valueOf();
// Update.
--super[v1];
}
}
// Valid assignments.
v3.p = 2;
v3.p = {
'something': 12345,
'large': 6789,
};
// Call.
Array.from(obj);
// Arrow-function.
(o=v1) => o + 1;
// Class (though this throws).
(class x extends x {});
// Logical.
v1 && v2();
// New.
new Set([...obj]);
// Sequence.
v1, v2;
// Tag template.
v3``;
// Just this.
this;
// Unary.
delete NaN;
// Update.
obj[5]++;
// Statements that are not extracted:
123;
-123;
v1;
v1 + v2;
[1, 2, 3];
obj[5];
obj[5] = 42;
obj["5"] = 42;
v3 = 1;
Array.from(v1, v2, v3);
obj = function (a){ return a; };
obj(5);
if (true) { 123; }
while (true) { 123; }
// TODO(machenbach): This should be valid in theory. Babel truncates the
// inner parentheses, the it becomes invalid. If we make this valid, however,
// we might wanna restrict the size and complexity as it might include a lot
// of test material.
(function (){ return 5; })();

View File

@ -0,0 +1,18 @@
// Copyright 2025 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Some more examples to test multiple input files.
// Contains statements that are extracted:
function foo() {
// Logical.
true || false;
}
// Statements that are not extracted:
function bar() {
unknown();
}

View File

@ -0,0 +1 @@
{"type":"CallExpression","source":"Array.from(VAR_0)","isStatement":true,"originalPath":"e2e/input1.js","dependencies":["VAR_0"],"needsSuper":false}

View File

@ -0,0 +1 @@
{"type":"CallExpression","source":"super(VAR_4 + 1)","isStatement":true,"originalPath":"e2e/input1.js","dependencies":["VAR_4"],"needsSuper":true}

View File

@ -0,0 +1 @@
{"type":"CallExpression","source":"Object.assign(VAR_0, [])","isStatement":true,"originalPath":"e2e/input1.js","dependencies":["VAR_0"],"needsSuper":false}

View File

@ -0,0 +1 @@
{"type":"CallExpression","source":"super.valueOf()","isStatement":true,"originalPath":"e2e/input1.js","needsSuper":true}

View File

@ -0,0 +1 @@
{"type":"ClassExpression","source":"class VAR_6 extends VAR_6 {}","isStatement":true,"originalPath":"e2e/input1.js","dependencies":["VAR_6","VAR_6"],"needsSuper":false}

View File

@ -0,0 +1 @@
{"type":"LogicalExpression","source":"true || false","isStatement":true,"originalPath":"e2e/input2.js","needsSuper":false}

View File

@ -0,0 +1 @@
{"type":"LogicalExpression","source":"VAR_1 && VAR_2()","isStatement":true,"originalPath":"e2e/input1.js","dependencies":["VAR_1","VAR_2"],"needsSuper":false}

View File

@ -0,0 +1 @@
{"type":"NewExpression","source":"new Set([...VAR_0])","isStatement":true,"originalPath":"e2e/input1.js","dependencies":["VAR_0"],"needsSuper":false}

View File

@ -0,0 +1 @@
{"type":"SequenceExpression","source":"VAR_1, VAR_2","isStatement":true,"originalPath":"e2e/input1.js","dependencies":["VAR_1","VAR_2"],"needsSuper":false}

View File

@ -0,0 +1 @@
{"type":"TaggedTemplateExpression","source":"VAR_3``","isStatement":true,"originalPath":"e2e/input1.js","dependencies":["VAR_3"],"needsSuper":false}

View File

@ -0,0 +1 @@
{"type":"ThisExpression","source":"this","isStatement":true,"originalPath":"e2e/input1.js","needsSuper":false}

View File

@ -0,0 +1 @@
{"type":"UnaryExpression","source":"delete NaN","isStatement":true,"originalPath":"e2e/input1.js","needsSuper":false}

View File

@ -0,0 +1 @@
{"type":"UpdateExpression","source":"--super[VAR_1]","isStatement":true,"originalPath":"e2e/input1.js","dependencies":["VAR_1"],"needsSuper":true}

View File

@ -0,0 +1 @@
{"type":"UpdateExpression","source":"VAR_0[5]++","isStatement":true,"originalPath":"e2e/input1.js","dependencies":["VAR_0"],"needsSuper":false}

View File

@ -0,0 +1 @@
{"statements":["CallExpression/1876a21afb7224a48ec53aa4436f4d93349c5fa0.json","CallExpression/877c27d1e4a8e5a959a7c12bbd6d08d6ba5e8b28.json","ClassExpression/32369494369ef66a7074b32fd6b27c588860b571.json","LogicalExpression/c5813b84d032ce3d569c58e7aabbc013bc17c487.json","LogicalExpression/cc45a134bf1ed0009f03b8931dc2157b53b97de1.json","NewExpression/0001aa3649d75f272d662a385e028a4d4f24a712.json","SequenceExpression/92059b515fdaaf897409c544d19fec01b7c677f5.json","TaggedTemplateExpression/93c7959bebf4148eab01ad9187a3390f6b127e23.json","ThisExpression/c2543fff3bfa6f144c2f06a7de6cd10c0b650cae.json","UnaryExpression/3b59bddfed6319031112411ec0633c4e423ae460.json","UpdateExpression/9822c139a3406842de5446673fdd2613c4e6ca00.json"],"superStatements":["CallExpression/76c7c68f689d7eb9fd7e9d42e98d92a3bd11d4f3.json","CallExpression/9a863bdec092babc502181f10470c11643c66aa9.json","UpdateExpression/62f296654616254793e9c1948c12a2951e711156.json"],"all":["CallExpression/1876a21afb7224a48ec53aa4436f4d93349c5fa0.json","CallExpression/76c7c68f689d7eb9fd7e9d42e98d92a3bd11d4f3.json","CallExpression/877c27d1e4a8e5a959a7c12bbd6d08d6ba5e8b28.json","CallExpression/9a863bdec092babc502181f10470c11643c66aa9.json","ClassExpression/32369494369ef66a7074b32fd6b27c588860b571.json","LogicalExpression/c5813b84d032ce3d569c58e7aabbc013bc17c487.json","LogicalExpression/cc45a134bf1ed0009f03b8931dc2157b53b97de1.json","NewExpression/0001aa3649d75f272d662a385e028a4d4f24a712.json","SequenceExpression/92059b515fdaaf897409c544d19fec01b7c677f5.json","TaggedTemplateExpression/93c7959bebf4148eab01ad9187a3390f6b127e23.json","ThisExpression/c2543fff3bfa6f144c2f06a7de6cd10c0b650cae.json","UnaryExpression/3b59bddfed6319031112411ec0633c4e423ae460.json","UpdateExpression/62f296654616254793e9c1948c12a2951e711156.json","UpdateExpression/9822c139a3406842de5446673fdd2613c4e6ca00.json"]}

View File

@ -0,0 +1,9 @@
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
function C() {
this.c = "c";
}
var c = new C();