-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EIP-5656: MCOPY
- Memory copying instruction
#140
base: main
Are you sure you want to change the base?
Conversation
|
1 similar comment
|
hub/stack/patterns/_inputs.tex
Outdated
\subsubsection{\zeroZeroSP{} \lispDone{}} \label{hub: stack patterns: 0_0} \input{stack/patterns/0_0} | ||
\subsubsection{\oneZeroSP{} \lispDone{}} \label{hub: stack patterns: 1_0} \input{stack/patterns/1_0} | ||
\subsubsection{\twoZeroSP{} \lispDone{}} \label{hub: stack patterns: 2_0} \input{stack/patterns/2_0} | ||
\subsubsection{\threeZero{} \lispTodo{}} \label{hub: stack patterns: 3_0} \input{stack/patterns/3_0} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this line
the knowledge whether the current execution context is the root context | ||
(\emph{b}) | ||
the absolute transaction number. | ||
The purpose of the former is to be able to retrieve the \textbf{transaction call data} whenever we are executing a \inst{CALLDATALOAD} in the root context of a transaction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This paragraph was more than likely a copy paste error from the COPY
instruction family.
\item[\underline{Justifying the \mxpxSH{}:}] | ||
we impose that $\stackMxpx_{i} = \locMxpx$ | ||
\item[\underline{Setting the gas cost:}] | ||
we impose that | ||
\begin{enumerate} | ||
\item \If $\locMxpx = 0$ \Then \( \gasCost_{i} = \decStaticGas_{i} + \locMxpGas \) | ||
\item \If $\locMxpx = 0$ \Then \( \gasCost_{i} = \stackStaticGas _{i} + \locMxpGas \) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the correct column name.
\utt{Return at offset hi part:} & \cmdMXP@var@returnAtOffsetHi \\ | ||
\utt{Return at offset lo part:} & \cmdMXP@var@returnAtOffsetLo \\ | ||
\utt{Return at capacity hi part:} & \cmdMXP@var@returnAtCapacityHi \\ | ||
\utt{Return at capacity lo part:} & \cmdMXP@var@returnAtCapacityLo \\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
\utt{Offset hi part:} & \cmdMXP@var@offsetHi \\ | ||
\utt{Offset lo part:} & \cmdMXP@var@offsetLo \\ | ||
\utt{Size hi part:} & \cmdMXP@var@sizeHi \\ | ||
\utt{Size lo part:} & \cmdMXP@var@sizeLo \\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
\utt{Offset high part:} & \cmdMXP@var@offsetHi \\ | ||
\utt{Offset low part:} & \cmdMXP@var@offsetLo \\ | ||
\utt{Offset hi part:} & \cmdMXP@var@offsetHi \\ | ||
\utt{Offset lo part:} & \cmdMXP@var@offsetLo \\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
\utt{Rel. row offset:} & \cmdMXP@var@relOffset \\ | ||
\utt{Instruction:} & \cmdMXP@var@instruction \\ | ||
\utt{Offset hi part:} & \cmdMXP@var@offsetHi \\ | ||
\utt{Offset lo part:} & \cmdMXP@var@offsetLo \\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
\newcommand{\iMcopySELECT}{\imported{\mcopySELECT}} | ||
\newcommand{\iMcopySelect}{\imported{\mcopySelect}} | ||
\newcommand{\stackDecMcopyFlag}{\stackInstructionDecodedColumn{\mcopyFlag}} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ras: new auto-generated mcopy columns
\subsection{Common constraints \lispTodo{}} \label{hub: initialization phase: common constraints} \input{tx_init/rows/_collage} | ||
\subsection{Shorthands \lispDone{}} \label{hub: initialization phase: shorthands} \input{tx_init/shorthands} | ||
\subsection{Setting the peeking flags \lispDone{}} \label{hub: initialization phase: setting peeking flags} \input{tx_init/peeking} | ||
\subsection{Common constraints \lispDone{}} \label{hub: initialization phase: common constraints} \input{tx_init/rows/_collage} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ras
\subsection{Common constraints \lispTodo{}} \label{hub: finalization phase: common constraints} \input{tx_finl/rows/_collage} | ||
\subsection{Shorthands \lispDone{}} \label{hub: finalization phase: shorthands} \input{tx_finl/shorthands} | ||
\subsection{Peeking flags \lispDone{}} \label{hub: finalization phase: peeking} \input{tx_finl/peeking} | ||
\subsection{Common constraints \lispDone{}} \label{hub: finalization phase: common constraints} \input{tx_finl/rows/_collage} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ras
\subsubsection{\zeroZeroSP{} \lispDone{}} \label{hub: stack patterns: 0_0} \input{stack/patterns/0_0} | ||
\subsubsection{\oneZeroSP{} \lispDone{}} \label{hub: stack patterns: 1_0} \input{stack/patterns/1_0} | ||
\subsubsection{\twoZeroSP{} \lispDone{}} \label{hub: stack patterns: 2_0} \input{stack/patterns/2_0} | ||
\subsubsection{\threeZeroSP{} \lispTodo{}} \label{hub: stack patterns: 3_0} \input{stack/patterns/3_0} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only new row, everything else is formatting
hub/stack/patterns/3_0.tex
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New stack pattern
\stackItemHeight {k} _{i} & \col{h} & \col{h} - 1 & \graym{\varnothing} & \graym{\varnothing} \\ \hline | ||
\stackItemValHi {k} _{i} / \stackItemValLo{k}_{i} & \col{arg1} & \col{arg2} & \graym{\varnothing} & \graym{\varnothing} \\ \hline | ||
\stackItemPop {k} _{i} & 1 & 1 & \graym{\varnothing} & \graym{\varnothing} \\ \hline | ||
\stackItemStamp {k} _{i} & \hubTau \cdot \col{st} & \hubTau \cdot \col{st} + 1 & \graym{\varnothing} & \graym{\varnothing} \\ \hline |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
\vspace{2mm} \\ | ||
\qquad | ||
\qquad | ||
\define |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
\qquad | ||
\qquad | ||
\define |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
\qquad | ||
\qquad | ||
\define |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
\qquad | ||
\qquad | ||
\define |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
\qquad | ||
\qquad | ||
\define |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
hub/lookups/_inputs.tex
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated annotations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Funny we need a new stack pattern :)
MCOPY
- Memory copying instruction
No description provided.