History

Ensure a C++ object exists for all static const members of structs or create constexpr functions. - This is an attempt to adhere to the letter of the C++ specification.

arr committed 9 years ago

Commit af5c7a91 parent 4d839d714 files · +86 −64Browse files

Showing the changes to src/vm/execution_table.cpp (1 of 14 files). Show all

Unified · Split

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