Merge pull request #6909 from ethereum/yul-delete-operation

[Sol->Yul] Make IRStorageItem work with dynamic offsets
This commit is contained in:
Daniel Kirchner
2019-06-12 16:46:00 +02:00
committed by GitHub
11 changed files with 260 additions and 67 deletions
@@ -9,5 +9,7 @@ contract C {
}
}
}
// ====
// compileViaYul: also
// ----
// f() -> 6
@@ -9,5 +9,7 @@ contract C {
}
}
}
// ====
// compileViaYul: also
// ----
// f() -> 5
@@ -13,6 +13,8 @@ contract C {
}
}
}
// ====
// compileViaYul: also
// ----
// f(uint256): 0 -> 2
// f(uint256): 1 -> 18
@@ -24,6 +24,8 @@ contract C {
return 500;
}
}
// ====
// compileViaYul: also
// ----
// call(uint256): 0 -> 0
// call(uint256): 1 -> 1
@@ -4,6 +4,7 @@ contract C {
}
}
// ====
// compileViaYul: also
// EVMVersion: >=constantinople
// ----
// f(uint256): 7 -> 28
@@ -3,6 +3,8 @@ contract C {
return a + b + c + d + e;
}
}
// ====
// compileViaYul: also
// ----
// f(uint256,uint256,uint256,uint256,uint256): 1, 1, 1, 1, 1
// -> 5
@@ -3,6 +3,8 @@ contract C {
return a + b + c + d + e;
}
}
// ====
// compileViaYul: also
// ----
// f(uint256,uint256,uint256,uint256,uint256): 1, 1, 1, 1, 1
// # A comment on the function parameters. #