mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Test updates.
This commit is contained in:
parent
54ab09fee8
commit
4b9c01752d
@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"calldata_array_index_access_uint256_dyn_calldata":
|
"calldata_array_index_access_uint256_dyn_calldata":
|
||||||
{
|
{
|
||||||
"entryPoint": 145,
|
"entryPoint": 144,
|
||||||
"parameterSlots": 2,
|
"parameterSlots": 2,
|
||||||
"returnSlots": 1
|
"returnSlots": 1
|
||||||
}
|
}
|
||||||
|
@ -125,7 +125,6 @@ sub_0: assembly {
|
|||||||
eq
|
eq
|
||||||
tag_4
|
tag_4
|
||||||
jumpi
|
jumpi
|
||||||
pop
|
|
||||||
0x00
|
0x00
|
||||||
dup1
|
dup1
|
||||||
revert
|
revert
|
||||||
|
@ -32,6 +32,6 @@ contract C is B {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// test() -> 77
|
// test() -> 77
|
||||||
// gas irOptimized: 119911
|
// gas irOptimized: 119711
|
||||||
// gas legacy: 155093
|
// gas legacy: 155093
|
||||||
// gas legacyOptimized: 111550
|
// gas legacyOptimized: 111550
|
||||||
|
@ -11,7 +11,7 @@ contract C {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(): 1, 2, 3 ->
|
// constructor(): 1, 2, 3 ->
|
||||||
// gas irOptimized: 142856
|
// gas irOptimized: 142640
|
||||||
// gas legacy: 183490
|
// gas legacy: 183490
|
||||||
// gas legacyOptimized: 151938
|
// gas legacyOptimized: 151938
|
||||||
// a(uint256): 0 -> 1
|
// a(uint256): 0 -> 1
|
||||||
|
@ -21,6 +21,6 @@ contract B {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// f() -> 2, 3, 4, 5, 6, 1000, 1001, 1002, 1003, 1004
|
// f() -> 2, 3, 4, 5, 6, 1000, 1001, 1002, 1003, 1004
|
||||||
// gas irOptimized: 128110
|
// gas irOptimized: 127910
|
||||||
// gas legacy: 234719
|
// gas legacy: 234719
|
||||||
// gas legacyOptimized: 132639
|
// gas legacyOptimized: 132639
|
||||||
|
@ -45,6 +45,6 @@ contract C {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// test() -> 5, 6, 7
|
// test() -> 5, 6, 7
|
||||||
// gas irOptimized: 292702
|
// gas irOptimized: 292502
|
||||||
// gas legacy: 452136
|
// gas legacy: 452136
|
||||||
// gas legacyOptimized: 284945
|
// gas legacyOptimized: 284945
|
||||||
|
@ -26,6 +26,6 @@ contract Main {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// f(uint256): 0x34 -> 0x46bddb1178e94d7f2892ff5f366840eb658911794f2c3a44c450aa2c505186c1
|
// f(uint256): 0x34 -> 0x46bddb1178e94d7f2892ff5f366840eb658911794f2c3a44c450aa2c505186c1
|
||||||
// gas irOptimized: 113398
|
// gas irOptimized: 113198
|
||||||
// gas legacy: 126596
|
// gas legacy: 126596
|
||||||
// gas legacyOptimized: 113823
|
// gas legacyOptimized: 113823
|
||||||
|
@ -26,6 +26,6 @@ contract Creator {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// f(uint256,bytes): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" -> 7, "h"
|
// f(uint256,bytes): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" -> 7, "h"
|
||||||
// gas irOptimized: 295403
|
// gas irOptimized: 293203
|
||||||
// gas legacy: 428711
|
// gas legacy: 428711
|
||||||
// gas legacyOptimized: 297922
|
// gas legacyOptimized: 297922
|
||||||
|
@ -10,7 +10,7 @@ contract Test {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" ->
|
// constructor(): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" ->
|
||||||
// gas irOptimized: 286205
|
// gas irOptimized: 283829
|
||||||
// gas legacy: 309607
|
// gas legacy: 309607
|
||||||
// gas legacyOptimized: 260566
|
// gas legacyOptimized: 260566
|
||||||
// m_x() -> 7
|
// m_x() -> 7
|
||||||
|
@ -23,7 +23,7 @@ contract D is B, C {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(): 2, 0 ->
|
// constructor(): 2, 0 ->
|
||||||
// gas irOptimized: 158225
|
// gas irOptimized: 156071
|
||||||
// gas legacy: 170665
|
// gas legacy: 170665
|
||||||
// gas legacyOptimized: 145396
|
// gas legacyOptimized: 145396
|
||||||
// i() -> 2
|
// i() -> 2
|
||||||
|
@ -17,7 +17,7 @@ contract C {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor() ->
|
// constructor() ->
|
||||||
// gas irOptimized: 173316
|
// gas irOptimized: 173094
|
||||||
// gas legacy: 250376
|
// gas legacy: 250376
|
||||||
// gas legacyOptimized: 174522
|
// gas legacyOptimized: 174522
|
||||||
// deposit(bytes32), 18 wei: 0x1234 ->
|
// deposit(bytes32), 18 wei: 0x1234 ->
|
||||||
|
@ -178,7 +178,7 @@ contract DepositContract is IDepositContract, ERC165 {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor()
|
// constructor()
|
||||||
// gas irOptimized: 1532125
|
// gas irOptimized: 1529797
|
||||||
// gas legacy: 2435803
|
// gas legacy: 2435803
|
||||||
// gas legacyOptimized: 1775425
|
// gas legacyOptimized: 1775425
|
||||||
// supportsInterface(bytes4): 0x0 -> 0
|
// supportsInterface(bytes4): 0x0 -> 0
|
||||||
|
@ -50,7 +50,7 @@ contract test {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor()
|
// constructor()
|
||||||
// gas irOptimized: 1783505
|
// gas irOptimized: 1780841
|
||||||
// gas legacy: 2248594
|
// gas legacy: 2248594
|
||||||
// gas legacyOptimized: 1749096
|
// gas legacyOptimized: 1749096
|
||||||
// div(uint256,uint256): 3141592653589793238, 88714123 -> 35412542528203691288251815328
|
// div(uint256,uint256): 3141592653589793238, 88714123 -> 35412542528203691288251815328
|
||||||
|
@ -35,7 +35,7 @@ contract test {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor()
|
// constructor()
|
||||||
// gas irOptimized: 456094
|
// gas irOptimized: 455866
|
||||||
// gas legacy: 671453
|
// gas legacy: 671453
|
||||||
// gas legacyOptimized: 480242
|
// gas legacyOptimized: 480242
|
||||||
// prb_pi() -> 3141592656369545286
|
// prb_pi() -> 3141592656369545286
|
||||||
|
@ -17,7 +17,7 @@ contract D {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(): 2 ->
|
// constructor(): 2 ->
|
||||||
// gas irOptimized: 200649
|
// gas irOptimized: 200217
|
||||||
// gas legacy: 245842
|
// gas legacy: 245842
|
||||||
// gas legacyOptimized: 195676
|
// gas legacyOptimized: 195676
|
||||||
// f() -> 2
|
// f() -> 2
|
||||||
|
@ -18,7 +18,7 @@ contract D {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(): 2 ->
|
// constructor(): 2 ->
|
||||||
// gas irOptimized: 200812
|
// gas irOptimized: 200380
|
||||||
// gas legacy: 246202
|
// gas legacy: 246202
|
||||||
// gas legacyOptimized: 195914
|
// gas legacyOptimized: 195914
|
||||||
// f() -> 2
|
// f() -> 2
|
||||||
|
@ -25,7 +25,7 @@ contract C {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(), 1 ether ->
|
// constructor(), 1 ether ->
|
||||||
// gas irOptimized: 304151
|
// gas irOptimized: 303935
|
||||||
// gas legacy: 464030
|
// gas legacy: 464030
|
||||||
// gas legacyOptimized: 304049
|
// gas legacyOptimized: 304049
|
||||||
// f(uint256): 0 -> FAILURE
|
// f(uint256): 0 -> FAILURE
|
||||||
|
@ -18,7 +18,7 @@ contract C {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(), 20 wei
|
// constructor(), 20 wei
|
||||||
// gas irOptimized: 214971
|
// gas irOptimized: 212583
|
||||||
// gas legacy: 294335
|
// gas legacy: 294335
|
||||||
// gas legacyOptimized: 174279
|
// gas legacyOptimized: 174279
|
||||||
// f(uint256): 20 -> 1370859564726510389319704988634906228201275401179
|
// f(uint256): 20 -> 1370859564726510389319704988634906228201275401179
|
||||||
|
@ -41,7 +41,7 @@ contract test {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(), 20 wei ->
|
// constructor(), 20 wei ->
|
||||||
// gas irOptimized: 275142
|
// gas irOptimized: 270609
|
||||||
// gas legacy: 402654
|
// gas legacy: 402654
|
||||||
// gas legacyOptimized: 274470
|
// gas legacyOptimized: 274470
|
||||||
// sendAmount(uint256): 5 -> 5
|
// sendAmount(uint256): 5 -> 5
|
||||||
|
@ -40,7 +40,7 @@ contract test {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(), 20 wei ->
|
// constructor(), 20 wei ->
|
||||||
// gas irOptimized: 275142
|
// gas irOptimized: 270609
|
||||||
// gas legacy: 402654
|
// gas legacy: 402654
|
||||||
// gas legacyOptimized: 274470
|
// gas legacyOptimized: 274470
|
||||||
// sendAmount(uint256): 5 -> 5
|
// sendAmount(uint256): 5 -> 5
|
||||||
|
@ -19,7 +19,7 @@ contract Main {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(), 20 wei ->
|
// constructor(), 20 wei ->
|
||||||
// gas irOptimized: 100480
|
// gas irOptimized: 100264
|
||||||
// gas legacy: 116691
|
// gas legacy: 116691
|
||||||
// gas legacyOptimized: 100361
|
// gas legacyOptimized: 100361
|
||||||
// s() -> true
|
// s() -> true
|
||||||
|
@ -29,7 +29,7 @@ contract C {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// f() -> 3, 7, 5
|
// f() -> 3, 7, 5
|
||||||
// gas irOptimized: 126536
|
// gas irOptimized: 126136
|
||||||
// gas legacy: 151334
|
// gas legacy: 151334
|
||||||
// gas legacyOptimized: 125166
|
// gas legacyOptimized: 125166
|
||||||
// x() -> 7
|
// x() -> 7
|
||||||
|
@ -17,7 +17,7 @@ contract C {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(): 3 ->
|
// constructor(): 3 ->
|
||||||
// gas irOptimized: 129602
|
// gas irOptimized: 127454
|
||||||
// gas legacy: 209361
|
// gas legacy: 209361
|
||||||
// gas legacyOptimized: 139324
|
// gas legacyOptimized: 139324
|
||||||
// f() -> 84, 23
|
// f() -> 84, 23
|
||||||
|
@ -25,6 +25,6 @@ contract B {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// g() -> 42
|
// g() -> 42
|
||||||
// gas irOptimized: 102144
|
// gas irOptimized: 101944
|
||||||
// gas legacy: 185053
|
// gas legacy: 185053
|
||||||
// gas legacyOptimized: 114598
|
// gas legacyOptimized: 114598
|
||||||
|
@ -42,7 +42,7 @@ contract Main {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(), 22 wei ->
|
// constructor(), 22 wei ->
|
||||||
// gas irOptimized: 280056
|
// gas irOptimized: 277680
|
||||||
// gas legacy: 402045
|
// gas legacy: 402045
|
||||||
// gas legacyOptimized: 266772
|
// gas legacyOptimized: 266772
|
||||||
// getFlag() -> true
|
// getFlag() -> true
|
||||||
|
@ -18,7 +18,7 @@ contract ClientReceipt {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(), 2000 wei ->
|
// constructor(), 2000 wei ->
|
||||||
// gas irOptimized: 183976
|
// gas irOptimized: 183544
|
||||||
// gas legacy: 235195
|
// gas legacy: 235195
|
||||||
// gas legacyOptimized: 176766
|
// gas legacyOptimized: 176766
|
||||||
// balance -> 1500
|
// balance -> 1500
|
||||||
|
@ -22,6 +22,6 @@ contract A {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// f(), 10 ether -> 3007, 3008, 3009
|
// f(), 10 ether -> 3007, 3008, 3009
|
||||||
// gas irOptimized: 272431
|
// gas irOptimized: 271831
|
||||||
// gas legacy: 422501
|
// gas legacy: 422501
|
||||||
// gas legacyOptimized: 287472
|
// gas legacyOptimized: 287472
|
||||||
|
@ -14,7 +14,7 @@ contract C {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(), 2 wei: 3 ->
|
// constructor(), 2 wei: 3 ->
|
||||||
// gas irOptimized: 109775
|
// gas irOptimized: 107627
|
||||||
// gas legacy: 151416
|
// gas legacy: 151416
|
||||||
// gas legacyOptimized: 108388
|
// gas legacyOptimized: 108388
|
||||||
// state() -> 3
|
// state() -> 3
|
||||||
|
@ -14,7 +14,7 @@ contract C {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor()
|
// constructor()
|
||||||
// gas irOptimized: 113738
|
// gas irOptimized: 111584
|
||||||
// gas legacy: 155081
|
// gas legacy: 155081
|
||||||
// gas legacyOptimized: 107997
|
// gas legacyOptimized: 107997
|
||||||
// genesisHash() -> 0x3737373737373737373737373737373737373737373737373737373737373737
|
// genesisHash() -> 0x3737373737373737373737373737373737373737373737373737373737373737
|
||||||
|
@ -17,7 +17,7 @@ contract C {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor() ->
|
// constructor() ->
|
||||||
// gas irOptimized: 194717
|
// gas irOptimized: 192317
|
||||||
// gas legacy: 240889
|
// gas legacy: 240889
|
||||||
// gas legacyOptimized: 155314
|
// gas legacyOptimized: 155314
|
||||||
// initCode() -> 0x20, 0
|
// initCode() -> 0x20, 0
|
||||||
|
@ -21,4 +21,4 @@ contract C {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor() ->
|
// constructor() ->
|
||||||
// gas irOptimized: 101495
|
// gas irOptimized: 101063
|
||||||
|
@ -19,7 +19,7 @@ contract D {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(), 27 wei ->
|
// constructor(), 27 wei ->
|
||||||
// gas irOptimized: 175589
|
// gas irOptimized: 175157
|
||||||
// gas legacy: 222977
|
// gas legacy: 222977
|
||||||
// gas legacyOptimized: 169779
|
// gas legacyOptimized: 169779
|
||||||
// f() -> 27
|
// f() -> 27
|
||||||
|
@ -38,10 +38,10 @@ contract D {
|
|||||||
// f() -> 0x1 # This should work, next should throw #
|
// f() -> 0x1 # This should work, next should throw #
|
||||||
// gas legacy: 103716
|
// gas legacy: 103716
|
||||||
// fview() -> FAILURE
|
// fview() -> FAILURE
|
||||||
// gas irOptimized: 98438622
|
// gas irOptimized: 98438619
|
||||||
// gas legacy: 98438801
|
// gas legacy: 98438801
|
||||||
// gas legacyOptimized: 98438594
|
// gas legacyOptimized: 98438594
|
||||||
// fpure() -> FAILURE
|
// fpure() -> FAILURE
|
||||||
// gas irOptimized: 98438622
|
// gas irOptimized: 98438619
|
||||||
// gas legacy: 98438801
|
// gas legacy: 98438801
|
||||||
// gas legacyOptimized: 98438595
|
// gas legacyOptimized: 98438595
|
||||||
|
@ -22,7 +22,7 @@ contract test {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(), 20 wei ->
|
// constructor(), 20 wei ->
|
||||||
// gas irOptimized: 190491
|
// gas irOptimized: 190275
|
||||||
// gas legacy: 265006
|
// gas legacy: 265006
|
||||||
// gas legacyOptimized: 182842
|
// gas legacyOptimized: 182842
|
||||||
// sendAmount(uint256): 5 -> 8
|
// sendAmount(uint256): 5 -> 8
|
||||||
|
@ -21,7 +21,7 @@ contract test {
|
|||||||
// compileViaYul: also
|
// compileViaYul: also
|
||||||
// ----
|
// ----
|
||||||
// constructor(), 20 wei ->
|
// constructor(), 20 wei ->
|
||||||
// gas irOptimized: 192213
|
// gas irOptimized: 191991
|
||||||
// gas legacy: 266728
|
// gas legacy: 266728
|
||||||
// gas legacyOptimized: 184762
|
// gas legacyOptimized: 184762
|
||||||
// sendAmount(uint256): 5 -> 8
|
// sendAmount(uint256): 5 -> 8
|
||||||
|
Loading…
Reference in New Issue
Block a user