@@ -1818,7 +1818,7 @@ string YulUtilFunctions::copyArrayToStorageFunction(ArrayType const& _fromType,
1818
1818
1819
1819
for { let i := 0 } lt(i, length) {i := add(i, 1)} {
1820
1820
<?fromCalldata>
1821
- let <elementValues > :=
1821
+ let <stackItems > :=
1822
1822
<?dynamicallyEncodedBase>
1823
1823
<accessCalldataTail>(value, srcPtr)
1824
1824
<!dynamicallyEncodedBase>
@@ -1827,14 +1827,14 @@ string YulUtilFunctions::copyArrayToStorageFunction(ArrayType const& _fromType,
1827
1827
</fromCalldata>
1828
1828
1829
1829
<?fromMemory>
1830
- let <elementValues > := <readFromCalldataOrMemory >(srcPtr)
1830
+ let <stackItems > := <readFromMemoryOrCalldata >(srcPtr)
1831
1831
</fromMemory>
1832
1832
1833
1833
<?fromStorage>
1834
- let <elementValues > := srcPtr
1834
+ let <stackItems > := srcPtr
1835
1835
</fromStorage>
1836
1836
1837
- <updateStorageValue>(elementSlot, <elementValues >)
1837
+ <updateStorageValue>(elementSlot, <stackItems >)
1838
1838
1839
1839
srcPtr := add(srcPtr, <srcStride>)
1840
1840
@@ -1862,9 +1862,9 @@ string YulUtilFunctions::copyArrayToStorageFunction(ArrayType const& _fromType,
1862
1862
templ (" arrayLength" ,arrayLengthFunction (_fromType));
1863
1863
templ (" dstDataLocation" , arrayDataAreaFunction (_toType));
1864
1864
if (fromMemory || (fromCalldata && _fromType.baseType ()->isValueType ()))
1865
- templ (" readFromCalldataOrMemory " , readFromMemoryOrCalldata (*_fromType.baseType (), fromCalldata));
1866
- templ (" elementValues " , suffixedVariableNameList (
1867
- " elementValue_ " ,
1865
+ templ (" readFromMemoryOrCalldata " , readFromMemoryOrCalldata (*_fromType.baseType (), fromCalldata));
1866
+ templ (" stackItems " , suffixedVariableNameList (
1867
+ " stackItem_ " ,
1868
1868
0 ,
1869
1869
_fromType.baseType ()->stackItems ().size ()
1870
1870
));
@@ -2004,13 +2004,13 @@ string YulUtilFunctions::copyValueArrayToStorageFunction(ArrayType const& _fromT
2004
2004
<?multipleItemsPerSlotDst>for { let j := 0 } lt(j, <itemsPerSlot>) { j := add(j, 1) } </multipleItemsPerSlotDst>
2005
2005
{
2006
2006
<?isFromStorage>
2007
- let <elementValues > := <convert>(
2007
+ let <stackItems > := <convert>(
2008
2008
<extractFromSlot>(srcSlotValue, mul(<srcStride>, srcItemIndexInSlot))
2009
2009
)
2010
2010
<!isFromStorage>
2011
- let <elementValues > := <readFromCalldataOrMemory >(srcPtr)
2011
+ let <stackItems > := <readFromMemoryOrCalldata >(srcPtr)
2012
2012
</isFromStorage>
2013
- let itemValue := <prepareStore>(<elementValues >)
2013
+ let itemValue := <prepareStore>(<stackItems >)
2014
2014
dstSlotValue :=
2015
2015
<?multipleItemsPerSlotDst>
2016
2016
<updateByteSlice>(dstSlotValue, mul(<dstStride>, j), itemValue)
@@ -2035,13 +2035,13 @@ string YulUtilFunctions::copyValueArrayToStorageFunction(ArrayType const& _fromT
2035
2035
<!sameTypeFromStorage>
2036
2036
for { let j := 0 } lt(j, spill) { j := add(j, 1) } {
2037
2037
<?isFromStorage>
2038
- let <elementValues > := <convert>(
2038
+ let <stackItems > := <convert>(
2039
2039
<extractFromSlot>(srcSlotValue, mul(<srcStride>, srcItemIndexInSlot))
2040
2040
)
2041
2041
<!isFromStorage>
2042
- let <elementValues > := <readFromCalldataOrMemory >(srcPtr)
2042
+ let <stackItems > := <readFromMemoryOrCalldata >(srcPtr)
2043
2043
</isFromStorage>
2044
- let itemValue := <prepareStore>(<elementValues >)
2044
+ let itemValue := <prepareStore>(<stackItems >)
2045
2045
dstSlotValue := <updateByteSlice>(dstSlotValue, mul(<dstStride>, j), itemValue)
2046
2046
2047
2047
<updateSrcPtr>
@@ -2063,12 +2063,12 @@ string YulUtilFunctions::copyValueArrayToStorageFunction(ArrayType const& _fromT
2063
2063
templ (" panic" , panicFunction (PanicCode::ResourceError));
2064
2064
templ (" isFromDynamicCalldata" , _fromType.isDynamicallySized () && fromCalldata);
2065
2065
templ (" isFromStorage" , fromStorage);
2066
- templ (" readFromCalldataOrMemory " , readFromMemoryOrCalldata (*_fromType.baseType (), fromCalldata));
2066
+ templ (" readFromMemoryOrCalldata " , readFromMemoryOrCalldata (*_fromType.baseType (), fromCalldata));
2067
2067
templ (" srcDataLocation" , arrayDataAreaFunction (_fromType));
2068
2068
templ (" dstDataLocation" , arrayDataAreaFunction (_toType));
2069
2069
templ (" srcStride" , to_string (_fromType.storageStride ()));
2070
- templ (" elementValues " , suffixedVariableNameList (
2071
- " elementValue_ " ,
2070
+ templ (" stackItems " , suffixedVariableNameList (
2071
+ " stackItem_ " ,
2072
2072
0 ,
2073
2073
_fromType.baseType ()->stackItems ().size ()
2074
2074
));
0 commit comments