Skip to content

Commit

Permalink
Fix move (apache#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
wweic authored and jroesch committed Mar 26, 2019
1 parent debd4f3 commit 6b0edc2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/relay/vm/vm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,12 @@ typename std::enable_if<T::value, void>::type VirtualMachine::DumpStack() {
RELAY_LOG(INFO) << " \n";
break;
}
case VMObjectTag::kDatatype: {
VMDatatypeCell* datatype = (VMDatatypeCell*)stack[i].operator->();
std::cout << "fields: " << datatype->fields.size();
std::cout << "\n";
break;
}
default: {
RELAY_LOG(INFO) << "\n";
}
Expand Down Expand Up @@ -616,7 +622,7 @@ void VirtualMachine::Run() {
CHECK(instr.dest < stack.size())
<< "dest=" << instr.dest
<< " stack_size=" << stack.size();
stack[instr.dest] = stack[instr.source];
stack[bp + instr.dest] = stack[bp + instr.source];
DumpStack();
pc++;
goto main_loop;
Expand Down

0 comments on commit 6b0edc2

Please sign in to comment.