Skip to content

Conversation

@laurci
Copy link
Contributor

@laurci laurci commented Jul 21, 2025

No description provided.

@andrei-marinica andrei-marinica marked this pull request as draft July 21, 2025 11:40
@laurci laurci changed the base branch from rc/v1.7.2 to rc/after-supernova August 20, 2025 07:27
@laurci laurci marked this pull request as ready for review August 20, 2025 07:27
Operator::Loop { .. } => Some(opcode_cost.opcode_loop),
Operator::MemoryGrow { .. } => Some(opcode_cost.opcode_memorygrow),
Operator::MemorySize { .. } => Some(opcode_cost.opcode_memorysize),
Operator::MemoryCopy { .. } => Some(opcode_cost.opcode_memorycopy),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need proper opcode check versioning.
I will be adding it soon.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think we need. Like we might add some opcodes once per year, there is no need for that. SpaceVM can treat activations, there is no need to complicated the executor.

Operator::Loop { .. } => Some(opcode_cost.opcode_loop),
Operator::MemoryGrow { .. } => Some(opcode_cost.opcode_memorygrow),
Operator::MemorySize { .. } => Some(opcode_cost.opcode_memorysize),
Operator::MemoryCopy { .. } => Some(opcode_cost.opcode_memorycopy),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think we need. Like we might add some opcodes once per year, there is no need for that. SpaceVM can treat activations, there is no need to complicated the executor.

impl OpcodeCheckUsed {
pub fn from_value(value: u32) -> Option<Self> {
match value {
0 => Some(Self::MemoryCopy),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not good. like we would need the full set here. to be easily usable from spaceVM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants