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 icemelon committed Apr 4, 2019
1 parent c786689 commit 865fa6a
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 865fa6a

Please sign in to comment.