[JS IR] Drop TemporaryAssignmentElimination optimization

Enable TemporaryAssignment tests
This commit is contained in:
Alexander Korepanov
2023-07-05 15:30:00 +02:00
committed by Space Team
parent a79282cec1
commit 25f7b81d51
10 changed files with 47 additions and 330 deletions
@@ -3,40 +3,43 @@ function f(x) {
}
function testCatch1() {
var $tmp;
var result;
try {
result = f("testCatch1");
$tmp = f("testCatch1");
throw new Error();
} catch (e) {
result = $tmp;
}
return result;
}
function testCatch2() {
var $tmp;
var result;
try {
throw new Error();
} catch (e) {
result = $tmp;
}
return result;
}
function testFinally() {
var result;
try {
result = f("testFinally");
} finally {
}
result = f("testFinally");
return result;
}
function testOuter() {
var $tmp;
var result;
try {
result = f("testOuter");
$tmp = f("testOuter");
} finally {
f("23")
}
result = $tmp;
return result;
}
@@ -54,4 +57,4 @@ function box() {
if (result !== "testOuter") return "testOuter: " + result;
return "OK";
}
}