Showing the changes to src/vm/execution_table.cpp (1 of 14 files). Show all
Unified · Split
| @@ -579,15 +579,15 @@ namespace · 578 unmodified lines | ||
| 579 | 579 | // Define case table constants |
| 580 | 580 | // [SPEC]Table format is partially defined in Dis VM specification |
| 581 | 581 | // [element count] ([low value (inc)][high value (exc)][program counter])* [fallback program counter] |
| 582 | − struct case_op_constants | |
| 583 | − { | |
| 584 | − static const auto table_length_index = std::size_t{ 0 }; | |
| 585 | − static const auto first_entry_index = std::size_t{ 1 }; | |
| 586 | − static const auto entry_low_index = std::size_t{ 0 }; | |
| 587 | − static const auto entry_high_index = std::size_t{ 1 }; | |
| 588 | − static const auto entry_pc_index = std::size_t{ 2 }; | |
| 589 | − static const auto entry_length = std::size_t{ 3 }; | |
| 590 | − }; | |
| 582 | + namespace case_op_constants | |
| 583 | + { | |
| 584 | + const auto table_length_index = std::size_t{ 0 }; | |
| 585 | + const auto first_entry_index = std::size_t{ 1 }; | |
| 586 | + const auto entry_low_index = std::size_t{ 0 }; | |
| 587 | + const auto entry_high_index = std::size_t{ 1 }; | |
| 588 | + const auto entry_pc_index = std::size_t{ 2 }; | |
| 589 | + const auto entry_length = std::size_t{ 3 }; | |
| 590 | + } | |
| 591 | 591 | |
| 592 | 592 | template<typename PrimitiveType> |
| 593 | 593 | void _case(vm_registers_t &r) |