-
-
Notifications
You must be signed in to change notification settings - Fork 848
refactor[venom]: refactor assembler and *more* #4717
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
base: master
Are you sure you want to change the base?
Conversation
explicit Label/PUSHLABEL instructions.
class DATA_ITEM: | ||
data: bytes | Label | ||
|
||
def __repr__(self) -> str: |
Check notice
Code scanning / CodeQL
Explicit returns mixed with implicit (fall through) returns Note
|
||
|
||
# a string (assembly instruction) but with additional metadata from the source code | ||
class TaggedInstruction(str): |
Check warning
Code scanning / CodeQL
`__eq__` not overridden when adding attributes Warning
'__eq__'
error_msg
The class 'TaggedInstruction' does not override
'__eq__'
pc_debugger
The class 'TaggedInstruction' does not override
'__eq__'
ast_source
"""Generate a unique label name for an unresolved constant.""" | ||
global _const_label_counter | ||
label = f"__const_{_const_label_counter}" | ||
_const_label_counter += 1 |
Check notice
Code scanning / CodeQL
Unused global variable Note
@@ -5,7 +5,7 @@ | |||
|
|||
from vyper.evm.address_space import MEMORY, STORAGE, TRANSIENT, AddrSpace | |||
from vyper.exceptions import CompilerPanic | |||
from vyper.venom.basicblock import IRLiteral, IROperand, IRVariable | |||
from vyper.venom.basicblock import ConstRef, IRLabel, IRLiteral, IROperand, IRVariable |
Check failure
Code scanning / CodeQL
Module-level cyclic import Error
vyper.venom.basicblock
vyper.venom.memory_location
definition
import
@@ -5,7 +5,7 @@ | |||
|
|||
from vyper.evm.address_space import MEMORY, STORAGE, TRANSIENT, AddrSpace | |||
from vyper.exceptions import CompilerPanic | |||
from vyper.venom.basicblock import IRLiteral, IROperand, IRVariable | |||
from vyper.venom.basicblock import ConstRef, IRLabel, IRLiteral, IROperand, IRVariable |
Check failure
Code scanning / CodeQL
Module-level cyclic import Error
vyper.venom.basicblock
vyper.venom.memory_location
definition
import
@@ -5,7 +5,7 @@ | |||
|
|||
from vyper.evm.address_space import MEMORY, STORAGE, TRANSIENT, AddrSpace | |||
from vyper.exceptions import CompilerPanic | |||
from vyper.venom.basicblock import IRLiteral, IROperand, IRVariable | |||
from vyper.venom.basicblock import ConstRef, IRLabel, IRLiteral, IROperand, IRVariable |
Check failure
Code scanning / CodeQL
Module-level cyclic import Error
vyper.venom.basicblock
vyper.venom.memory_location
definition
import
@@ -5,7 +5,7 @@ | |||
|
|||
from vyper.evm.address_space import MEMORY, STORAGE, TRANSIENT, AddrSpace | |||
from vyper.exceptions import CompilerPanic | |||
from vyper.venom.basicblock import IRLiteral, IROperand, IRVariable | |||
from vyper.venom.basicblock import ConstRef, IRLabel, IRLiteral, IROperand, IRVariable |
Check failure
Code scanning / CodeQL
Module-level cyclic import Error
vyper.venom.basicblock
vyper.venom.memory_location
definition
import
@@ -5,7 +5,7 @@ | |||
|
|||
from vyper.evm.address_space import MEMORY, STORAGE, TRANSIENT, AddrSpace | |||
from vyper.exceptions import CompilerPanic | |||
from vyper.venom.basicblock import IRLiteral, IROperand, IRVariable | |||
from vyper.venom.basicblock import ConstRef, IRLabel, IRLiteral, IROperand, IRVariable |
Check failure
Code scanning / CodeQL
Module-level cyclic import Error
What I did
How I did it
How to verify it
Commit message
Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)
Description for the changelog
Cute Animal Picture