-
Notifications
You must be signed in to change notification settings - Fork 1k
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
VM - Jump table #3120
VM - Jump table #3120
Conversation
But #3120 (comment) is an issue..... |
@superboyiii could you check if something change in storage please? |
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.
IIUC this lays the foundation for switching opcode sets/implementations of them. In a compatible way that leaves the current logic as is by default. Do I understand correctly that in future we'll choose these tables based on hardforks?
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
public virtual void SubStr(ExecutionEngine engine, Instruction instruction) | ||
{ | ||
int count = (int)engine.Pop().GetInteger(); |
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.
Changes to the current logic better be in separate PRs.
@superboyiii is still in spring festival break, wont back to work until a few days later. |
It must be exactly the same, only allow in |
Why not have a native contract store the opcodes, so the users can have access as well? So it lives on chain. |
Structure problem, opcode is part of the vm while vm has no reference to neo. |
|
Please create a issue for this, what's the use case? |
Ok, Just a thought, Why make it hard to find this information? Issue will be created.. |
@shargon Tested, it's compatible! |
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.
Very good change!
I want to check the coverage before merge |
Close #2987