Skip to content

Commit

Permalink
Merge branch 'abk/run-809-increase-table.get-complexity' into 'master'
Browse files Browse the repository at this point in the history
RUN-809: Increase table.get and ref.is_null complexity

 

See merge request dfinity-lab/public/ic!15434
  • Loading branch information
adambratschikaye committed Oct 17, 2023
2 parents eaf70cc + 1c2c8be commit 1f37207
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rs/embedders/src/wasm_utils/validation.rs
Expand Up @@ -1130,10 +1130,10 @@ fn wasm_function_complexity(body: &Body<'_>) -> Complexity {
| BrTable { .. }
| Call { .. }
| CallIndirect { .. } => 50,
TableGet { .. } => 12,
TableGet { .. } => 14,
RefFunc { .. } => 8,
TableSet { .. } => 7,
TableGrow { .. } => 6,
TableGrow { .. } | RefIsNull => 6,
TableFill { .. }
| I32TruncF32S
| I32TruncF32U
Expand Down Expand Up @@ -1161,8 +1161,7 @@ fn wasm_function_complexity(body: &Body<'_>) -> Complexity {
| TableCopy { .. }
| TableInit { .. }
| MemoryCopy { .. }
| MemoryGrow { .. }
| RefIsNull => 4,
| MemoryGrow { .. } => 4,
F32Copysign
| F64Copysign
| F64Eq
Expand Down

0 comments on commit 1f37207

Please sign in to comment.