History

Altered API getting the allocation from a vm_alloc_t. Added preliminary internal file descriptor type. Test groups now print out their name.

arr committed 10 years ago

Commit 5a417ba1 parent 9881f459 files · +230 −104Browse files

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

Unified · Split

src/vm/thread.cpp+5−5
@@ -28,7 +28,7 @@ namespace · 27 unmodified lines
2828 reg.src = reinterpret_cast<pointer_t>(reinterpret_cast<uint8_t *>(reg.stack.peek_frame()->base()) + inst.source.register1);
2929 break;
3030 case address_mode_t::offset_indirect_mp:
31− reg.src = reinterpret_cast<pointer_t>(reinterpret_cast<uint8_t *>(reg.mp_base->allocation()) + inst.source.register1);
31+ reg.src = reinterpret_cast<pointer_t>(reinterpret_cast<uint8_t *>(reg.mp_base->get_allocation()) + inst.source.register1);
3232 break;
3333 case address_mode_t::offset_double_indirect_fp:
3434 {
@@ -38,7 +38,7 @@ namespace · 3 unmodified lines
3838 }
3939 case address_mode_t::offset_double_indirect_mp:
4040 {
41− const auto mp_offset = *reinterpret_cast<std::size_t *>(reinterpret_cast<uint8_t *>(reg.mp_base->allocation()) + inst.source.register1);
41+ const auto mp_offset = *reinterpret_cast<std::size_t *>(reinterpret_cast<uint8_t *>(reg.mp_base->get_allocation()) + inst.source.register1);
4242 reg.src = reinterpret_cast<pointer_t>(mp_offset + inst.source.register2);
4343 break;
4444 }
@@ -58,7 +58,7 @@ namespace · 13 unmodified lines
5858 reg.dest = reinterpret_cast<pointer_t>(reinterpret_cast<uint8_t *>(reg.stack.peek_frame()->base()) + inst.destination.register1);
5959 break;
6060 case address_mode_t::offset_indirect_mp:
61− reg.dest = reinterpret_cast<pointer_t>(reinterpret_cast<uint8_t *>(reg.mp_base->allocation()) + inst.destination.register1);
61+ reg.dest = reinterpret_cast<pointer_t>(reinterpret_cast<uint8_t *>(reg.mp_base->get_allocation()) + inst.destination.register1);
6262 break;
6363 case address_mode_t::offset_double_indirect_fp:
6464 {
@@ -68,7 +68,7 @@ namespace · 3 unmodified lines
6868 }
6969 case address_mode_t::offset_double_indirect_mp:
7070 {
71− const auto mp_offset = *reinterpret_cast<std::size_t *>(reinterpret_cast<uint8_t *>(reg.mp_base->allocation()) + inst.destination.register1);
71+ const auto mp_offset = *reinterpret_cast<std::size_t *>(reinterpret_cast<uint8_t *>(reg.mp_base->get_allocation()) + inst.destination.register1);
7272 reg.dest = reinterpret_cast<pointer_t>(mp_offset + inst.destination.register2);
7373 break;
7474 }
@@ -88,7 +88,7 @@ namespace · 13 unmodified lines
8888 reg.mid = reinterpret_cast<pointer_t>(reinterpret_cast<uint8_t *>(reg.stack.peek_frame()->base()) + inst.middle.register1);
8989 break;
9090 case address_mode_middle_t::small_offset_indirect_mp:
91− reg.mid = reinterpret_cast<pointer_t>(reinterpret_cast<uint8_t *>(reg.mp_base->allocation()) + inst.middle.register1);
91+ reg.mid = reinterpret_cast<pointer_t>(reinterpret_cast<uint8_t *>(reg.mp_base->get_allocation()) + inst.middle.register1);
9292 break;
9393 case address_mode_middle_t::small_immediate:
9494 reg.mid = reinterpret_cast<pointer_t>(const_cast<word_t *>(&inst.middle.register1));